aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/dat.h b/dat.h
index c93b24e..97e0719 100644
--- a/dat.h
+++ b/dat.h
@@ -1,22 +1,11 @@
+#define FPS2MS(fps) (1000/(fps))
+
typedef struct GameState GameState;
typedef struct Derivative Derivative;
-typedef struct Stats Stats;
-typedef struct Sprite Sprite;
-
-struct Stats
-{
- double cur;
- double total;
- double min, avg, max;
- uvlong nupdates;
-
- void (*update)(Stats*, double);
-};
struct GameState
{
double x, v;
- Stats stats;
};
struct Derivative