KuSpa / RockRaiders

👨‍🏭 Clone of an awesome same named game
GNU General Public License v3.0
18 stars 1 forks source link

don't show whole level, only revealed area #8

Closed KuSpa closed 5 years ago

KuSpa commented 6 years ago

not all tiles are shown by default. only marked tiles in level spec.

whenever a wall tile becomes a ground tile (for whatever reason), reveal all neighbor tiles, that can be accessed now (recursive for neighbor ground tile).

extra: do a little animation, the further the distance, the later the tiles are revealed (just a fade from black to the new tile mesh?)

KuSpa commented 6 years ago

add concealed bool to tile struct, adapt mesh key in tile.rs concealed -> wall

KuSpa commented 6 years ago

lul

KuSpa commented 5 years ago

see #12