You don't really need Math.abs() to calculate hypotenuse. Because Math.hypot() by default returns only positive value whatever sign, plus or minus your inputs are.
The pompt for upgrading from java 8 to 14 did not work, but it was easy to solve by going into module settings and upgrading source_compatibility and target_compatibility to 17
Hey!👋
Here is a video all about how we make a joystick function for our game. This is to allow the player to move in any direction.
Hope you enjoy!😎
I haven't done this tutorial yet but it seems awesome! I will probably follow it soon
Awesome stuff dude. I had the JDK error @12.06. clicking the red bubble, prompted me to download the updated JDK. Was sorted in no time.
You don't really need Math.abs() to calculate hypotenuse. Because Math.hypot() by default returns only positive value whatever sign, plus or minus your inputs are.
The pompt for upgrading from java 8 to 14 did not work, but it was easy to solve by going into module settings and upgrading source_compatibility and target_compatibility to 17
now wait for the next video.