This commit is contained in:
Alfie King 2024-09-06 14:17:43 +01:00
parent 4b37c3afb8
commit a6ae02833a
5 changed files with 14 additions and 4 deletions

View File

@ -1,2 +1,12 @@
# bootleg-game-engine
A bootleg "game engine" in c++, using SDL2 for rendering and input handling.
## Dependencies
- SDL2
- SDL2_ttf
## Building
```bash
$ make
```

View File

Before

Width:  |  Height:  |  Size: 31 MiB

After

Width:  |  Height:  |  Size: 31 MiB

View File

@ -5,7 +5,7 @@ SRC = $(wildcard src/*.cpp)
OBJ = $(addprefix build/, $(notdir $(SRC:.cpp=.o)))
TARGET = build/x86_64/main.x86_64
all: $(TARGET)
all: dirs $(TARGET)
dirs:
@mkdir -p build/x86_64

View File

@ -20,10 +20,10 @@ void quit()
int main(int argc, char* argv[])
{
engine = new Engine("Game", 800, 600);
engine->targetFrameRate = 240;
engine->targetFrameRate = 60;
// Load assets
assets = SDL_LoadBMP("assets/sprites.bmp");
assets = SDL_LoadBMP("example_assets/sprites.bmp");
// frame map
std::map<std::string, SDL_Rect> idle = {