taliyos / OypuGame

Web-based game based on PuyoPuyo with Online Multiplayer!
MIT License
0 stars 0 forks source link

Board Creation #2

Closed taliyos closed 2 years ago

taliyos commented 2 years ago

Create board representation within Phaser. This is the board where the pieces will go, so the data structure behind it is important to get right. In PuyoJS, this is handled with a 2D matrix. Other solutions will be investigated before implementation.

taliyos commented 2 years ago

After investigating how Puyo games handle the board (Puyo Nexus Wiki), I've decided to store the board as a 2D array. This is different from how the board is stored in Puyo Puyo Tsu, but it should be more flexible and easier to implement. I wasn't able to find a good reason to use a more complex data structure, such as a doubly-linked 2d array.