Entirely expanded upon existing proof-of-concept

This commit is contained in:
2026-06-16 11:23:16 -04:00
parent e8d29b7f6b
commit baa5a6935f
19 changed files with 2373 additions and 16 deletions

30
src/world.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef WORLD_H
#define WORLD_H
#include "entity.h"
#include "config.h"
extern Entity entities[MAX_ENTITIES];
extern Entity *player;
extern bool isSimulating;
extern float simTime;
void ApplyForce(Entity *e, Vector2 force);
bool IsGrounded(Entity *e);
Entity *SpawnEntity(
float x,
float y,
float size,
float mass,
Color color);
void ClearWorld(void);
void InitWorld(void);
int CountEntities(void);
#endif