top of page

Project: Eden (Individual Work)
.png)
Eden is a platformer puzzle game which I have made through the experiences of my past games. As I wanted to learn more about how does one make a platformer game, I also wanted to challenge myself so I decided to make add an additional "puzzle" element into the game. Essentially, the player spawns with 3 lives, and when the game starts the timer will begin along with the enemies appearing. As the player advances, new enemies will continue to appear. The player's goal is to collect all the chests within the stage in order to fulfill the conditions of the interactable lantern in order to spawn the "tombstone" which in simpler terms is actually a goalpost to advance to the next stage.
Enemy01's AI (Half_Red_Ghosts)

Enemy01's AI was designed and programmed to strafe left and right at every 4 seconds. The idea of this code came about when I was doing my research on platformer games. The code starts off with a boolean being declared as false. Then, the if statements with conditions are placed to set the x-speed and animation of the character. Lastly, the time interval of 4 seconds was put for Enemy01 to change direction. Enemy01's AI may seem basic but it is necessary as it was coded this specific way to allow the players from stage 1 to get used to the player's movement as well as mechanics of the game.
Enemy02's AI (Grey_Ghosts)

Enemy02's AI was programmed to follow and catch the player until it is killed or when the player manages to outrun it. The idea of this code came about when I thought of reimplementing one of my previous game's enemy AI. As I referred to my old game's enemy AI, I also went to explore more on the possibilities of the AI which I was referencing as well as the idea of what function was my enemy AI supposed to perform. The reason I went back was because I wanted the actions of Enemy02's AI to imitate the actions of an actual ghost. The concept of ghosts which we are often exposed to, are usually the scary ones which we fear and try to run away from it. The actions of that ghost will usually follow and stalk its victim and those were the actions that I intended Enemy02's AI to do. After some tinkering and testing, the Enemy02's AI which I made is able to track and follow the player's movement accordingly and goes inactive when it is outside the screen. This code essentially takes in the position of the player and constantly updates it within a certain segment of it while simultaneously tracking and closing in onto the player.
Boss' (AI)

Boss' AI was designed to follow and attack after a few seconds when the player steps into a certain range within the Boss' proximity. The inspiration of this code came from the casual open world games which I've played previously. Most of them had an aggro system which causes the enemies to chase the player when they within a certain range of the enemy. Along with the knowledge I've gained from the previous games made, I decided to try something I was unfamiliar with to learn more. For this game, the Boss AI has an aggression system which can only triggered when the player enters the region area of the Boss. When entered, the Boss' aggression system will be turned on, causing it to begin hunting the player down to attack it until it dies. However, if the player runs out of the region area, the Boss' aggression system will go back to reset itself after a few seconds and goes back to wandering.
bottom of page