Allow actors drawing a shape (instead of an image)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 611
- Forks
- 211
- PR merge metrics
- No merged PRs in 30d
Description
When teaching the first steps with Pygame zero, kids tend to get lost in:
- Searching the right images for their game.
- Where did they download it? Where / what is the "images" directory?.
- Move the new images to the right directory.
- Make sure that the images are correctly named.
- Resizing the images!
Would it be possible to allow the actors to also use shapes like rectangles and squares?
I'm thinking of something like
```py
paddle = Actor()
paddle.shape = Rect((x, y), (w, h))
paddle.color = r, g, b
# paddle.fill_color = r, g, b
def draw()
paddle.draw_rect()
# paddle.draw_filled_rect()
```
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
Start by tracing the Actor drawing entry point and the proposed Rect-based API shown in the issue. Determine how an Actor without an image should represent its shape, color, position, and dimensions, then define completion around rectangles or squares rendering correctly through the proposed draw methods.
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