Log In  

Has anyone else noticed that, if you hold down the '5' key, Voxatron’s colour palette switches to a rather fetching industrial orange-and-grey look?

P#5177 2011-12-08 18:13 ( Edited 2011-12-19 18:32)

:: zep

Ah, glad you noticed (:
There's a meaning behind those colours which I'll explain further in a technical post sometime.
But here's a brief explanation: to calculate if a segment of the world has become detached from the ground, I maintain a separate 3-bit map. The values are:
0: no voxel
1-6 has a grounded neighbour
7: volatile

1-6 specify which neighbour to follow in a chain that leads down to the ground.
When a room is initialised, I calculate the shortest paths down to the ground.
When a voxel is removed during the action, its neighbours all become volatile (recursively).
At the end of each frame, this connectivity graph is 'healed'. Voxels that are still known to be grounded (1-6) recursively spread their connectivity to neighbouring volatile voxels. Any remaining volatile voxels are disconnected and become falling particles.

So if you hold down 5 while you shoot a wall or something, you can see the connectivity graph change as the bullet holes disrupt paths to the ground.

P#5216 2011-12-09 14:49 ( Edited 2011-12-09 19:51)

Okay, that’s amazing. Thanks for the explanation! Nice algorithm. (When a voxel is removed, I guess the voxels that you mark volatile are the ones whose path-to-ground goes through the removed voxel, rather than literally all neighbours.)

I found a couple of other secrets too, but I’m not going to spill them here. There aren’t nearly as many undocumented key commands as in Jasper’s Journeys. ;-)

P#5227 2011-12-09 18:51 ( Edited 2011-12-09 23:51)
:: kilkun

More secrets, eh? Time to mash the keyboard!

P#5284 2011-12-11 11:19 ( Edited 2011-12-11 16:19)
:: b0rsuk

zep, I think you spoiled it. You should've said there's a deeper meaning in the colors visible when you hold down '5', only to tease us. We'd figure it out ourselves.

P#5393 2011-12-16 15:10 ( Edited 2011-12-16 21:44)
:: zep

Argh, you're right! That would have been interesting.

P#5412 2011-12-19 13:32 ( Edited 2011-12-19 18:32)

Pico-8, now Voxatron!?
what's next, when Picotron is ou-
oh no I have said too much!

P#100185 2021-11-15 22:39

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2021-12-07 09:15:18 | 0.013s | Q:24