mirror of
				https://github.com/Maks1mS/pppi-rpg-game.git
				synced 2025-11-04 06:41:22 +03:00 
			
		
		
		
	добавлен main.cpp
This commit is contained in:
		
							
								
								
									
										14
									
								
								program/main.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								program/main.cpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
#include "game_engine.h"
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
    GameEngine engine;
 | 
			
		||||
    engine.initialize();
 | 
			
		||||
 | 
			
		||||
    while (true) {
 | 
			
		||||
        engine.update(0.016); // Предполагаем фиксированный таймстеп
 | 
			
		||||
        engine.render();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    engine.shutdown();
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user