A Ship that Fires Bullets
233
depend on certain image libraries that must be installed on your computer.
Most images you’ll
find are in .jpg or
.png formats, but you can convert them
to bitmaps using tools like Photoshop, GIMP, and Paint.
Pay particular attention to the background color in your chosen image.
Try to find a file with a transparent or solid background
that you can replace
with any background color using an image editor. Your games will look
best if the image’s background color matches your game’s background
color.
Alternatively, you can match your game’s background to the image’s
background.
For
Alien Invasion, you can use
the file ship.bmp (Figure 121), which is
available in the book’s
resources at https://nostarch.com/pythoncrashcourse2e/.
The file’s background color matches the settings we’re using in this project.
Make a folder called
images inside your main
alien_invasion project folder.
Save the file
ship.bmp in the
images folder.
Figure 12-1: The ship for Alien Invasion
Do'stlaringiz bilan baham: