Adapt halo switch system to teleports (aka jumps). Fix #61
[neverball] / share / geom.h
1 #ifndef GEOM_H
2 #define GEOM_H
3
4 /*---------------------------------------------------------------------------*/
5
6 #define IMG_SHAD "png/shadow.png"
7
8 #define BALL_FUDGE    0.001f
9 #define COIN_RADIUS   0.15f
10 #define COIN_THICK    0.01f
11 #define JUMP_HEIGHT   2.00f
12 #define SWCH_HEIGHT   2.00f
13 #define GOAL_HEIGHT   3.00f
14 #define GOAL_SPARKS  64
15
16 /*---------------------------------------------------------------------------*/
17
18 void ball_init(int);
19 void ball_free(void);
20 void ball_draw(void);
21
22 /*---------------------------------------------------------------------------*/
23
24 void mark_init(int);
25 void mark_free(void);
26 void mark_draw(void);
27
28 /*---------------------------------------------------------------------------*/
29
30 void coin_color(float *, int);
31 void coin_init(int);
32 void coin_free(void);
33
34 void coin_push(void);
35 void coin_draw(int, float);
36 void coin_pull(void);
37
38 /*---------------------------------------------------------------------------*/
39
40 void goal_init(int);
41 void goal_free(void);
42 void goal_draw(void);
43
44 /*---------------------------------------------------------------------------*/
45
46 void jump_init(int);
47 void jump_free(void);
48 void jump_draw(int);
49
50 /*---------------------------------------------------------------------------*/
51
52 void swch_init(int);
53 void swch_free(void);
54 void swch_draw(int, int);
55
56 /*---------------------------------------------------------------------------*/
57
58 void flag_init(int);
59 void flag_free(void);
60 void flag_draw(void);
61
62 /*---------------------------------------------------------------------------*/
63
64 void shad_init(void);
65 void shad_free(void);
66 void shad_draw_set(const float *, float);
67 void shad_draw_clr(void);
68
69 /*---------------------------------------------------------------------------*/
70
71 void fade_draw(float);
72
73 #endif