From 9942eb201a657640cf244b261008b850352a29f3 Mon Sep 17 00:00:00 2001 From: rodri Date: Wed, 28 Jul 2021 22:15:15 +0000 Subject: 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. --- physics.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'physics.c') diff --git a/physics.c b/physics.c index 5f45fd9..5bc2e5b 100644 --- a/physics.c +++ b/physics.c @@ -1,24 +1,17 @@ #include #include -#include +#include /* 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; } -- cgit v1.2.3