3dtoys/maze_todo.txt

30 lines
1.8 KiB
Plaintext
Raw Permalink Normal View History

2024-08-17 22:11:00 +00:00
- Need a way to traverse the maze
- Do we just look for empty walls?
- should we generate a maze properly then use it to generate the maze walls?
- Maybe a general quad adder or something?
- How hard is it to check for empty walls? use the same formula to find the face,
then uh... well it sucks for the edges of the map, which are different
- tile based doesn't line up well with the normal maze generator, might need a different one
- well no, if you're always moving two spaces because you must leave walls, then i suppose it's roughly the same
- could generate walls based on maze input? Must assume each "wall" ... mmm
- visit each "normal" cell, generate quads somehow... generic quad generator for a "cell" centered
at some point? points are usually aligned to the whole number grid.
- could do it based on floats. divide the width by two and get the actual width, which in our case
is 15.5. then we know our centers are at 0.5.
if edge is 30, middle is 15, edges are at 0.5. How do we know though? middle is thus
- no who cares, always align to integers. make the player move if they're not centered
- instead of generating the entire thing, could simply have a function that "adds" quads at specified locations. Would require realloc for the arrays if they get too large, totally fine I think...
- wouldn't need thing anymore
- erm since we're representing the maze with thin walls, should PROBABLY represent the maze with
simple array where each cell indicates the walls that exist... probably.
So new thing:
- Generate maze with simple array of values which represent the walls that are torn down
between cells.
- Use that to generate individual quads for the walls. You will need to realloc the arrays as
they run out of space
- use the maze array for the player to walk through