Skip to content

Allow actors drawing a shape (instead of an image) #235

@aoloe

Description

@aoloe

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

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions