How the Code Works

Our program works by implementing the Model View Controller class structure.

Model

The model controls most of the "meat" for our game. It has classes for our player, enemies, platforms, and background. It makes sure all pieces of the game are moving and updating appropriately.

View

The view displays all the visuals for our model. It also displays the start and end screens when appropriate.

Controller

The controller is arguably the most unique part of our game. We use an ultrasonic sensor to control the jump height for our chracter. We have the game begin by calibrating this sensor, which works by taking a reading of the player's hand close, far, and off of the sensor.

How They Work Together

Below you can see the diagram of our game's structure.