Fixed the problem that in a rare case, a set is downloaded and the neverballrc is...
[neverball] / ball / game.h
index 6a30dad..4a4727c 100644 (file)
@@ -8,36 +8,33 @@
 
 /*---------------------------------------------------------------------------*/
 
-#define AUD_MENU   1
-#define AUD_START  2
-#define AUD_READY  3
-#define AUD_SET    4
-#define AUD_GO     5
-#define AUD_BALL   6
-#define AUD_BUMPS  7
-#define AUD_BUMPM  8
-#define AUD_BUMPL  9
-#define AUD_COIN   10
-#define AUD_TICK   11
-#define AUD_TOCK   12
-#define AUD_SWITCH 13
-#define AUD_JUMP   14
-#define AUD_GOAL   15
-#define AUD_SCORE  16
-#define AUD_FALL   17
-#define AUD_TIME   18
-#define AUD_OVER   19
-#define AUD_GROW   20
-#define AUD_SHRINK 21
-#define AUD_COUNT  22
+#define AUD_MENU    "snd/menu.ogg"
+#define AUD_START _("snd/select.ogg")
+#define AUD_READY _("snd/ready.ogg")
+#define AUD_SET   _("snd/set.ogg")
+#define AUD_GO    _("snd/go.ogg")
+#define AUD_BALL    "snd/ball.ogg"
+#define AUD_BUMPS   "snd/bumplil.ogg"
+#define AUD_BUMPM   "snd/bump.ogg"
+#define AUD_BUMPL   "snd/bumpbig.ogg"
+#define AUD_COIN    "snd/coin.ogg"
+#define AUD_TICK    "snd/tick.ogg"
+#define AUD_TOCK    "snd/tock.ogg"
+#define AUD_SWITCH  "snd/switch.ogg"
+#define AUD_JUMP    "snd/jump.ogg"
+#define AUD_GOAL    "snd/goal.ogg"
+#define AUD_SCORE _("snd/record.ogg")
+#define AUD_FALL  _("snd/fall.ogg")
+#define AUD_TIME  _("snd/time.ogg")
+#define AUD_OVER  _("snd/over.ogg")
+#define AUD_GROW    "snd/grow.ogg"
+#define AUD_SHRINK  "snd/shrink.ogg"
 
 /*---------------------------------------------------------------------------*/
 
-#define MAX_DT      0.01666666         /* Maximum physics update cycle       */
-#define MAX_DN      16                 /* Maximum subdivisions of dt         */
 #define RESPONSE    0.05f              /* Input smoothing time               */
-
-#define ANGLE_BOUND 20.f               /* Angle limit of floor tilting       */
+#define ANGLE_BOUND 20.0f              /* Angle limit of floor tilting       */
+#define VIEWR_BOUND 10.0f              /* Maximum rate of view rotation      */
 #define NO_AA       0                  /* Disable Angle Acceleration         */
 
 /*---------------------------------------------------------------------------*/
@@ -50,11 +47,13 @@ int   curr_coins(void);
 int   curr_goal(void);
 
 void  game_draw(int, float);
-int   game_step(const float[3], float, int *);
+int   game_step(const float[3], float, int);
 
+void  game_set_ang(int, int);
 void  game_set_pos(int, int);
 void  game_set_x  (int);
 void  game_set_z  (int);
+void  game_set_cam(int);
 void  game_set_rot(float);
 void  game_set_fly(float);
 
@@ -64,8 +63,10 @@ void  game_kill_fade(void);
 void  game_step_fade(float);
 void  game_fade(float);
 
-int   put_game_state(FILE *);
-int   get_game_state(FILE *);
+/*---------------------------------------------------------------------------*/
+
+int input_put(FILE *);
+int input_get(FILE *);
 
 /*---------------------------------------------------------------------------*/