This commit is contained in:
2026-09-24 15:30:45 -03:00
commit a5af824c91
306 changed files with 58603 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef ACT9WALL_H
#define ACT9WALL_H
#include "../States.h"
bool act9wall_init(Server* server, Entity* entity);
bool act9wall_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint8_t wid;
double start_time;
double init_elapsed;
bool shrink_started;
} Act9Wall;
#define MakeAct9Wall(wid, x, y) ((Act9Wall) { MakeEntity("act9wall", x, y) act9wall_init, act9wall_tick, NULL, wid, 0, 0, false })
#endif
+16
View File
@@ -0,0 +1,16 @@
#ifndef BRING_H
#define BRING_H
#include "../States.h"
#include <stdint.h>
bool bring_init(Server* server, Entity* entity);
bool bring_uninit(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
} BRing;
#define MakeBlackRing(x, y) ((BRing) { MakeEntity("bring", x, y) bring_init, NULL, bring_uninit})
#define MAP_BRING INT16_MAX
#endif
+17
View File
@@ -0,0 +1,17 @@
#ifndef CREAM_RING
#define CREAM_RING
#include "../States.h"
bool cring_init(Server* server, Entity* entity);
bool cring_uninit(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint8_t rid;
uint8_t red;
} CreamRing;
#define MakeCreamRing(x, y, red) ((CreamRing) { MakeEntity("cring", x, y) cring_init, NULL, cring_uninit, 255, red })
#endif
+16
View File
@@ -0,0 +1,16 @@
#ifndef DTBALL_H
#define DTBALL_H
#include "../States.h"
bool dtball_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
double state;
uint8_t side;
} DTBall;
#define MakeDTBall() ((DTBall) { MakeEntity("dtball", 0, 0) NULL, dtball_tick, NULL, 0, 0 })
#endif
+23
View File
@@ -0,0 +1,23 @@
#ifndef DTSTALACTITS_H
#define DTSTALACTITS_H
#include "../States.h"
bool dtst_init(Server* server, Entity* entity);
bool dtst_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint8_t sid;
bool state;
bool show;
uint16_t sx, sy;
double timer;
float vel;
} DTStalactits;
#define MakeDTStalactiti(id, x, y) ((DTStalactits) { MakeEntity("dttits", x, y) dtst_init, dtst_tick, NULL, id, 0, 1, x, y, 0, 0 })
bool dtst_activate(Server* server, DTStalactits* tits);
#endif
+17
View File
@@ -0,0 +1,17 @@
#ifndef DUMMY_H
#define DUMMY_H
#include "../States.h"
bool dummy_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
double vel;
} Dummy;
#define MakeDummy() ((Dummy) { MakeEntity("dummy", 1616, 2608) NULL, dummy_tick, NULL, 0 })
void dummy_activate(Dummy* dummy, int8_t dir);
#endif
+16
View File
@@ -0,0 +1,16 @@
#ifndef EGGTRACK
#define EGGTRACK
#include "../States.h"
bool eggtrack_init(Server* server, Entity* entity);
bool eggtrack_uninit(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint16_t activ_id;
} EggTracker;
#define MakeEggTrack(x, y) ((EggTracker) { MakeEntity("eggtrack", x, y) eggtrack_init, NULL, eggtrack_uninit, 0, })
#endif
+17
View File
@@ -0,0 +1,17 @@
#ifndef EXELCLONE_H
#define EXELCLONE_H
#include "../States.h"
bool exclone_init(Server* server, Entity* entity);
bool exclone_uninit(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
int8_t dir;
uint16_t owner;
} ExellerClone;
#define MakeExellerClone(x, y, dir, owner) ((ExellerClone) { MakeEntity("exclone", x, y) exclone_init, NULL, exclone_uninit, dir, owner })
#endif
+18
View File
@@ -0,0 +1,18 @@
#ifndef HDDOOR_H
#define HDDOOR_H
#include "../States.h"
bool hddoor_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint8_t state;
double timer;
} HDDoor;
#define MakeHDDoor() ((HDDoor) { MakeEntity("hddoor", 0, 0) NULL, hddoor_tick, NULL, 0, 0 })
bool hddoor_toggle(Server* server, HDDoor* door);
#endif
+16
View File
@@ -0,0 +1,16 @@
#ifndef GHZTHUNDER_H
#define GHZTHUNDER_H
#include "../States.h"
bool thunder_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
double timer;
bool flag;
} Thunder;
#define MakeThunder() ((Thunder) { MakeEntity("thunder", 0, 0) NULL, thunder_tick, NULL, (15 + (rand() % 5)) * TICKSPERSEC, 0 })
#endif
+20
View File
@@ -0,0 +1,20 @@
#ifndef KAFSPEEDBOX_H
#define KAFSPEEDBOX_H
#include "../States.h"
bool kafbox_init(Server* server, Entity* entity);
bool kafbox_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint8_t nid;
double timer;
bool activated;
} KafBox;
#define MakeKafBox(nid) ((KafBox) { MakeEntity("kafbox", 0, 0) kafbox_init, kafbox_tick, NULL, nid, 0, 0, })
bool kafbox_activate(Server* server, KafBox* box, uint16_t pid, uint8_t is_proj);
#endif
+22
View File
@@ -0,0 +1,22 @@
#ifndef LCCHAIN_H
#define LCCHAIN_H
#include "../States.h"
bool lcchain_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
double timer;
enum
{
LCC_NONE,
LCC_PREPARE,
LCC_ACTIVATE
} state;
} LCChain;
#define MakeLCChain() ((LCChain) { MakeEntity("lcchain", 0, 0) NULL, lcchain_tick, NULL, 0, LCC_NONE })
#endif
+25
View File
@@ -0,0 +1,25 @@
#ifndef LCEYE_H
#define LCEYE_H
#include "../States.h"
bool lceye_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint8_t eye_id;
uint16_t use_id;
bool used;
uint8_t charge;
uint16_t target;
double cooldown;
double timer;
} LCEye;
#define MakeLCEye(id) ((LCEye) { MakeEntity("lceye", 0, 0) NULL, lceye_tick, NULL, id, 0, 0, 100, 0, 0, 0 })
bool lceye_update(Server* server, LCEye* eye);
#endif
+16
View File
@@ -0,0 +1,16 @@
#ifndef MJASS_H
#define MJASS_H
#include "../States.h"
bool mass_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
double next_time;
double timer;
bool state;
} MAss;
#define MakeMAss() ((MAss) { MakeEntity("mass", 0, 0) NULL, mass_tick, NULL, 10 * TICKSPERSEC, 0.0, false })
#endif
+21
View File
@@ -0,0 +1,21 @@
#ifndef MJJUDGER_H
#define MJJUDGER_H
#include "../States.h"
bool mjew_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
double next_time;
double timer;
enum
{
MJJ_WAIT,
MJJ_PREPARE,
MJJ_FIRE
} state;
} MJew;
#define MakeMJew() ((MJew) { MakeEntity("mjud", 0, 0) NULL, mjew_tick, NULL, (10 + rand() % 5) * TICKSPERSEC, 0.0, MJJ_WAIT })
#endif
+27
View File
@@ -0,0 +1,27 @@
#ifndef MJLAVA_H
#define MJLAVA_H
#include "../States.h"
bool mlava_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
enum
{
MLV_IDLE,
MLV_MOVEDOWN,
MLV_RAISE,
MLV_MOVE,
MLV_LOWER
} state;
double timer;
float start;
float dist;
float vel;
} MLava;
#define MakeMLava(start, dist) ((MLava) { MakeEntity("mlava", 0, start) NULL, mlava_tick, NULL, MLV_IDLE, 5 * TICKSPERSEC, start, dist, 0 })
#endif
+20
View File
@@ -0,0 +1,20 @@
#ifndef NAPICE_H
#define NAPICE_H
#include "../States.h"
bool ice_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint8_t iid;
bool activated;
double timer;
} Ice;
#define MakeIce(id) ((Ice) { MakeEntity("ice", 0, 0) NULL, ice_tick, NULL, id, 0, 0 })
bool ice_activate(Server* server, Ice* ice);
#endif
+31
View File
@@ -0,0 +1,31 @@
#ifndef NAPSNOWBALL_H
#define NAPSNOWBALL_H
#include "../States.h"
bool snowball_init(Server* server, Entity* entity);
bool snowball_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint8_t sid;
bool active;
uint8_t state;
double stage_prog;
int8_t dir;
double frame;
double start;
double vel;
uint8_t p_count;
double timer;
float p_move[20];
float p_anim[20];
} Snowball;
#define MakeSnowball(id, p_count, dir) ((Snowball) { MakeEntity("snowball", 0, 0) snowball_init, snowball_tick, NULL, id, 0, 0, 0, dir, 0, 0, 0, p_count, 0 })
bool snowball_activate(Server* server, Snowball* sb);
#endif
+22
View File
@@ -0,0 +1,22 @@
#ifndef NPCONTROLLER_H
#define NPCONTROLLER_H
#include "../States.h"
bool npctrl_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
enum
{
NPC_NONE,
NPC_PREPARE
} state;
uint8_t stage;
double timer;
bool balls;
} NPController;
#define MakeNPCtrl() ((NPController) { MakeEntity("npctrl", 0, 0) NULL, npctrl_tick, NULL, NPC_NONE, 0, 0, 0 })
#endif
+24
View File
@@ -0,0 +1,24 @@
#ifndef PFLIFT_H
#define PFLIFT_H
#include "../States.h"
typedef struct
{
ENTITY_BODY
uint8_t lid;
double timer;
float start;
float end;
float speed;
uint16_t activator;
bool activated;
} PFLift;
#define MakePFLift(id, start, end) ((PFLift) { MakeEntity("pflift", 0, 0) pflift_init, pflift_tick, NULL, id, 0, start, end, 0, 0, 0 })
bool pflift_init(Server* server, Entity* entity);
bool pflift_tick(Server* server, Entity* entity);
bool pflift_activate(Server* server, PFLift* lift, uint16_t id);
#endif
+15
View File
@@ -0,0 +1,15 @@
#ifndef RMZSHARD_H
#define RMZSHARD_H
#include "../States.h"
bool shard_init(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint8_t spawned;
} Shard;
#define MakeShard(x, y, spawned) ((Shard) { MakeEntity("shard", x, y) shard_init, NULL, NULL, spawned })
#endif
+45
View File
@@ -0,0 +1,45 @@
#ifndef RMZSLIME_H
#define RMZSLIME_H
#include "../States.h"
bool slug_init(Server* server, Entity* entity);
bool slug_tick(Server* server, Entity* entity);
bool slug_uninit(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
float sX, sY;
enum
{
SLUG_NONERIGHT,
SLUG_NONELEFT,
SLUG_RINGRIGHT,
SLUG_RINGLEFT,
SLUG_REDRINGRIGHT,
SLUG_REDRINGLEFT
} state;
enum
{
SLUG_NORING,
SLUG_RING,
SLUG_REDRING
} ring;
} Slug;
#define MakeSlug(x, y) ((Slug) { MakeEntity("slug", x, y) slug_init, slug_tick, slug_uninit, 0.f, 0.f, 0, 0 })
bool slugspawn_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
double offset;
double timer;
uint16_t slug;
} SlugSpawner;
#define MakeSlugSpawn(x, y) ((SlugSpawner) { MakeEntity("slugspawn", x, y) NULL, slugspawn_tick, NULL, (rand() % 10) * TICKSPERSEC, 0, 0 })
#endif
+17
View File
@@ -0,0 +1,17 @@
#ifndef RING_H
#define RING_H
#include "../States.h"
bool ring_init(Server* server, Entity* entity);
bool ring_uninit(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint8_t rid;
uint8_t red;
} Ring;
#define MakeRing() ((Ring) { MakeEntity("ring", 0, 0) ring_init, NULL, ring_uninit, 0, 0 })
#endif
+16
View File
@@ -0,0 +1,16 @@
#ifndef SPIKES_H
#define SPIKES_H
#include "../States.h"
bool spike_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint8_t frame;
double timer;
} SpikeController;
#define MakeSpike() ((SpikeController) { MakeEntity("spikectrl", 0, 0) NULL, spike_tick, NULL, 0, 2 * TICKSPERSEC })
#endif
+17
View File
@@ -0,0 +1,17 @@
#ifndef TCACID_H
#define TCACID_H
#include "../States.h"
bool acid_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint8_t acid_id;
uint8_t activated;
double timer;
} Acid;
#define MakeAcid() ((Acid) { MakeEntity("acid", 0, 0) NULL, acid_tick, NULL, 0, 0, 0.0 })
#endif
+25
View File
@@ -0,0 +1,25 @@
#ifndef TPROJECTILE_H
#define TPROJECTILE_H
#include "../States.h"
bool tdoll_init(Server* server, Entity* entity);
bool tdoll_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
enum
{
TDST_NONE,
TDST_READY,
TDST_FOLLOW,
TDST_RELOC
} state;
uint32_t target;
double timer;
double velx, vely;
} TailsDoll;
#define MakeTailsDoll() ((TailsDoll) { MakeEntity("tdoll", 0, 0) tdoll_init, tdoll_tick, NULL, TDST_NONE, -1, 0, 0.0, 0.0 })
#endif
+23
View File
@@ -0,0 +1,23 @@
#ifndef TPROJECTILE_H
#define TPROJECTILE_H
#include "../States.h"
bool tproj_init(Server* server, Entity* entity);
bool tproj_tick(Server* server, Entity* entity);
bool tproj_uninit(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint16_t owner;
int8_t dir;
uint8_t exe;
uint8_t charge;
uint8_t damage;
double timer;
} TProjectile;
#define MakeTailsProj(x, y, owner, dir, exe, charge, damage) ((TProjectile) { MakeEntity("tproj", x, y) tproj_init, tproj_tick, tproj_uninit, owner, dir, exe, charge, damage, 20 * TICKSPERSEC })
#endif
+28
View File
@@ -0,0 +1,28 @@
#ifndef VVLAVA_H
#define VVLAVA_H
#include "../States.h"
bool lava_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
uint8_t lid;
enum
{
LV_IDLE,
LV_MOVEDOWN,
LV_RAISE,
LV_MOVE,
LV_LOWER
} state;
double timer;
float start;
float dist;
float vel;
} Lava;
#define MakeLava(id, start, dist) ((Lava) { MakeEntity("lava", 0, start) NULL, lava_tick, NULL, id, LV_IDLE, (20 + rand() % 5) * TICKSPERSEC, start, dist, 0 })
#endif
+14
View File
@@ -0,0 +1,14 @@
#ifndef VVVASE_H
#define VVVASE_H
#include "../States.h"
typedef struct
{
ENTITY_BODY
uint8_t vid;
uint8_t type;
} Vase;
#define MakeVase(id) ((Vase) { MakeEntity("vase", 0, 0) NULL, NULL, NULL, id, (rand() % 4) })
#endif
+19
View File
@@ -0,0 +1,19 @@
#ifndef WDLATERN_H
#define WDLATERN_H
#include <stdlib.h>
#include "../States.h"
bool latern_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
bool side;
double timer;
uint8_t lid;
uint16_t time;
} Latern;
#define MakeLatern() ((Latern) { MakeEntity("latrn", 0, 0) NULL, latern_tick, NULL, false, 0.0, 0, (7 + rand() % 2) })
#endif
+22
View File
@@ -0,0 +1,22 @@
#ifndef YCRCONTROLLER_H
#define YCRCONTROLLER_H
#include "../States.h"
bool ycrctrl_tick(Server* server, Entity* entity);
typedef struct
{
ENTITY_BODY
enum
{
YCC_NONE,
YCC_SOME
} state;
double timer;
uint8_t smoke_id;
uint8_t activated;
} YCRController;
#define MakeYCRCtrl() ((YCRController) { MakeEntity("ycrctrl", 0, 0) NULL, ycrctrl_tick, NULL, YCC_NONE, 0, 0, 0 })
#endif