point guesser

Project Description

Purpose: Render a 3D illusion that contains a point guessing game within it. 

Directions: When you press space, the blue dot goes to a random place on the map. If you press f, 2-6 are different maps with the anchor point. If you press 1, it's the default map. If you press e and enter "0," you can switch in and out of noclipping. When q pressed, adjust quality (default 30) and FOV (default 90).

Credit: Iangecko, Argon26, and the_lucky13 for raycasting references and examples of what it can do.
(I tried to go past them but failed ;<)

scuffed 3d engine using ray casting
draws lines depticed from map.
looks 3d, is 2d illusion
if i cant see it, it doesnt **fully** exist
anything behind thats not rendered, isnt stored in 3d, its stored on the map. half exists half doesnt.

Time has ended and I can't finish this. I'm almost certain this requires a whole different version of rendering that is more complex. I haven't learned it and I don't have enough time, nor the will to restart.

Problem was, I can't make a variable (a coordinate) assigned to a specific costume within the sprite. Destroys my whole idea of calculating distances using variables if I can only get one of the two. If i use fully different sprites, map has to fully delete and rerender and could copy over each other, potentially making other bugs or very laggy. 

My friend found that you can take name of a costume and assign it to an image; unfortunately, I couldn't figure out how to get a specific variable within a list to assign to the correct map without using the random function and just getting lucky. Because of the way 'costumeNames' works, I can't assign a variable, the whole list goes with every single row (for 'i'). A random map function paried with the random variable within a list could be a cooler idea, but still not ideal nor accurate.

Raycasting just has a boat load of limitations and there isn't actually much you can do on it. I think I've pushed it almost to it's very limit. I got farther than I thought I would and made small acomplishments I didn't know were possible. I might come back to this later with more knowledge or just let it be.

TL;DR: 2 hard 2 finish, many limitations.

If anybody would like to continue this or find a fix, please feel free to do so.

CYA :P

Created January 28, 2025

Last updated April 15, 2025

Published April 1, 2025

Public collections containing this project