27 lines
326 B
C
27 lines
326 B
C
#ifndef ENTITY_H
|
|
#define ENTITY_H
|
|
|
|
#include <stdbool.h>
|
|
#include "raylib.h"
|
|
|
|
typedef struct Entity
|
|
{
|
|
bool active;
|
|
|
|
bool isPlayer;
|
|
bool affectedByGravity;
|
|
|
|
float mass;
|
|
float size;
|
|
|
|
Vector2 position;
|
|
Vector2 velocity;
|
|
Vector2 acceleration;
|
|
Vector2 force;
|
|
|
|
Color color;
|
|
|
|
} Entity;
|
|
|
|
#endif
|