Tutorial: ship game
The tutorial builds a ship game from the empty project to the game over screen. The code is shown in Lua and in C++; follow the tab for the language of your project.
| Part | Result |
|---|---|
| 1. Project and sprites | Project created and sprites sliced. |
| 2. The ship | The ship moves with keyboard or gamepad. |
| 3. Shots | The ship shoots, with a delay. |
| 4. Enemies | Enemies fall and are destroyed by shots. |
| 5. Score and lives | Score, lives and invincibility. |
| 6. Sound | Sound effects. |
| 7. Game over | Second room and restart. |
Before
Section titled “Before”- Install Brasa. To follow in C++, with C++ support.
- Download the images and sounds: primeiro-jogo-recursos.zip.
- The finished game is the First game template, in New project.
