Ray Casting Game
I've spent the last day and a half working on this game that uses ray casting. Ray casting is a method of rendering a 2D level as if it was 3D. It was originally used in Wolfenstein 3D. Also note that it is very slow. I was getting much higher fps running it on my desktop and have spent hours trying to optimize it. Also, sorry for the low render distance, it was the only way for it to run fast enough. I have gotten floors working but they are even to slow to run on my desktop while still looking like more than random pixels. You can also find the python file "PyVectors.py" and an overview/documentation of it on my git hub: github.com
What it looks like running on my desktop (Its also using floors):
space to toggle between textured and flat color
wasd to move
shift and wasd to sprint
left and right arrows to change view direction
up and down arrows to change resolution (lower res gives better performance)
shift space to toggle the map on and off
e to open/break doors (darker brown when using flat colors)
e to open yellow doors (flat yellow when using flat colors) and advance to the next level
There's a timer at the bottom of the texts ("TIME: ") so have fun speed running if you want to! Just comment a screenshot of your time.
Hope you enjoy!
something interesting: at the last level(the end level), there is no yellow door. if one was placed in the level and interacted with, the game will crash.