Add a text input box function
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 611
- Forks
- 211
- PR merge metrics
- No merged PRs in 30d
Description
To capture eg. player names a text input box would be helpful.
Using other GUI toolkits like `tkinter` do not integrate well into `pgzero` (eg. different fonts, windows positioned outside of the game window...).
Possible implementations (based on self-drawn objects using only `PyGame`):
https://stackoverflow.com/questions/46390231/how-to-create-a-text-input-box-with-pygame
https://github.com/Nearoo/pygame-text-input
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests. Review the linked Pygame text-input examples and pgzero's existing input behavior, then define an API for capturing player names within the game window. Done means text can be entered using self-drawn Pygame elements without opening a separate GUI window.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100