This fangame is definitely one of my favorites, alongside with UT Red, UT Yellow and your best nightmare.
Btw, since you're asking for help with the code maybe you could also tell which programming language you are using?
My guess is that they are using Python, since they tagged this game under Ren'Py-- which is a visual novel engine that mainly uses the Python language. Hope that helps!
I already noticed that, but thanks anyway.