very bad collision(work in progress)
This commit is contained in:
34
src/world.h
Normal file
34
src/world.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#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 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);
|
||||
|
||||
void ClearWorld(void);
|
||||
void InitWorld(void);
|
||||
|
||||
int CountEntities(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user