This is a simple space game.
I am making it in my spare time for fun and learning.
Feel free to use it as template for your own things.

Space worlds (game maps) with entities for this game you can create and edit with moeditor project. There you will find also description of the game storage (SQLite database) structure.
You don't have to compile the game to run it, all the necessary release files (for windows) are located in the folder bin.
I am using MSYS2 for managing libraries that I use for development in C.
| Tool |
Purpose |
| box2d |
For game physics. |
| raylib |
For graphics and user events. |
| raygui |
For immediate-mode gui. |
| flecs |
Fast entity component system. |
| sqlite |
For reading/writing to database. |
| hashmap |
Hash map implementation in C. |
| kenney |
For assets. |
- Moving forward, backward, left, right, angular.
- Extreme (fast) breaking (to full stop).
- Increasing/decreasing max speed.
- Choose weapon type (one/two bullets for now).
- Shots interval (100 ms).
- Impulses (for moving) calculates depending on ship mass.
- Bullet/asteroid contact (collision) animation.
| Key |
Description |
| 1 |
Change weapon to one bullet. |
| 2 |
Change weapon to two bullets. |
| A |
Move left. |
| D |
Move right. |
| Up |
Move forward. |
| Down |
Move backward. |
| Left |
Turn left. |
| Right |
Turn right. |
| Minus |
Minimize speed. |
| Plus(=) |
Maximize speed. |
| Q |
Decrease speed (slowly). |
| E |
Increase speed (slowly). |
| Space |
Brake (extreme). |
| W |
Shoot. |
| Ctrl+I |
Zoom in. |
| Ctrl+O |
Zoom out. |
| Ctrl+F |
Full-screen on/off. |
| Esc |
Show menu (game pause) or back to game. |
| Project |
Description |
| moeditor |
Worlds editor for space game. |