Arjun Bellamkonda and I formed a pair to develop a game, using Java as the programming language through the BlueJay application. This game consists of a player controlled character that must reach the end of every stage. Featuring a randomized map and an infinite amount of stages, the player must use the arrow keys and the space bar to dodge enemies and collect points.
This created a 2d string array that contained information on what type of block to put in each grid of the screen, randomized every time.
This part in the MyStage constructor added the actual objects from the map string array to the stage.
These if-else statement, located in the update() method of the MoveableAnimatedActor class, ensures that each jump is smooth and simulates constant downward acceleration from gravity and an eventual terminal velocity.