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

Fixed Goomba and player collision and also added a bounce #124

Open
GavinCopley opened this issue Feb 13, 2024 · 0 comments
Open

Fixed Goomba and player collision and also added a bounce #124

GavinCopley opened this issue Feb 13, 2024 · 0 comments

Comments

@GavinCopley
Copy link
Collaborator

Fixed Goomba and player collision and added a bounce when Mario touches the top of the goomba

Files Changed Fixed Goomba Collision With Mario Added Bounce When Mario Lands on Goomba
GameEnv.js - Added variable "invincible"
- Added variable "goombaInvincible"
- Added variable 'goombaBounce'
Player.js - Remade collision detection with goomba
- Now uses goombaCollision function when referencing Mario death
- Has function that subtracts 125 from
y when variable is true
Goomba.js - Makes Mario invincible after goomba dies to allow time for
animation to play
- When Goomba is stepped on, changes
variable to true
Other - Commented out many 'console.log's in various files
- Added Goomba changes to FlyingGoomba.js
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

No branches or pull requests

1 participant