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):
Controls:
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!
This is amazing! Deserves an upvote
wwwwwwwwwwwwwwwwwwwwwwwoooooooooooooooooooooowwwwwwwwwww!!!!!!!!!!!!!!!
incredible! i gotta learn pygame lol
i dunno if theres something wrong with my computer but res 1 gives me 2 fps avg and 5 gives me 10 fps avg
i managed to get to level 2! through the yellow stripy door
This is really cool!
nice, the lighting has really improved!
Wow, its really cool! Can replit really not play sounds? I thought it could
@TurtleAndrewYeah, i've tried pygame and it was very laggy
@TurtleAndrewmine doesn't have the mini map at the top:(
I WON
doom eternal 1993 lol
rip cpu but cool
my cpu and gpu: loud fan noises

Before I turned on the map: Hmm... How do you play agian? Where in the ****n world do I go?
After I turned on the map: Oh.................. So that's what you do
WOW
Will it work better if I copy it onto a local python file?
how do i get the minimap
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.
Cool!
I'm unable to load the project it seems. Is it supposed to take several minutes to run?
works for me now. my browser was just running slow.
Looking at it now, this is an extremely impressive work and I'm amazed that you could pull it off without using a huge built-in framework. This is [email protected]
Really cool!
Oh, THAT'S what it's called! It's surprisingly hard to find information on if you don't know what it's called. Great program!
Epic!
not often you see python games in 3d, not complaining though.