taisei/src/stages/stage3/scuttle.c
Andrei Alexeyev 558541e2cc
stage3: Major redesign of the stage (WIP)
Still needs work, but good enough for now.

Merges #203

Squashed commit of the following:

commit 7f30ef2393
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Fri Jan 27 23:50:42 2023 +0100

    stageinfo: finally rename stage3

commit 53ca691e68
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Fri Jan 27 23:38:36 2023 +0100

    stage3: telegraph moonlight rockets

commit 4d247877e7
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Wed Jan 18 15:54:44 2023 +0100

    stage3: moonlight rocket fixes

commit 684a167611
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Wed Jan 18 14:50:48 2023 +0100

    stage3: update background

commit bed836f56c
Author: laochailan <laochailan@web.de>
Date:   Sat Jan 7 19:52:51 2023 -0500

    stage3: make easy mode easier

commit bec659a6eb
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Wed Dec 7 20:20:18 2022 +0100

    stage3: sprinkle some random difficulty_value() calls

commit 2090821188
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Sun Nov 20 07:57:33 2022 +0100

    stage3: refactor and fix deadly dance (no design update yet)

commit 5dbdeae1dd
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Sun Nov 20 07:17:05 2022 +0100

    stage3: redesign scuttle nonspell

commit 70666a4074
Author: Andrei Alexeyev <0x416b617269@gmail.com>
Date:   Mon Nov 14 01:32:11 2022 +0100

    stage3: last pre-boss section draft

commit 42bb538ff5
Author: Andrei Alexeyev <0x416b617269@gmail.com>
Date:   Mon Nov 14 01:28:32 2022 +0100

    stage3: bunch of swarm-trail fairy fixes

commit 5938783591
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Sat Nov 12 01:40:23 2022 +0100

    stage3: more misery

commit 84342f1973
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Tue Nov 8 16:35:11 2022 +0100

    stage3: post-midboss up to climax

commit b40f71bbc6
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Wed Nov 2 18:43:54 2022 +0100

    stage3: experimental post-midboss pattern

commit b5710faa04
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Wed Nov 2 18:12:49 2022 +0100

    stage3: deadly dance fixes

commit f85aa25c00
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Wed Nov 2 18:08:02 2022 +0100

    stage3: first sparks of difficulty balance

commit 33b65b7fbe
Author: laochailan <laochailan@web.de>
Date:   Sun Oct 16 10:27:24 2022 -0400

    stage3: align swarm fairies

commit 2556a0de9e
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Mon Sep 26 05:35:53 2022 +0200

    stage3: more progress on the first half

commit 86fc38255b
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Sat Sep 24 04:10:57 2022 +0200

    stage3: add some swirls after superfairy

commit b0134e82c7
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Sat Sep 24 04:10:11 2022 +0200

    stage3: experimental laserball fairy

commit 88d7646927
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Sat Sep 24 04:09:14 2022 +0200

    stage3: tweak horde fairies

commit b97da7a9e9
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Tue Sep 13 17:08:12 2022 +0200

    stage3: wip circletwist fairy tweaks

commit ee9234a72b
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Mon Sep 5 04:41:55 2022 +0200

    wip swirls

commit 26c7a35e04
Author: laochailan <laochailan@web.de>
Date:   Sun Jan 2 11:29:41 2022 +0100

    stage3 wip

commit d1a263223f
Author: laochailan <laochailan@web.de>
Date:   Fri Nov 12 05:57:07 2021 +0100

    wip wip wip

commit c2527b05cf
Author: laochailan <laochailan@web.de>
Date:   Thu Sep 30 20:38:38 2021 +0200

    stage3 redesign: some first prototypes

commit 0c2855e3ca
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Thu May 6 21:59:48 2021 +0300

    stage3: some preliminary fixes

commit fddf314db9
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Sun Feb 28 07:36:04 2021 +0200

    stage3: port rest of night ignite

commit 1cd84d7834
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Sat Feb 27 04:50:46 2021 +0200

    stage3: port night ignite slaves

commit cb991be703
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Sat Feb 27 04:26:26 2021 +0200

    stage3: finish porting firefly storm

commit 0fb9733829
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Wed Jun 23 02:44:14 2021 +0300

    stage3: partial firefly storm port

commit ba174893a0
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Tue Feb 23 02:28:13 2021 +0200

    stage3: enable all wriggle attacks

commit 03e1dd8078
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Tue Feb 23 02:22:35 2021 +0200

    stage3: port wriggle nons

commit 3308255579
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Mon Feb 22 16:27:50 2021 +0200

    stage3: fix some indent issues

commit b1c1115d7f
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Mon Feb 22 16:23:07 2021 +0200

    stage3: fix deprecations in moonlight rocket

commit 990489e960
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Thu Feb 4 08:53:00 2021 +0200

    stage3: port moonlight rocket

commit 859592a89b
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Thu Feb 4 07:31:58 2021 +0200

    stage3: basic port of wriggle slaves

commit b88b4f5249
Author: Andrei Alexeyev <akari@taisei-project.org>
Date:   Mon Feb 1 06:28:30 2021 +0200

    stage3: port Light Singularity

commit db6bb13326
Author: Alice D <34408664+StarWitch@users.noreply.github.com>
Date:   Wed Mar 18 23:25:25 2020 -0400

    stage3: preliminary coroutinization (#197)

    * first enemy of Stage 3 converted

    * review suggestions

    * add interval for burst_swirls

    * mid-commit

    * fairy group (second spawned enemies)

    * forgot to use my own variable

    * comment changes

    * better understanding of second arg of create_enemy*

    * fix subtasks (wasn't using them the correct way)

    * swirls that go from one side to the other

    * burst fairies complete

    * all complete up until midboss (stage 3 coroutines)

    * remove sub-rule for projectiles in charge_fairy

    * entire stage on coroutines now (boss spellcards missing)

    * rip out more old/dead code, make file better organized

    * timing changes

    * remove old background (looks jank now with new timing)

    * PR review changes

    * slight readability changes

    * Scuttle lethal_bite implemented

    * PR changes (ignore wriggle, she's still a WIP)

    * revert Info.plist entry (for separate PR)

    * finish(?) Scuttle's deadly dance, plus some PR changes

Co-authored-by: Alice D <34408664+StarWitch@users.noreply.github.com>
Co-authored-by: Lukas Weber <laochailan@web.de>
2023-01-27 23:57:12 +01:00

44 lines
1.3 KiB
C

/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#include "taisei.h"
#include "scuttle.h"
#include "common_tasks.h"
void stage3_draw_scuttle_spellbg(Boss *h, int time) {
float a = 1.0;
if(time < 0)
a += (time / (float)ATTACK_START_DELAY);
float s = 0.3 + 0.7 * a;
r_color4(0.1*a, 0.1*a, 0.1*a, a);
draw_sprite(VIEWPORT_W/2, VIEWPORT_H/2, "stage3/spellbg2");
fill_viewport(-time/200.0 + 0.5, time/400.0+0.5, s, "stage3/spellbg1");
r_color4(0.1, 0.1, 0.1, 0);
fill_viewport(time/300.0 + 0.5, -time/340.0+0.5, s*0.5, "stage3/spellbg1");
r_shader("maristar_bombbg");
r_uniform_float("t", time/400.);
r_uniform_float("decay", 0.);
r_uniform_vec2("plrpos", 0.5,0.5);
fill_viewport(0.0, 0.0, 1, "stage3/spellbg1");
r_shader_standard();
r_color4(1, 1, 1, 1);
}
Boss *stage3_spawn_scuttle(cmplx pos) {
Boss *scuttle = create_boss("Scuttle", "scuttle", pos);
boss_set_portrait(scuttle, "scuttle", NULL, "normal");
scuttle->glowcolor = *RGB(0.5, 0.6, 0.3);
scuttle->shadowcolor = *RGBA_MUL_ALPHA(0.7, 0.3, 0.1, 0.5);
scuttle->zoomcolor = *RGB(0.4, 0.1, 0.4);
return scuttle;
}