Almost completely separate coins and items in share/geom.c. Items still
[neverball] / share / geom.h
1 #ifndef GEOM_H
2 #define GEOM_H
3
4 /*---------------------------------------------------------------------------*/
5
6 #define IMG_SHAD "png/shadow.png"
7 #define IMG_COIN _("png/coin.png")
8
9 #define IMG_ITEM_GROW   "png/growup.png"
10 #define IMG_ITEM_SHRINK "png/growdn.png"
11
12 #define BALL_FUDGE    0.001f
13 #define COIN_RADIUS   0.15f
14 #define COIN_THICK    0.01f
15 #define JUMP_HEIGHT   2.00f
16 #define SWCH_HEIGHT   2.00f
17 #define GOAL_HEIGHT   3.00f
18 #define GOAL_SPARKS  64
19
20 /*---------------------------------------------------------------------------*/
21
22 void ball_init(int);
23 void ball_free(void);
24 void ball_draw(int);
25
26 /*---------------------------------------------------------------------------*/
27
28 void mark_init(int);
29 void mark_free(void);
30 void mark_draw(void);
31
32 /*---------------------------------------------------------------------------*/
33
34 void coin_color(float *, int);
35 void coin_init(int);
36 void coin_free(void);
37
38 void coin_push(void);
39 void coin_push_text(int n);
40 void coin_draw(int, float);
41 void coin_pull(void);
42
43 /*---------------------------------------------------------------------------*/
44
45 void item_color(float *, int);
46 void item_init(int);
47 void item_free(void);
48
49 void item_push(void);
50 void item_push_text(int n);
51 void item_draw(int, float);
52 void item_pull(void);
53
54 /*---------------------------------------------------------------------------*/
55
56 void goal_init(int);
57 void goal_free(void);
58 void goal_draw(void);
59
60 /*---------------------------------------------------------------------------*/
61
62 void jump_init(int);
63 void jump_free(void);
64 void jump_draw(int);
65
66 /*---------------------------------------------------------------------------*/
67
68 void swch_init(int);
69 void swch_free(void);
70 void swch_draw(int, int);
71
72 /*---------------------------------------------------------------------------*/
73
74 void flag_init(int);
75 void flag_free(void);
76 void flag_draw(void);
77
78 /*---------------------------------------------------------------------------*/
79
80 void shad_init(void);
81 void shad_free(void);
82 void shad_draw_set(const float *, float);
83 void shad_draw_clr(void);
84
85 /*---------------------------------------------------------------------------*/
86
87 void fade_draw(float);
88
89 #endif