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 Bullet and Ship collision logic and basic enemy spawner #2

Merged
merged 5 commits into from
Dec 27, 2020

Conversation

abc013
Copy link
Collaborator

@abc013 abc013 commented Dec 27, 2020

Depends on #1.

Some logic was implemented which we didn't talk about before, it's listed below.

  • When colliding, bullets substract their damage from each other. They get killed if their damage is 0.
  • Every bullet and ship belongs to a team. This prevents friendly-fire, which is especially important for bots.

Every beginning is hard...
- Add two classes regarding screen boundaries
    - ScreenClampBehaviorScript: Clamps the object to the screen boundaries
    - OutOfScreenKillbehaviorScript: Kills the object if it ever gets outside of the screen boundaries
- Add base spaceship class. It contains information about speed, health, shield, weapon reload and the weapon object to use
- Add base bullet class, which is not done yet.
- Add PlayerBehaviorScript built on SpaceShipBehaviorScript, which also adds debug movement and weapon fire
@Wolkenfarmer Wolkenfarmer merged commit 32097e1 into Wolkenfarmer:main Dec 27, 2020
@abc013 abc013 deleted the enemies branch December 27, 2020 22:47
@Wolkenfarmer Wolkenfarmer mentioned this pull request Dec 28, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants