aboutsummaryrefslogtreecommitdiff
path: root/fns.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2021-03-12 11:37:09 +0000
committerrodri <rgl@antares-labs.eu>2021-03-12 11:37:09 +0000
commit1546beac329d017b86331d0acd2dd0dd86101506 (patch)
treeddd8c59a8cd0244db1730ba91ba860078205ab51 /fns.h
parentc35a8302c6275a1ba71dcdff15f58310d064a909 (diff)
downloadgamephysics-1546beac329d017b86331d0acd2dd0dd86101506.tar.gz
gamephysics-1546beac329d017b86331d0acd2dd0dd86101506.tar.bz2
gamephysics-1546beac329d017b86331d0acd2dd0dd86101506.zip
implemented fixed-time dynamics stepper, animated sprites and cleaned things up.
Diffstat (limited to 'fns.h')
-rw-r--r--fns.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fns.h b/fns.h
index 2325ae1..6898eec 100644
--- a/fns.h
+++ b/fns.h
@@ -9,3 +9,15 @@ Image *eallocimage(Display*, Rectangle, ulong, int, ulong);
* stats
*/
void statsupdate(Stats*, double);
+
+/*
+ * physics
+ */
+void integrate(GameState*, double, double);
+
+/*
+ * sprite
+ */
+Sprite *newsprite(Image*, Point, Rectangle, int, ulong);
+Sprite *readsprite(char*, Point, Rectangle, int, ulong);
+void delsprite(Sprite*);