carbontwelve / roguelikedev2019

My attempt at learning roguelike gamedev in 2019
MIT License
2 stars 0 forks source link

Standardise 1D Array #18

Closed carbontwelve closed 5 years ago

carbontwelve commented 5 years ago

This probably should be moved into a separate library but I duplicate code for storing and accessing cartesian coordinate's in a 1D array. It maybe useful to make a polymorphic struct for the purpose of providing a standard interface for 1D array access.

Boohu does this with a pos type