diff --git a/README.md b/README.md index b4eb2f9..56b6a97 100644 --- a/README.md +++ b/README.md @@ -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 +``` \ No newline at end of file diff --git a/assets/C64.ttf b/example_assets/C64.ttf similarity index 100% rename from assets/C64.ttf rename to example_assets/C64.ttf diff --git a/assets/sprites.bmp b/example_assets/sprites.bmp similarity index 100% rename from assets/sprites.bmp rename to example_assets/sprites.bmp diff --git a/makefile b/makefile index bc87ab1..6e145e8 100644 --- a/makefile +++ b/makefile @@ -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 diff --git a/src/main.cpp b/src/example-game.cpp similarity index 97% rename from src/main.cpp rename to src/example-game.cpp index c84ab4c..8992518 100644 --- a/src/main.cpp +++ b/src/example-game.cpp @@ -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 idle = {