All checks were successful
Build Project / build (ubuntu-latest) (push) Successful in 17m55s
29 lines
365 B
C
29 lines
365 B
C
#ifndef ENTITY_H
|
|
#define ENTITY_H
|
|
|
|
#include <stdbool.h>
|
|
#include "raylib.h"
|
|
|
|
typedef struct Entity
|
|
{
|
|
bool active;
|
|
|
|
bool isPlayer;
|
|
bool affectedByGravity;
|
|
bool headgrounded;
|
|
|
|
float mass;
|
|
float size;
|
|
|
|
Vector2 position;
|
|
Vector2 velocity;
|
|
Vector2 acceleration;
|
|
Vector2 force;
|
|
|
|
Color color;
|
|
float drag;
|
|
|
|
} Entity;
|
|
|
|
#endif
|