// You might want to play around with this:publicstaticfinalfloatMETER_TO_PIXELS = 32f;publicstaticfinalfloatSECONDS_TO_FRAMES = 1f / 60f;// 9.81 [m/s²] is the average ground factor on earth. This is the value to play around, // if you want the game to play on the moon, for examplepublicstaticfinalfloatGRAVITY = 9.81f * METER_TO_PIXELS * SECONDS_TO_FRAMES;

// Play around with this value as well:publicstaticfinalfloatJUMP_POWER = 10f; // The higher this value, the higher (stronger) it jumps.

// Usually you'd also have X position and so on, but I leave it out, since it's only going up or downprivatefloatvelocityY;privatefloatpositionY;

In order to make something simply jump would I use a parabola or something simpler?

This endless parade of really basic questions is really starting to wear on people here. You need to do some really basic research first, and if you're still stuck, flesh out your questions with something you've already tried. Show a little effort.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org