Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Extra Stage #261

Draft
wants to merge 718 commits into
base: remastered-staging
Choose a base branch
from
Draft

WIP: Extra Stage #261

wants to merge 718 commits into from

Conversation

Akaricchi
Copy link
Member

No description provided.

@Akaricchi Akaricchi added this to the v1.4 milestone Nov 24, 2020
@Akaricchi Akaricchi self-assigned this Nov 24, 2020
@Akaricchi Akaricchi added this to To Do in Content via automation Nov 24, 2020
}
}
}
p->timeout = 1; // what is the proper way?
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kill_projectile(p)?

Comment on lines 244 to 247
Attack *opening_attack = boss_add_attack(boss, AT_Normal, "Opening", 60, 40000, NULL, NULL);

boss_start_attack(boss, boss->attacks);
INVOKE_TASK(stagex_midboss_nonspell_1, ENT_BOX(boss), opening_attack);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably want this:

boss_add_attack_task(boss, AT_Normal, "Opening", 60, 40000, TASK_INDIRECT(BossAttack, stagex_midboss_nonspell_1), NULL);
boss_start_attack(boss, boss->attacks);

I'm guessing you copied this from Yumemi's first non. That one is a special case, because the attack task starts during the dialogue there, before the attack phase actually begins, as far as the boss system is concerned. It spawns some slaves, and waits for the attack's initiated event, to sync up with boss_start_attack. That's why the setup there is a little more complicated than usual.

Comment on lines 35 to 37
.pos.x = creal(p->pos),
.pos.y = cimag(p->pos),
.scale = {creal(p->scale), cimag(p->scale)},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.pos.x = creal(p->pos),
.pos.y = cimag(p->pos),
.scale = {creal(p->scale), cimag(p->scale)},
.pos.as_cmplx = p->pos,
.scale.as_cmplx = p->scale,

.sprite_ptr = animation_get_frame(ani, seq, global.frames),
.color = &p->color,
.rotation.angle = p->angle+M_PI/2,
.rotation.vector = {0, 0, 1}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can omit the rotation axis, 0, 0, 1 is implied by default.

.color = RGBA(0,0.2,1,0),
.move = move_towards(global.plr.pos, 0.015),
.flags = PFLAG_NOCLEAR | PFLAG_NOCOLLISION,
.max_viewport_dist = 10000, // how to do this properly?
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is PFLAG_NOAUTOREMOVE. But be careful not to get a projectile stuck somewhere out of view forever.

@StarWitch StarWitch moved this from To Do to In progress in Content May 8, 2021
@StarWitch StarWitch changed the title Extra stage WIP: Extra Stage Sep 25, 2021
@StarWitch StarWitch changed the base branch from master to remastered-staging September 25, 2021 18:04
Akaricchi and others added 27 commits May 18, 2024 04:26
stage background is still fucked for now
Note: the actual music is not in yet, this just adds the menu entries.
…rame

Needed to account for camera movement. Usage may need adjustments
Akaricchi and others added 2 commits May 22, 2024 13:47
Fixes some issues with curves that have degenerate samples at the start,
and is more efficient for curves with lots of degenerate samples in
general.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Content
  
In progress
Development

Successfully merging this pull request may close these issues.

None yet

6 participants