Raycasting with Pygame in Python! Simple 3D game tutorial Devlog

preview_player
Показать описание
A ray caster tutorial for a simple 3d game in python revisited, now with fancy graphics.

Raycasting is one of the simplest techniques to render a 3D looking scene, it's not actual 3D...

It is based on perspective, where the size of an object on the screen is inversely proportional to its distance to the camera. #python #gamedev #devlog
Рекомендации по теме
Комментарии
Автор

Love those Raycasting tutorials in Python!

SkyFly
Автор

Great project! Might utilize this for a small game project I'm working on! I read the license and its public source but I'd have no issue including you in the credits for the laying the base code out for myself

doscassette
Автор

saw you on tiktok, actual impressive stuff!

Eeuwa_
Автор

The variable names make it very hard to understand what's happening like the variable you named ash should have been named has_shadows or something like that, I'm still not sure what it does exactly.
But still thanks for the tutorial, I can't find any other pygame 3D tutorial like this.

ziyadcodes
Автор

Nice! Was able to follow along no problem. However after I tired your github code to try the improved version I can't seem to get the mouse look to work. At most I jitter slightly back and forth.

pilsnerd
Автор

It's amazing, man. Didn't believe it's possible in pygame. What resolution it is?

plrc
Автор

7:35 I finished all these but the game freezes alot and when I go to a wall I don't go through it and while I'm inside the wall it takes me to 1fps.. and as I see you shouldn't be able to go into the wall. I can show you my code if you want

thetoastcart
Автор

Hey! Thanks for the tutorials. But I noticed smth - I tried changing resolution to 420x60 from 120x100 and it feels less distorted.

rusland
Автор

for some reason it says that index 72 is out of bounds for axis 0 with size 72 here is where the error takes place


code:
for k in range(h * 2):
frame[i][halfvres - h + k] = c * wall[xx] [int(yy[k])]

also where is the k variable

SabeDoesThingsChannel
Автор

Your cat is the farther than any other example, he is indeed a legend

aintNexus
Автор

Hey so I tried using numba/njit on my projects and it seems to hate being used on class functions. Have you had any luck implementing this sort of thing in OOP?

GetIntoGameDev
Автор

in 6:36 when I run project some very strange things happen and my eardrums almost exploded of some very strange sounds

EnergyGuyy
Автор

it is a very good tutorial, thanks for sharing.
can you elaborate more about if x%1 < 0.02 or x%1 > 0.98: on the wall texture orientation.
i am not quite understand ( i try to take out this line and seems not any change on the wall view....)

kennycheung
Автор

Whenever I get to close to a wall it shuts down the game. May you help?

assemblycat
Автор

I tried making my own raycaster from scratch but it was too much

Indodapro
Автор

o que aconteceu com os videos em ptbr??

prod_guzz
Автор

!!!HIGHLY RECOMMEND TO WATCH ON 0.5X SPEED!!!

EnergyGuyy
Автор

+1 sub from me, your content is really interesting and well done

nullgaming
join shbcf.ru