Tag Info

New answers tagged

0

Ive returned to answer my own question now. I ended up using the resources found in this answer: Creating a frozen bubble clone I converted my 2D grid array into a hex array. I still used a 2D array to index into the hexes, but I made sure to make sure my hex grid function in a odd-r layout, and that I indexed my array properly based on that layout. All ...


4

Generally, you want to avoid excessive hierarchy. What if a player wants to attack an object (such as a trap, or door?) How would a trap attack a player? What about environmental hazards? I would suggest an entity-component system over inheritance here. Give everything that has health a Health component, and give everything that can attack a Weapon ...



Top 50 recent answers are included