Language(s)
: Java
Tools
: EZ
Playing Mario for the first time when I was around 7 years old is a vivid memory. It was the initial game I ever experienced. And when Professor Professor Jason Leigh introduced the final project for ICS 111, my immediate idea was to create a Mario-inspired game.
To begin, the EZ documentation was collected, allowing for a thorough examination of the array of methods available. Subsequently, the chosen methods were utilized, such as utilizing the wasKeyDown(char c)
function to determine key presses. The aim was to create a simplistic yet faithful representation of the original game, incorporating its graphics and core functionalities. After establishing the functionality, attention shifted towards the visual aspects of the game, involving the search for suitable images for characters, scenery, and font themes.
Overall, familiarizing myself with the EZ documentation and Java programming language proved to be advantageous in terms of skill enhancement.
pullToFront (): Pulls the given element to the front of the layer. We used this method for the bullet. The bullet moves in front of the wall and scenery in a random speed.
setMsg(String m): Displays a text to the given parameter. This method was used for the introduction and the end of the game.
wasKeyDown(char c): Checks if a key was pressed by the user at some point. After the introduction a key must be pressed in order to start the game.
isPointInElement(int x, int y): Checks if the x and y coordinates are within of an element. This method was the most important method besides EZ.initialize(). To make this game function properly we had to check if the main character, Mario, had close contact with the obstacles (bullets).
moveForward(double distance): Moves the element ahead by the given number (distance). Used to move the seamless background in order to make the game more realistic.
loop(): plays a song from the start of the game to the end by repeating the song multiple times during the game.
Source code is not available anymore.