Scale factor and expansion upon basic implementation

This commit is contained in:
2026-06-15 11:54:39 -04:00
committed by P7MJ
parent c4930f77df
commit 4b545205aa
19 changed files with 2400 additions and 41 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