Skip to content

Learning Python: Day 52

Adding the ship image

  • load an image using the Pygame blit() method
  • pulling a free copyright image from opengameart.com
  • can use any image format, but .bmp is the default in Python

Creating the ship class

  • create a new ship module that will contain the class Ship
  • Pygame allows us to treat game elements like rectangles(rects)
  • efficient in instances where two objects collide
Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *