Easiest 3D "game" in the world

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
451 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 14, 2010

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.

Category:

Gaming

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (iamgreaser)

  • dis guy has no life like his mum who is at my house every night

  • @bannister60 I've checked your profile and the only things you've posted on are two calculator videos.

see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • I am this video's 76th viewer and 1st commenter.

    I have nothing else to say about this video.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more