top of page

PROJECT DUNGEON OF IXION

Title Screen of Dungeon of Ixion

Game Screen with brightened map

Game Screen with map with Fog of War

Dungeon of Ixion is a dungeon crawler game. It features 3 classes: Warrior, Archer and Mage. Players change their class anytime they want. The main goal of the game is to find 3 keys that will unlock the door to the boss, Gruoak. Player has to kill Gruoak to win the game.

 

 

1.   "Fog of War"

 

Fog of War in action

Comparing the map with and without Fog of War, the one with Fog of War made the game feel more intense. The implementation of Fog of War is in the function where the map is drawn.

A snippet of a section DrawMap function.

The snippet shows the top priority to draw the map is to draw the component of the map if the player is in range or else just draw an empty space.

 

2.   Spawn Trap

Spawn Trap in brightened map

***Refer to the picture labelled "Game Screen with brightened map" for the symbols representing "Trap Precursor" and "Trap".

Before the actual trap is spawned, it will spawn a precursor of the trap to tell the player that a trap is about to activate. This is how it works:​

Code snippet for spawn precursor and trap

As the picture above shows, the code consists of 3 parts. However, the important of the code is the part where spawns the precursor and the trap. steps is a global variable that stores the elapsed turns. Since the entire spawn trap process takes 2 turns so, the modulus of 2 is taken to determine when steps % 2 = 1 for spawning precursor and steps % 2 = 0 for spawning trap.

 

Spawn Precursor

Pick a random location within a certain boundary, in this case, is x > 8 && x < 14, y > 10 && y < 17 and make sure that the area of the slot with the radius of 1 is not occupied, then only spawn the precursor. After the player acted, the steps increments.

 

Spawn Trap

After the steps incremented, all the precursors will change into actual traps.

 

3.   Battle Simulation

The battle simulation in the game is the most complicated part as it has to cover all the possible combinations of characters, skills, win and lose situations.

There code for battle simulation are a group of clustered if's which a total of 24 outcomes.

Code snippet of a section of  Warrior's Battle Simulation

All and all, the game is a simple, but the biggest game I have created in the semester. The end project is not too shabby as well. This is the first game that I can be truly be proud of even if the implementation was crude.

That's all I have for this game. Hope you guys download and play the game. Stay tuned for more great games and have a great day.

bottom of page