mirror of
https://github.com/FunKey-Project/Bibi.git
synced 2026-05-15 09:35:24 +02:00
First commit, compiles without sound for now. Need to change controls, levels, remove some menus, and make sound work
This commit is contained in:
24
include/game_time.h
Normal file
24
include/game_time.h
Normal 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__ */
|
||||
Reference in New Issue
Block a user