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

Add boss MVP #200

Closed
wants to merge 9 commits into from
Closed

Add boss MVP #200

wants to merge 9 commits into from

Conversation

edgarssilva
Copy link
Collaborator

The beach level only has the boss for easier debugging. I usually use the bandit sprite since I'm waiting on the boss ones (I might give it a shot myself) but currently it's using the current boss sheet (very distracting).

The temporary way to define the boss is by passing boss: true in yaml file of the level, this will get picked up and add a Boss marker component to the enemy entity.
This will make the enemy not use the default attack and instead do a jump one though sometimes doesn't land on the current spot. Numbers should be adjusted but waiting for the textures to fit it nicely.

@erlend-sh erlend-sh linked an issue Aug 2, 2022 that may be closed by this pull request
@64kramsystem 64kramsystem marked this pull request as draft August 3, 2022 08:43
Copy link
Member

@64kramsystem 64kramsystem left a comment

Choose a reason for hiding this comment

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

In general, looks good to me, as it just follows the same patterns we use. The new boss is necessary, as there is special boss behavior (e.g. when the boss dies, all other minions die as well, level is completed, etc.).

Something that I can imagine in the future (near or far 😄) is for the attacks to be defined by metadata. However, I think this is something quite complex, since it will also interact with scripting, states etc, which are under heavy work.

In summary, LGTM 😄

Needs to be rebased.

@64kramsystem
Copy link
Member

Ah, BTW, I've marked the PR as draft.

@erlend-sh erlend-sh changed the title Add boss MVP (Not ready to merge) Add boss MVP Aug 3, 2022
@edgarssilva
Copy link
Collaborator Author

Just got the boss assets, @zicklag not sure what to do with attack conflicts. Could you take a look?

@zicklag
Copy link
Member

zicklag commented Aug 10, 2022

Sure thing, I'll check it out as soon as I get the chance.

src/attack.rs Outdated Show resolved Hide resolved
zicklag added a commit that referenced this pull request Aug 11, 2022
Rebases #200 onto the latest master, with a couple subjective tweaks:

- Make boss flag in YAML a `bool` instead of an `Option<bool>
- Impl HasLoadProgress for `bool` instead of ignoring the `boss` field
  in the metata struct.
zicklag added a commit that referenced this pull request Aug 11, 2022
Rebases #200 onto the latest master, with a couple subjective tweaks:

- Make boss flag in YAML a `bool` instead of an `Option<bool>
- Impl HasLoadProgress for `bool` instead of ignoring the `boss` field
  in the metata struct.

Co-authored by: Edgar Soares da Silva <70528288+edgarssilva@users.noreply.github.com>
@zicklag
Copy link
Member

zicklag commented Aug 11, 2022

I found it easier to just copy the code from the diff on GitHub onto the latest master with the tweaks needed to make it work with the new fighter state machine.

I pushed to a branch in this repo that you can also push to and opened a new PR: #222. You can continue working on that branch.

@edgarssilva
Copy link
Collaborator Author

edgarssilva commented Aug 11, 2022

Merged in #222.

DRuppFv pushed a commit to DRuppFv/punchy that referenced this pull request Aug 14, 2022
Rebases fishfolk#200 onto the latest master, with a couple subjective tweaks:

- Make boss flag in YAML a `bool` instead of an `Option<bool>
- Impl HasLoadProgress for `bool` instead of ignoring the `boss` field
  in the metata struct.

Co-authored by: Edgar Soares da Silva <70528288+edgarssilva@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add MVP boss fighter
4 participants