This commit is contained in:
Andras Schmelczer 2026-08-09 13:37:33 +01:00
commit 62d2de747e

View file

@ -0,0 +1,29 @@
#ifndef FLOATERS_H_INCLUDED
#define FLOATERS_H_INCLUDED
#include "global.h"
#include "map.h"
#include "player.h"
#include "camera.h"
#include "auxiliary/auxSDL.h"
typedef enum floaterType {
enemy, projectile
} floaterType;
typedef struct floater {
floaterType type;
vector2D position;
vector2D velocity;
float slownessDebuffLeft;
float size;
struct floater* next;
} floater;
void freeFloaterList();
void createEnemy();
void createProjectile(vector3D playerPosition, vector3D playerSize, vector2D* playerVelocity, mousePos mouse);
void moveFloaters(int deltaTime);
void getFloatersRenderObject(int x, int y, renderObject* renderMap, int renderObjectsPerCube);
#endif // FLOATERS_H_INCLUDED