Collision disturbing the jumping mechanic in java 2D game [on hold]
- by user50931
So I have been working on a 2D Java game recently and everything was going smoothly, until I reached a problem to do with the players jumping mechanic. So far I've got the player to jump a fixed rate and fall due to gravity.
Hers my code for my Player class.
public class Player extends GameObject {
public Player(int x, int y, int width, int…