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

Basic attacks + Bugfix #13

Merged
merged 5 commits into from
Jul 12, 2021

Conversation

Superyodeler
Copy link
Contributor

@Superyodeler Superyodeler commented Jun 28, 2021

About The Pull Request

Adds support for attacks through a very basic attack object and an attackable interface to receive attacks. This would potentially allow blocks or other non-mob objects to receive attacks simply by calling the interface.
Also fixes this bug #10 by setting the sorting layer to background (this took a while for me to figure out). Not sure why humans were fine, but it seems to work now.

Why It's Good For The Game

Bugs bad, very minimal attackable interface good.

Changelog

  • Added attackable interface
  • Removed bug that allowed moving non-humans to hide

Fixes equality check and is null check
Adds Attackable interface and Attack struct
Defense script implements attackable, fixes the non-humans behind background bug
@MarkSuckerberg MarkSuckerberg merged commit ce515c2 into blocktest-game:dev Jul 12, 2021
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.

2 participants