A 2D game built with SDL2 featuring hexagonal grid movement and collision detection.
redline/
├── .devcontainer/ # GitHub Codespace configuration
├── assets/ # Game assets (images, etc.)
├── build/ # Build artifacts (created by Makefile)
├── include/ # Header files
│ ├── Components.hpp
│ ├── ECS.hpp
│ ├── Game.hpp
│ ├── hex.h
│ └── ...
├── src/ # Source files
│ ├── Game.cpp
│ ├── main.cpp
│ ├── Map.cpp
│ └── ...
├── Makefile # Build system
└── README.md # This file
- Click the "Code" button on your repository
- Select the "Codespaces" tab
- Click "Create codespace on main"
- Wait for the codespace to initialize (this will install all dependencies automatically)
To build the project:
makeTo run the game:
make runTo clean the build artifacts:
make cleanThis project requires:
- SDL2
- SDL2_image
These are automatically installed in the GitHub Codespace environment.
- Arrow keys / WASD: Move character
- Space: Jump in the current direction
- J: Light attack
- K: Heavy attack
- L: Special attack
- M: Toggle between game states
To add new assets:
- Place your image files in the
assets/directory - Reference them in your code via
assets/yourfile.png
This project is licensed under the MIT License - see the LICENSE file for details.