Laser Squad [Day 8] – Extending tile functionalities

I wanted to see if it is difficult to extend basic functionalities of tiles. So, we had a simple tile which was extended to a simple door. Now I extended this simple door tile to make a more complex one – a door that can be also locked / unlocked (I). Works like a charm! The unit can now walk across the map, take a key from the ground, unlock and open a door.

Now, the mechanism that tiles can contain items is working (items laying on the ground), and tiles can also be in a specific state (locked, unlocked, opened, closed). Why not make a tile called, for example, crate (c), and program it that the items are visible only when it’s in the opened state. Again, works like a charm! Now the unit must unlock and open a crate before he can see and take what’s inside. Of course if the unit is over cumbered, items from the inventory can also be placed and locked inside the crate.

I’m pretty blown away what I’ve achieved after only 8 days of coding in my free time. There’s enough features to build a nice labyrinth game with lot of mazes and doors. Even now the game mechanics looks so powerful and unlimited expandable.

For the end of the working day, I’ve extended the basic item to make a extendable weapon item with all necessary extra parameters.

 

* * * * *