You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
#ifndef _DEFGAME |
|
#define _DEFGAME |
|
|
|
#include "environment.h" |
|
#include "datastructures/datatypes.h" |
|
#include "vect.h" |
|
#include "garbo.h" |
|
#include "controlscheme.h" |
|
#include "c-colours/colours.h" |
|
#include "types.h" |
|
#include "draw.h" |
|
|
|
extern GlobWorld world; |
|
extern int level; |
|
extern bool in_game; |
|
extern int quality; |
|
|
|
void handle_input_event(SDL_Event event); |
|
|
|
// add a motor to the world |
|
void add_motor(Body *thing, double x, double y); |
|
|
|
bool get_motor_active(Body *thing, int i); |
|
|
|
int get_rand(int seed); |
|
|
|
void next_level(); |
|
|
|
int step(void); |
|
|
|
struct sg_times_list { |
|
long *times; |
|
int size; |
|
int capacity; |
|
void (*sort)(void); |
|
char *filename; |
|
}; |
|
|
|
int load_score_times(char *filename); |
|
long get_best_time(void); |
|
|
|
|
|
/* array of all the things in the world and their kinds */ |
|
|
|
extern struct sg_times_list save_times_lst; |
|
int add_time(long time); |
|
int write_times(void); |
|
extern void startgame(SDL_Renderer * ren) ; |
|
extern void process_keydown(SDL_Keysym key); |
|
extern void process_keyup(SDL_Keysym key); |
|
extern player_st player; |
|
extern long level_time; |
|
extern bool game_paused; |
|
#endif
|
|
|