diff options
author | rodri <rgl@antares-labs.eu> | 2021-07-28 22:15:15 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2021-07-28 22:15:15 +0000 |
commit | 9942eb201a657640cf244b261008b850352a29f3 (patch) | |
tree | 43ffc43f9c3fd9dd6e45e835cea0a87381ae16da /physics.c | |
parent | d85705bf67be2a23e3d928f9670732be5484f958 (diff) | |
download | musw-9942eb201a657640cf244b261008b850352a29f3.tar.gz musw-9942eb201a657640cf244b261008b850352a29f3.tar.bz2 musw-9942eb201a657640cf244b261008b850352a29f3.zip |
brought the Sprite struct for future animations.
implemented per-party game state and dynamics.
now the state is broadcast after integration, not before.
fixed a bug in the broadcast procedure where it would keep referencing an already freed Party and its players.
implemented a proper Keymap the user will be able to configure.
added mkfile rules to manage installation and dependencies.
defined a ton of structs in dat.h for new game objects.
started work on a general vector model abstraction to define ship `skins'.
removed some debug clauses we no longer need. fixed some other ones.
Diffstat (limited to 'physics.c')
-rw-r--r-- | physics.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -1,24 +1,17 @@ #include <u.h> #include <libc.h> -#include <draw.h> +#include <draw.h> /* because of dat.h */ #include "dat.h" #include "fns.h" -//enum { DYNTIME, RENTIME, NSTATS }; -//Stats simstats[NSTATS]; - - /* * Dynamics stepper - * - * Currently set to a basic spring-damper system. */ static double -accel(GameState *s, double t) +accel(GameState *s, double) { static double k = 15, b = 0.1; - USED(t); return -k*s->x - b*s->v; } |