readme
This commit is contained in:
		
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							@@ -1,2 +1,12 @@
 | 
				
			|||||||
# bootleg-game-engine
 | 
					# bootleg-game-engine
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					A bootleg "game engine" in c++, using SDL2 for rendering and input handling.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Dependencies
 | 
				
			||||||
 | 
					- SDL2
 | 
				
			||||||
 | 
					- SDL2_ttf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Building
 | 
				
			||||||
 | 
					```bash
 | 
				
			||||||
 | 
					$ make
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
| 
		 Before Width: | Height: | Size: 31 MiB After Width: | Height: | Size: 31 MiB  | 
							
								
								
									
										2
									
								
								makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								makefile
									
									
									
									
									
								
							@@ -5,7 +5,7 @@ SRC = $(wildcard src/*.cpp)
 | 
				
			|||||||
OBJ = $(addprefix build/, $(notdir $(SRC:.cpp=.o)))
 | 
					OBJ = $(addprefix build/, $(notdir $(SRC:.cpp=.o)))
 | 
				
			||||||
TARGET = build/x86_64/main.x86_64
 | 
					TARGET = build/x86_64/main.x86_64
 | 
				
			||||||
 | 
					
 | 
				
			||||||
all: $(TARGET)
 | 
					all: dirs $(TARGET)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dirs:
 | 
					dirs:
 | 
				
			||||||
	@mkdir -p build/x86_64
 | 
						@mkdir -p build/x86_64
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,10 +20,10 @@ void quit()
 | 
				
			|||||||
int main(int argc, char* argv[])
 | 
					int main(int argc, char* argv[])
 | 
				
			||||||
{   
 | 
					{   
 | 
				
			||||||
    engine = new Engine("Game", 800, 600);
 | 
					    engine = new Engine("Game", 800, 600);
 | 
				
			||||||
    engine->targetFrameRate = 240;
 | 
					    engine->targetFrameRate = 60;
 | 
				
			||||||
    
 | 
					
 | 
				
			||||||
    // Load assets
 | 
					    // Load assets
 | 
				
			||||||
    assets = SDL_LoadBMP("assets/sprites.bmp");
 | 
					    assets = SDL_LoadBMP("example_assets/sprites.bmp");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // frame map
 | 
					    // frame map
 | 
				
			||||||
    std::map<std::string, SDL_Rect> idle = {
 | 
					    std::map<std::string, SDL_Rect> idle = {
 | 
				
			||||||
		Reference in New Issue
	
	Block a user