Skip to content

This a game/simulation I'm making to learn Python, pygame, and graphical programming. It has a bouncy spring!

Notifications You must be signed in to change notification settings

mbasescu/big-jumper-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: This game is mostly a learning exercise and is a work in progress so it might not work well, or might not work the way you think it should.

Dependencies:

  • python3
  • pygame

To run the program, type: "python3 BigJumperGame.py"

The current behavior is simply a mass/spring/damper simulation with vertical gravity, using a velocity Verlet integrator. The spring is linear and in-line with the mass, although I made the visualized linkages to give the illusion that it is a torsional spring instead.

Fun changes/improvements include:

  • Add better support for different size upper and lower body linkages This is already almost supported, I just need to solve the system of equations in the comments which would calculate the required linkage angles

  • Add controllability of the character

  • "Double bounce" style super-jumps or anti-jumps (hit spacebar at correct timing to amplify or negate spring energy)

  • Spring compression limit with proper dynamics handling to prevent going through the floor

  • Variable height floor handling for platforming

  • Camera following for platforming

  • "Boingier" spring (has visual oscillations after releasing from jump)

About

This a game/simulation I'm making to learn Python, pygame, and graphical programming. It has a bouncy spring!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages