A simple 2D game made in the Godot game engine, based on the "Your first 2D game" tutorial:https://docs.godotengine.org/en/4.2/getting_started/first_2d_game/index.html
Tested on a few controllers: - Xbox controller - Logitech Rumblepad 2 - NES-style USB controller |
||
|---|---|---|
| art | ||
| fonts | ||
| .gitattributes | ||
| .gitignore | ||
| HUD.gd | ||
| HUD.tscn | ||
| icon.svg | ||
| icon.svg.import | ||
| Main.gd | ||
| Main.tscn | ||
| Mob.gd | ||
| Mob.tscn | ||
| Player.gd | ||
| Player.tscn | ||
| project.godot | ||
| README.md | ||
Godot 2D game
A simple 2D game made in the Godot game engine, based on the "Your first 2D game" tutorial. Note: I've linked the Godot 4.2 docs because that's the version of the tutorial and the version of the engine I used. I have added some minor additional functionality, which can be seen with the commit history:
- The initial commit follows the tutorial directly, no changes.
- The following commits are built on top based on my own learning.
Quick start
- Open this project in the Godot Editor.
- Press "Run Project".
Controls
Keyboard:
- Enter: start game
- Arrow keys: move player
- Esc: quit
Controller (tested on an Xbox controller, and some generic controllers):
- Start or "A" button: start game
- D-pad or left joystick: move player
- "Back" button: quit
The "back" button may refer to the actual back button on an XBox controller, or something equivalent, like the select button on an NES-style gamepad.