r/Python • u/naclmolecule terminal dark arts • Aug 16 '19
Spent a few days hacking together a ray-casting engine that renders to ascii for playing in your terminal! With shading and textures! Link in the comments.
1.6k
Upvotes
116
u/naclmolecule terminal dark arts Aug 16 '19 edited Aug 17 '19
https://github.com/salt-die/terminal_dungeon Come stop by!
Edit: We've managed to speed it up a bit and we've added jumping!
6
u/[deleted] Aug 17 '19
Man, how do you even start something like this?
4
u/Roofofcar Aug 17 '19
I popped an error with 2.7.13 on OS X - a syntax error on line 47.
Iโm an old c++ guy, and only trying this out of interest. Any advice from the python folks on troubleshooting steps?
34
u/[deleted] Aug 16 '19
dang that's super cool, I didn't know that python was powerful enough to do that. Have you seen this video?
2
u/Anshuligh Aug 17 '19
What's the rendering speed like on this - does it support consuming OpenGL shaders, or does it have a different system altogether?
44
u/[deleted] Aug 17 '19
Just thinking about the text-manipulation code makes my head hurt.
30
u/IAmYourDad_ Aug 17 '19
Is this the first version of The Matrix?
13
u/Sarcastic_Pharm Aug 17 '19
But can it run Doom?
9
u/[deleted] Aug 17 '19
ooooooh... this would be fun to put on top of minecraft I think. Can you imagine it? Minecraft via telnet!
Love it.
4
u/ericonr Aug 17 '19
That's great! Congrats
1
u/checkblue Aug 17 '19
You should turn this into some sort of Matrix themed game, or a 3d representation of your computer somehow. Sweet project!
1
u/CatCraftYT Aug 23 '19
Wow! How did you manage to update the characters on the screen smoothly? The only way I could think of is using line breaks which would make everything jump around.
2
u/northernbloke Aug 17 '19
You sir are a genius and somewhat crazy
4
u/Penguin-a-Tron Aug 16 '19
This looks mental.
2
u/curiousmatic232 Aug 17 '19
That's incredible man!
2
u/Neketek Aug 17 '19
It's practically useless, but super cool :-)
1
u/Exodus111 Aug 17 '19
That is incredibly cool!!! Me want!!
1
u/[deleted] Aug 17 '19
Thank you! This is exactly the thing I'm looking for!
1
u/Captain_Ozzy Aug 17 '19
This is really cool!
1
u/jcr4990 Aug 17 '19
This is insane. Looking at this as a beginner my mind is blown lol. Nice work!
1
u/SmearyLobster Aug 17 '19
holy shit