samedi 15 juin 2019

Find Design Pattern for grid-based game

I'm currently planning a little grid-based minigolf game. The grid is 50 fields wide and 25 fields height. Each of these fields consists of data about the grid tile, for example the material (for fraction calculation, permeability etc.) and the shape of the block in this tile (e.g. square, triangle, circle). Now let's say about 1000 of the 1250 tiles of my grid consist of simple, square solid blocks with the same attributes but all with different coordinates. What's the most efficient way of implementing this using OOP?

Aucun commentaire:

Enregistrer un commentaire