First commit, compiles without sound for now. Need to change controls, levels, remove some menus, and make sound work

This commit is contained in:
Vincent-FK
2021-06-04 09:37:35 +02:00
parent 26217d9cf0
commit 9c6fec17a2
188 changed files with 7104 additions and 0 deletions

24
include/game_time.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef __TIME_H__
#define __TIME_H__
#include <SDL.h>
// Number of cycles to process before displaying an image
extern Uint16 game_time_get_cycles_to_calculate();
// Current speed of the game
extern Uint16 game_time_get_speed();
// Duration of a cycle (in ms)
extern Uint16 game_time_get_cycles_length();
// Time initialization
extern void game_time_init();
// Set the speed of the game
extern void game_time_set_speed(Uint16 speed);
// Compute the current time of the game
extern void game_time_update();
#endif /* __TIME_H__ */