Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
Hollow Knight: Vengeful Spirit
Mason Chen7a0c6e837bae
diff --git a/games/hollowknight/src/data.bin b/games/hollowknight/src/data.binindex 23b839d7..9f9d04b4 100644Binary files a/games/hollowknight/src/data.bin and b/games/hollowknight/src/data.bin differdiff --git a/games/hollowknight/src/data.h b/games/hollowknight/src/data.hindex 822ed519..ac07a057 100644--- a/games/hollowknight/src/data.h+++ b/games/hollowknight/src/data.h@@ -378,23 +378,27 @@#define CLIP_COCOON_SCUTTLER_RUN 319#define CLIP_FX_SPLAT 320#define CLIP_FX_SPLAT2 321-#define CLIP_DRIP_IDLE 322-#define CLIP_DRIP_DRIP 323-#define CLIP_DRIP_FALL 324-#define CLIP_DRIP_IMPACT 325-#define CLIP_BULLET_IDLE 326-#define CLIP_BULLET_IMPACT 327-#define CLIP_BULLET_SHOCKWAVE_SPURT 328-#define CLIP_PROP0_WATERFALL_LOOP 329-#define CLIP_PROP1_TORCH2 330-#define CLIP_PROP1_TORCH3 331-#define SPRITE_HERO_LIGHT 1360-#define SPRITE_DIALOGUE_BACKBOARD 1361-#define SPRITE_PROMPT_SHADOW 1362-#define SPRITE_CORPSE_NAIL 1363-#define SPRITE_FK_BARREL 1364-#define SPRITE_FK_STAFF 1365-#define SPRITE_DIGIT0 1555+#define CLIP_FIREBALL_BLAST 322+#define CLIP_FIREBALL_BALL 323+#define CLIP_FIREBALL_BALL_END 324+#define CLIP_FIREBALL_FIREBALL_WALL_IMPACT 325+#define CLIP_DRIP_IDLE 326+#define CLIP_DRIP_DRIP 327+#define CLIP_DRIP_FALL 328+#define CLIP_DRIP_IMPACT 329+#define CLIP_BULLET_IDLE 330+#define CLIP_BULLET_IMPACT 331+#define CLIP_BULLET_SHOCKWAVE_SPURT 332+#define CLIP_PROP0_WATERFALL_LOOP 333+#define CLIP_PROP1_TORCH2 334+#define CLIP_PROP1_TORCH3 335+#define SPRITE_HERO_LIGHT 1382+#define SPRITE_DIALOGUE_BACKBOARD 1383+#define SPRITE_PROMPT_SHADOW 1384+#define SPRITE_CORPSE_NAIL 1385+#define SPRITE_FK_BARREL 1386+#define SPRITE_FK_STAFF 1387+#define SPRITE_DIGIT0 1577#define STYLE_DIALOGUE 0#define STYLE_PROMPT 1#define STYLE_TITLE_L 2@@ -462,9 +466,9 @@#define TITLE_CHARM_SLUG 19#define NUM_TITLES 20#define TITLE_TABLE {{15, 16, -1, -1}, {17, 18, 19, -1}, {20, 21, -1, 22}, {23, 24, -1, 25}, {26, 27, -1, 28}, {29, 30, -1, -1}, {31, 32, 33, -1}, {34, 35, -1, -1}, {36, 37, -1, -1}, {38, 39, -1, -1}, {40, 41, -1, -1}, {42, 43, -1, -1}, {44, 45, -1, -1}, {46, 47, -1, -1}, {48, 49, -1, 50}, {51, 52, -1, 53}, {51, 52, -1, 54}, {55, 56, 57, -1}, {55, 56, -1, -1}, {58, 59, -1, 60}}-#define SPRITE_FLEUR_TOP 1366+#define SPRITE_FLEUR_TOP 1388#define FLEUR_TOP_RECTS {{0.781f, -0.844f, 0.953f, -0.688f}, {-1.078f, -0.984f, 1.141f, -0.531f}, {-1.281f, -1.016f, 1.313f, -0.484f}, {-1.359f, -1.016f, 1.969f, -0.141f}, {-2.141f, -1.031f, 2.531f, 0.047f}, {-2.250f, -1.078f, 2.766f, 0.266f}, {-2.797f, -1.203f, 3.094f, 0.578f}, {-2.938f, -1.219f, 3.219f, 0.859f}, {-3.203f, -1.234f, 3.469f, 1.141f}, {-3.312f, -1.234f, 3.766f, 1.281f}, {-3.547f, -1.250f, 4.000f, 1.328f}, {-3.844f, -1.250f, 4.016f, 1.328f}, {-4.016f, -1.250f, 4.031f, 1.344f}, {-4.031f, -1.250f, 4.031f, 1.344f}, {-4.047f, -1.250f, 4.031f, 1.359f}, {-4.047f, -1.250f, 4.031f, 1.359f}, {-4.047f, -1.266f, 4.031f, 1.359f}, {-4.047f, -1.266f, 4.031f, 1.359f}, {-4.062f, -1.266f, 4.047f, 1.375f}, {-4.062f, -1.266f, 4.047f, 1.375f}, {-4.062f, -1.266f, 4.047f, 1.375f}, {-4.062f, -1.266f, 4.047f, 1.375f}}#define FLEUR_FRAMES 22#define FLEUR_FPS 15.0f-#define SPRITE_FLEUR_BOT 1367+#define SPRITE_FLEUR_BOT 1389#define FLEUR_BOT_RECTS {{0.000f, 0.000f, 0.016f, 0.016f}, {0.000f, 0.000f, 0.016f, 0.016f}, {0.391f, 0.406f, 0.828f, 0.844f}, {-1.063f, 0.281f, 1.516f, 1.016f}, {-1.594f, -0.047f, 2.109f, 1.031f}, {-1.984f, -0.156f, 2.375f, 1.047f}, {-2.531f, -0.438f, 2.719f, 1.172f}, {-2.688f, -0.594f, 2.766f, 1.188f}, {-2.797f, -0.797f, 3.156f, 1.219f}, {-3.078f, -0.938f, 3.219f, 1.219f}, {-3.250f, -1.156f, 3.438f, 1.219f}, {-3.250f, -1.172f, 3.828f, 1.219f}, {-3.781f, -1.188f, 4.203f, 1.234f}, {-3.984f, -1.188f, 4.344f, 1.234f}, {-4.281f, -1.203f, 4.562f, 1.234f}, {-4.406f, -1.203f, 4.641f, 1.234f}, {-4.578f, -1.219f, 4.719f, 1.234f}, {-4.656f, -1.219f, 4.719f, 1.234f}, {-4.734f, -1.219f, 4.734f, 1.234f}, {-4.750f, -1.234f, 4.734f, 1.234f}, {-4.766f, -1.234f, 4.734f, 1.250f}, {-4.766f, -1.234f, 4.734f, 1.250f}}diff --git a/games/hollowknight/src/enemy.c b/games/hollowknight/src/enemy.cindex 307469f4..c39a79b9 100644--- a/games/hollowknight/src/enemy.c+++ b/games/hollowknight/src/enemy.c@@ -357,20 +357,20 @@ static void blocker_hit(Enemy *e);static void fk_head_hit(void);static void fk_stun(Enemy *e);static void fk_head_stun_end(Enemy *h);-static void enemy_hit(Enemy *e, float direction, int damage) {+static void enemy_hit_by(Enemy *e, float direction, int damage, bool nail, float magnitude) {if (e->mode != EM_ALIVE || e->evasion > 0 || damage <= 0) return;int dir = cardinal(direction);if (e->flags & 4) {- /* Invincible: the hit blocked, the Knight recoiling off it */- if (dir == 0) hero_recoil_left();- else if (dir == 2) hero_recoil_right();+ /* Invincible: the hit blocked, the Knight recoiling off it (a nail's) */+ if (nail && dir == 0) hero_recoil_left();+ else if (nail && dir == 2) hero_recoil_right();FREEZE_MOMENT_1();cam_shake(SHAKE_ENEMY_KILL);e->evasion = 0.15f;return;}- recoil_by_direction(e, dir, 1);- if (FSM(e) != EF_SHADE && FSM(e) != EF_FK) hero_soul_gain(); /* (enemyType 3, a shade, or 6: no soul) */+ recoil_by_direction(e, dir, magnitude);+ if (nail && FSM(e) != EF_SHADE && FSM(e) != EF_FK) hero_soul_gain(); /* (enemyType 3, a shade, or 6: no soul) */e->flashing = true, e->flash_t = 0;e->flags |= 8;e->hp = (int16_t)(e->hp - damage < -50 ? -50 : e->hp - damage);@@ -388,6 +388,8 @@ static void enemy_hit(Enemy *e, float direction, int damage) {enemy_die(e, direction, true);}+static void enemy_hit(Enemy *e, float direction, int damage) { enemy_hit_by(e, direction, damage, true, 1); }+/* ---------------------------------------------------------------- PlayMaker actions *//* the hero's position (its transform) */static float hero_x(void) { return g_hero.body.x; }@@ -4220,6 +4222,20 @@ int enemies_nail(const float *pts, int npts, float direction, int damage) {return out;}+uint32_t enemies_spell(float x0, float y0, float x1, float y1, float direction, int damage, float magnitude, uint32_t done) {+ uint32_t out = 0;+ for (int i = 0; i < MAX_ENEMIES; i++) {+ Enemy *e = &en[i];+ if (e->mode != EM_ALIVE || (e->flags & 17) || (done >> i & 1)) continue;+ float a0, b0, a1, b1;+ enemy_box(e, &a0, &b0, &a1, &b1);+ if (!(x1 > a0 && x0 < a1 && y1 > b0 && y0 < b1)) continue;+ out |= 1u << i;+ enemy_hit_by(e, direction, damage, false, magnitude);+ }+ return out;+}+/* DamageHero: the first enemy touching the HeroBox -> its damage (0: none), which side it is on */int enemies_touch_hero(float x0, float y0, float x1, float y1, int *side) {for (int i = 0; i < MAX_ENEMIES; i++) {diff --git a/games/hollowknight/src/game.c b/games/hollowknight/src/game.cindex 4019d2d8..831fae55 100644--- a/games/hollowknight/src/game.c+++ b/games/hollowknight/src/game.c@@ -300,6 +300,7 @@ static void step(uint32_t keys) {triggers_tick();hero_check_damage();hero_update();+ fireballs_tick();death_tick();world_tick();benches_tick();@@ -332,6 +333,7 @@ void game_draw(void) {prompts_draw();obj_draw();hero_draw();+ fireballs_draw();death_draw();gfx_frame();}diff --git a/games/hollowknight/src/game.h b/games/hollowknight/src/game.hindex 9c875e53..d5c0c247 100644--- a/games/hollowknight/src/game.h+++ b/games/hollowknight/src/game.h@@ -269,6 +269,11 @@ void spell_update(void);void spell_cancel(void);bool spell_busy(void);void spell_cast(bool up, bool down);+void fireballs_tick(void);+void fireballs_draw(void);+/* a spell's box (world): the enemies it touches hit (but those in done: bits of the enemies) -> those it touched */+uint32_t enemies_spell(float x0, float y0, float x1, float y1, float direction, int damage, float magnitude, uint32_t done);+void obj_spell(float x0, float y0, float x1, float y1, float direction, uint32_t *done);void hero_add_geo(int amount);/* the nail's slashes (NailSlash), children of the Knight */diff --git a/games/hollowknight/src/obj.c b/games/hollowknight/src/obj.cindex d0c65b2d..f6cbe9f7 100644--- a/games/hollowknight/src/obj.c+++ b/games/hollowknight/src/obj.c@@ -839,6 +839,26 @@ int obj_nail(const float *pts, int npts, float direction) {return out;}+/* a spell's box: the breakables, cocoons and scuttlers it touches (each object once: done, bits) */+void obj_spell(float x0, float y0, float x1, float y1, float direction, uint32_t *done) {+ float pts[8] = {x0, y0, x1, y0, x1, y1, x0, y1};+ for (int k = 0; k < nobjs; k++) {+ Obj *o = &objs[k];+ if ((o->kind != OK_BREAKABLE && o->kind != OK_COCOON) || (done[k >> 5] >> (k & 31) & 1)) continue;+ const Ent *e = ent_at(o->ent);+ bool touched = false;+ for (int j = 0; j < e->s1 && !touched; j++) {+ const Ent *b = e + 1 + j;+ touched = b->type == ENT_BOX && x1 > b->x0 && x0 < b->x1 && y1 > b->y0 && y0 < b->y1;+ }+ if (!touched) continue;+ done[k >> 5] |= 1u << (k & 31);+ if (o->kind == OK_BREAKABLE) breakable_hit(o, e, direction);+ else cocoon_hit(o, e);+ }+ scuttlers_nail(pts, 4);+}+/* DirectionUtils.GetCardinalDirection: 0 right, 1 up, 2 left, 3 down */int cardinal(float degrees) {int d = (int)lrintf(degrees / 90.0f) % 4;diff --git a/games/hollowknight/src/spell.c b/games/hollowknight/src/spell.cindex 924da7dd..fa83860a 100644--- a/games/hollowknight/src/spell.c+++ b/games/hollowknight/src/spell.c@@ -1,4 +1,5 @@/* The Knight's Spell Control FSM: holding the cast key focuses soul into health; a tap casts a spell. */+#include <math.h>#include "game.h"#define DT 0.02f@@ -10,8 +11,10 @@enum {SP_INACTIVE, SP_BUTTON_DOWN, SP_CANCEL, SP_FOCUS_START, SP_FOCUS, SP_FOCUS_HEAL, SP_FOCUS_GET_FINISH, SP_FOCUS_CANCEL,- SP_BACK_IN+ SP_BACK_IN, SP_FIREBALL_ANTIC, SP_FIREBALL_RECOIL};+#define FIREBALL_RECOIL_DISTANCE 1.0f+static void fireball_spawn(void);static struct {uint8_t state;@@ -27,7 +30,11 @@ static struct {static bool cast_held(void) { return g_hero.keys & K_SPELL; }static bool cast_pressed(void) { return (g_hero.keys & K_SPELL) && !(g_hero.prev_keys & K_SPELL); }-void spell_reset(void) { memset(&sp, 0, sizeof sp); }+void fireballs_reset(void);+void spell_reset(void) {+ memset(&sp, 0, sizeof sp);+ fireballs_reset();+}/* StartMPDrain, StopMPDrain; the drain itself is HeroController.Update's */static void drain_start(void) { sp.drain = true, sp.drain_timer = 0, sp.drained = 0; }@@ -161,6 +168,31 @@ void spell_update(void) {sp.state = SP_INACTIVE;if (cast_held() && sp.didnt_hit_full) can_focus();break;+ case SP_FIREBALL_ANTIC:+ h->body.vx = h->body.vy = 0;+ if (h->anim.events & ANIM_DONE) {+ /* Level Check, Fireball 1: its cast, the soul it takes, the fireball */+ anim_play_from_frame(&h->anim, CLIP_KNIGHT_FIREBALL1_CAST, 0);+ g_pd.mp = (int16_t)(g_pd.mp > MP_COST ? g_pd.mp - MP_COST : 0); /* (TakeMP) */+ fireball_spawn();+ /* Fireball Recoil: back a little, no gravity, till the cast is over */+ hero_gravity(false);+ sp.state = SP_FIREBALL_RECOIL;+ }+ break;+ case SP_FIREBALL_RECOIL:+ h->body.vy = 0;+ h->body.vx = FIREBALL_RECOIL_DISTANCE * 2 * (h->cs.facing_right ? -1.0f : 1.0f);+ if (h->anim.events & ANIM_DONE) {+ /* Spell End */+ h->body.vx = 0;+ hero_regain_control();+ hero_start_anim_control();+ hero_gravity(true);+ sp.can_cancel = false;+ sp.state = SP_INACTIVE;+ }+ break;}}@@ -168,20 +200,168 @@ void spell_update(void) {void spell_cancel(void) {if (sp.state == SP_INACTIVE) return;bool focusing = sp.state >= SP_FOCUS_START && sp.state <= SP_FOCUS_CANCEL;+ bool casting = sp.state == SP_FIREBALL_ANTIC || sp.state == SP_FIREBALL_RECOIL;sp.drain = false;sp.didnt_hit_full = false;g_hero.cs.focusing = false;sp.state = SP_INACTIVE;if (focusing) hero_start_anim_control();+ if (casting) {+ /* (RegainControl, StartAnimationControl, AffectedByGravity) */+ hero_regain_control();+ hero_start_anim_control();+ hero_gravity(true);+ }}bool spell_busy(void) { return sp.state != SP_INACTIVE && sp.state != SP_BUTTON_DOWN; }-/* Can Cast?, Spell Choice: up a scream, down a quake, else a fireball (the ones the Knight has) */+/* Can Cast?, Spell Choice: up a scream, down a quake (the Knight has neither yet: Has Scream?, Has Quake? go on to),+ * a fireball if he has it */void spell_cast(bool up, bool down) {(void)up, (void)down;- if (g_pd.mp < MP_COST || !hero_can_cast()) return;- if (g_pd.fireball_level > 0 && !up && !down) {- /* (Vengeful Spirit: fireball.c) */+ if (g_pd.mp < MP_COST || !hero_can_cast() || g_pd.fireball_level <= 0) return;+ /* Wallside? (no wall sliding here), Fireball Antic: the Knight held still in the air */+ Hero *h = &g_hero;+ sp.can_cancel = true;+ anim_play_from_frame(&h->anim, CLIP_KNIGHT_FIREBALL_ANTIC, 0);+ hero_relinquish_control();+ hero_stop_anim_control();+ hero_gravity(false);+ h->body.vx = h->body.vy = 0;+ sp.state = SP_FIREBALL_ANTIC;+}++/* ---------------------------------------------------------------- Vengeful Spirit (Fireball Top, Fireball) */+#define MAX_FIREBALLS 2+#define FIRE_SPEED 40.0f+#define FB_SX 1.3f /* (Set Damage: its scale) */+#define FB_SY 1.6f+#define FB_DAMAGE 15+#define FB_MAGNITUDE 1.5f /* (damages_enemy: magnitudeMult) */+enum { FB_OFF, FB_PAUSE, FB_IDLE, FB_DISSIPATE, FB_GONE, FB_WALL };++typedef struct {+ uint8_t st;+ bool right;+ float t;+ Body body; /* (its Terrain Checker's box: what stops it) */+ Anim anim, blast, impact;+ float bx, by; /* the blast's place (Fireball Top's child) */+ bool blast_on, impact_on;+ uint32_t hit_enemies; /* (damages_enemy: each once) */+ uint32_t hit_objs[3];+} Fireball;+static Fireball fbs[MAX_FIREBALLS];++void fireballs_reset(void) { memset(fbs, 0, sizeof fbs); }++static void fireball_spawn(void) {+ Fireball *f = &fbs[0];+ for (int i = 0; i < MAX_FIREBALLS; i++)+ if (fbs[i].st == FB_OFF || fbs[i].st == FB_GONE) {+ f = &fbs[i];+ break;+ }+ const Hero *h = &g_hero;+ memset(f, 0, sizeof *f);+ /* Fireball Top, at the Knight: its blast ahead of him, the camera shaken, the fireball sent off */+ f->right = h->cs.facing_right;+ float k = f->right ? 1.0f : -1.0f;+ f->bx = h->body.x + 1.13f * k, f->by = h->body.y;+ f->blast_on = true;+ anim_play_from_frame(&f->blast, CLIP_FIREBALL_BLAST, 0);+ cam_shake(SHAKE_AVERAGE);+ Body *b = &f->body;+ b->x = h->body.x + 1.1683f * k, b->y = h->body.y - 0.5428f;+ b->vx = FIRE_SPEED * k;+ /* (the Terrain Checker's box, at the fireball's scale) */+ b->ox = 0.513f * k, b->oy = -0.032f, b->hx = 0.887f, b->hy = 0.504f;+ b->mask = CF_TERRAIN;+ anim_play(&f->anim, CLIP_FIREBALL_BALL);+ f->st = FB_PAUSE;+}++static void fireball_hit_things(Fireball *f) {+ /* (its trigger box: 2.61 x 2.12 about (0.53, -0.02), at its scale) */+ float k = f->right ? 1.0f : -1.0f, cx = f->body.x + 0.5344f * FB_SX * k, cy = f->body.y - 0.0179f * FB_SY;+ float hx = 2.6111f / 2 * FB_SX, hy = 2.1246f / 2 * FB_SY;+ float dir = f->right ? 0 : 180;+ f->hit_enemies |= enemies_spell(cx - hx, cy - hy, cx + hx, cy + hy, dir, FB_DAMAGE, FB_MAGNITUDE, f->hit_enemies);+ obj_spell(cx - hx, cy - hy, cx + hx, cy + hy, dir, f->hit_objs);+}++void fireballs_tick(void) {+ for (int i = 0; i < MAX_FIREBALLS; i++) {+ Fireball *f = &fbs[i];+ if (f->st == FB_OFF) continue;+ f->t += DT;+ if (f->blast_on) {+ f->blast.events = 0;+ anim_update(&f->blast, DT);+ if (f->blast.events & ANIM_DONE) f->blast_on = false; /* (DeactivateAfter2dtkAnimation) */+ }+ if (f->impact_on) {+ f->impact.events = 0;+ anim_update(&f->impact, DT);+ if (f->impact.events & ANIM_DONE) f->impact_on = false;+ }+ f->anim.events = 0;+ anim_update(&f->anim, DT);+ switch (f->st) {+ case FB_PAUSE:+ /* (a frame on: Init, then Idle; moving meanwhile) */+ f->st = FB_IDLE, f->t = DT;+ /* fall through */+ case FB_IDLE: {+ body_step(&f->body, DT);+ fireball_hit_things(f);+ /* (any collision with the terrain, or stopped by it: WALL) */+ if (f->body.ncontacts > 0 || fabsf(f->body.vx) < 0.1f) {+ /* Wall Impact: still, its impact ahead of it; the camera shaken */+ f->body.vx = 0;+ cam_shake(SHAKE_AVERAGE);+ f->impact_on = true;+ anim_play_from_frame(&f->impact, CLIP_FIREBALL_FIREBALL_WALL_IMPACT, 0);+ f->st = FB_WALL, f->t = 0;+ } else if (f->t >= 0.45f) {+ /* Dissipate: its end, no longer hitting */+ anim_play_from_frame(&f->anim, CLIP_FIREBALL_BALL_END, 0);+ f->st = FB_DISSIPATE, f->t = 0;+ }+ break;+ }+ case FB_DISSIPATE:+ f->body.x += f->body.vx * DT;+ if (f->anim.events & ANIM_DONE) f->st = FB_GONE, f->t = 0;+ break;+ case FB_GONE:+ case FB_WALL:+ /* (Dissipate End, Break: recycled after 2 s) */+ if (f->t >= 2 && !f->blast_on && !f->impact_on) f->st = FB_OFF;+ break;+ }+ }+}++void fireballs_draw(void) {+ for (int i = 0; i < MAX_FIREBALLS; i++) {+ const Fireball *f = &fbs[i];+ if (f->st == FB_OFF) continue;+ float k = f->right ? 1.0f : -1.0f;+ Inst in;+ if (f->blast_on) {+ sprite_inst(f->blast.sprite, f->bx, f->by, -0.001f, 2 * k, 2, 0, &in);+ gfx_actor(&in, SORT_KEY(0, 0));+ }+ if (f->st == FB_PAUSE || f->st == FB_IDLE || f->st == FB_DISSIPATE) {+ sprite_inst(f->anim.sprite, f->body.x, f->body.y, -0.002f, FB_SX * k, FB_SY, 0, &in);+ gfx_actor(&in, SORT_KEY(0, 0));+ }+ if (f->impact_on) {+ /* (Wall Impact: its child, 1.71 ahead, at 2.5 its scale) */+ sprite_inst(f->impact.sprite, f->body.x + 1.7094f * FB_SX * k, f->body.y, -0.002f, 2.5f * FB_SX * k, 2.5f * FB_SY, 0, &in);+ gfx_actor(&in, SORT_KEY(0, 0));+ }}}diff --git a/games/hollowknight/tools/actors.py b/games/hollowknight/tools/actors.pyindex 34f70e61..808a3cb1 100644--- a/games/hollowknight/tools/actors.py+++ b/games/hollowknight/tools/actors.py@@ -122,6 +122,8 @@ ACTORS["bgate"] = ("sharedassets9.assets", 197, ["BG Opened", "BG Close 1", "BG# lifeblood cocoons and their scuttlers (HealthCocoon, ScuttlerControl); effects (splats)ACTORS["cocoon"] = ("sharedassets6.assets", 1092, ["Cocoon Idle", "Cocoon Sweat", "Scuttler Land", "Scuttler Run"])ACTORS["fx"] = ("resources.assets", 21298, ["Splat", "Splat2"])+# Vengeful Spirit (Fireball Top's blast, Fireball: its ball, its end, its impact on a wall)+ACTORS["fireball"] = ("resources.assets", 23262, ["Blast", "Ball", "Ball End", "Fireball Wall Impact"])# water drips (WaterDrip)ACTORS["drip"] = ("sharedassets6.assets", 1095, ["Idle", "Drip", "Fall", "Impact"])PROP_ACTOR = {} # (props' libraries: their actors)@@ -174,6 +176,7 @@ def named_sprites(sprites):return out# clips drawn bigger than their sprites (the object's scale): their frames are kept that much finerDRAWN_SCALE = {"Arrow Up": 1.3, "Arrow Down": 1.3, "Stop Up": 1.3, "Stop Down": 1.3, "SlashEffect": 1.645, "SlashEffectAlt": 1.422, "UpSlashEffect": 1.4, "DownSlashEffect": 1.28,+ "Blast": 1.4, "Ball": 1.45, "Ball End": 1.45, "Fireball Wall Impact": 2.0,"Small Idle": 1.5, "Small Air": 1.5, "Med Idle": 1.5, "Med Air": 1.5, "Large Idle": 1.5, "Large Air": 1.5}K0 = scene.FOCAL / (0.004 - scene.CAMZ) # screen pixels a unit, where actors are (z near 0)HUD_K = (scene.VIEW_H / 2) / 8.7107 # the HUD's (its orthographic camera)