issues
search
reidobandedo
/
Goat-Of-The-Hill
A game for Computational Worlds course at UW Tacoma; web-based game.
0
stars
3
forks
source link
Physics revamp: New game physics, variable jumping, attacking
#37
Closed
ddh
closed
8 years ago
ddh
commented
8 years ago
Revamped Game Physics
Implemented new jump mechanics
Jumping is variable, depending on how long you hold jump key down. Up to a certain threshold anyways.
Gravity does all the physics work in making goats fall
Movement is no longer a constant velocity; there is acceleration and friction now
Collisions have been improved between goat-platforms, goat-goat
Ability to maintain velocities of goats on moving platforms by utilizing recursive calls to retrieve velocities of any entity beneath
Goats stack atop of each other great
Goats can't travel outside of the stage now
Attacking
Goats can charge their attacks (no animations implemented yet)
Goats retain their charge power for as long as the attack key is held down
Goats can attack, by releasing the attack key
Goats during an attack will dash a short distance; length and power depending on charge power
Goats during an attack will temporarily suspend all other physics (falling, jumping, movement)
Collisions between two goats still need to be worked on
Other
Merged in random hill and scoring with this branch
Revamped Game Physics
Attacking
Other