Show HN: PyWolf3D, a wolfenstein3D clone written from scratch in Python

31 pointsposted 2 days ago
by BSPtree

8 Comments

antman

2 days ago

From the project page “All code present in this project was written by me, without AI code generation or coding agents”

mangasmango

a day ago

looks great i have done something similar in the past using the same book but with html canvas and javascript for a free puzzle game I made, raycasting is so fascinating to me

BSPtree

a day ago

It really is. Sometimes I think of it as 1D raytracing: indeed of tracing rays for a grid, you trace them for a line in the central horizon of the screen :)

ScreenWardenApp

2 days ago

Wow, this takes me back. I'm curious how much time you have in this?

BSPtree

2 days ago

Glad you like it! About 1.5-2 months. I wanted to build a raycaster so I decided to rewrite my fav DOS game while at it!

vivzkestrel

2 days ago

- stupid question: can you write a 3d game in c++ or python from scratch without using a GPT?

orangeboats

2 days ago

Are you saying that indie 3D games never existed prior to 2023?

BSPtree

2 days ago

Ummm... Of course you can! Consider using opengl libraries like pyopengl. But I would write my own rasterizer (and I did)! With python though that path is much harder.