1. Project and sprites
Create the project
Section titled “Create the project”-
In the hub, New project.
-
Language: Lua or C++. Template: Empty. Name:
Primeiro Jogo. Resolution: 320×180. -
Create. The editor opens with the room
Main.
Import the images
Section titled “Import the images”Select the sprites folder, in Resources, and drag nave.png, tiro.png and inimigo.png from the zip into the panel. The sprite name is the file name, without the extension.
A double-click on a sprite opens the sprite editor.
| Sprite | Slice | Origin | Collision |
|---|---|---|---|
nave |
2 columns, 1 row | Center | Manual: only the body, without the flame |
inimigo |
2 columns, 1 row | Center | Auto |
tiro |
1 column, 1 row | Center | Auto |
Leave fps empty: in this game the animation speed is set in code. Ctrl+S saves.
Next part: 2. The ship
