Yes, I have to announce that the classic 3D maze is indeed the easiest 3D game to make. Unfortunately, this version has no entrance / exit.
To sum it up:
Big loop:
- set temporary coords to player coords
- set initial dd2 (drawing distance 2) to border size
- set initial distance to 1/2
Draw loop:
- if current cell is wall, break loop
- set dd1 to dd2
- set dd2 to border_dist/draw_dist
- set left and right to dd2
- if left is clear, set left to dd1, same with right
- draw horiz from left to right at height dd2
- draw verts at dd1,dd1 or something like that
- increment draw distance by 1
- move temp player coords forward by player speed
- loop unless we've drawn too much (keeps the engine at a reasonable speed)
- set "next" dd2 and end loop
After draw loop:
- draw diagonals based on border and dd2
Or, if you can read the code (past the crappy FLV compression NO I AM NOT USING MPEG4), that's how it works.
Music is "null1024 eats a cat" by me.
dis guy has no life like his mum who is at my house every night
bannister60 5 months ago
@bannister60 I've checked your profile and the only things you've posted on are two calculator videos.
iamgreaser 4 months ago