top of page
Sir Cus's Dungeon Delve

Go ahead and give this simple little game a try.

 

Click the Green Flag to begin.

Arrow keys move the knight.

Collect all of the gold to win.

Watch out for ghouls.

 

Based on: Pacman

Code and maze inspired by:

https://scratch.mit.edu/projects/2345919/#editor


Coin sound: http://freesound.org/people/lawnjelly/sounds/156891/

Special thanks to a friend of mine who helped me figure out how to generate the coins in the maze.

This little game was created as part of a CS class while I studied at MassBay. It is essentially a reskin of Pacman. I used Scratch to make it, a graphical programming language by MIT. Scratch has some limits as a language and it was incredibly difficult to make the Maze. I called on a friend from WPI to help me figure out a way to do it without a for or while loop since Scratch doesn't have these functions and I couldn't figure out a way to emulate them with the functions I was given. We ended up having to for the most part manually fill in a massive array table.

 

There is also a problem with the walls. I followed a tutorial for making a maze in Scratch which has the character bounce back in the opposite direction when they touch the walls. Unfortunately this sometimes ends up sticking Sir Cus inside the wall so he bounces and jitters and warps weirdly. You can usually get him unstuck after a bit though provided he doesn't get stuck on the left near the score.

 

I will also be the first to admit in the case of my ghouls, the A.I. stands for Artificial Imbeciles. They have a tendency to want to go back into the box and their random direction changes on impact with a wall do not feel as random or intelligent as they should. It's strange because one moment they worked alright and the next they seemed inclined to slam their faces into the walls repeatedly. I still don't know what I changed to cause that.

 

I was not able to get in a few features of the game such as the four power ups to allow for killing the ghouls, warp gates, or "cherries". But the game itself works for the most part as long as you are careful about getting too close to walls.

I hope to get better at coding and more efficient in the future. I also hope that one day I can create and AI that is more intelligent.

 

Check out the code here: https://scratch.mit.edu/projects/70447072/#editor

bottom of page