Files
WrldBox/src/world.h
swim67667 f112c37e9e
Some checks failed
Build Project / build (windows-latest) (push) Waiting to run
Build Project / build (ubuntu-latest) (push) Failing after 8m17s
adding top collision
2026-06-24 22:46:43 -04:00

39 lines
559 B
C

#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;
extern const float scale;
extern const float MAX_PLAYER_SPEED;
extern const float PLAYER_SPEED_FACTOR;
void ApplyForce(Entity *e, Vector2 force);
bool IsGrounded(Entity *e);
Entity *SpawnEntity(
float x,
float y,
float size,
float mass,
Color color,
float drag);
void ClearWorld(void);
void InitWorld(void);
int CountEntities(void);
#endif