SPACE INVADERS 8
In this project, we'll continue building our Space Invaders game by animating our ship using a sprite.
I/O (Input/Output) RaspberrySTEM Cell
LED Matrix RaspberrySTEM Cell
Accelerometer RaspberrySTEM Cell
Having issues? Check out the Troubleshooting Guide.

We now should have a working Space Invaders game, but we can make it more visually appealing by custom designing our ship using "Sprite" functionality in the API.

[TO BE DONE -- NEED TO ADD A NEW PAGE AND PROJECT THAT TEACHES USING AND CUSTOMIZING SPRITES]

To change the ship to a custom sprite, we need to include some basic initialization code, code to design the sprite configuration and code to draw the sprite.

Here is the initialization code:



Here is the sprite code: 



Here is the drawing code:



And here is what our full project should look like at this point:i


prev| next