Properly kill gameobjects, sprites, physics shapes

This commit is contained in:
2023-01-13 14:05:36 +00:00
parent e0b7d6459d
commit d2cbc61164
10 changed files with 116 additions and 81 deletions

View File

@@ -4,7 +4,6 @@
#include <chipmunk/chipmunk.h>
#include "script.h"
extern cpBody *ballBody;
extern float phys2d_gravity;
extern int physOn;
extern cpSpace *space;
@@ -12,6 +11,8 @@ extern cpSpace *space;
struct phys2d_shape {
cpShape *shape;
int go;
void *data;
void (*debugdraw)(void *data);
};
struct phys2d_circle {