-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify tile storage using bitfields
Instead of storing tiles as uint8_t, they are now stored as a struct minesweeper_tile, which still should only be 8 bits wide, but each property is addressable without bitmasking. This is a breaking API change, since some functions that were previously used to access data encoded in the tiles are no longer needed. All data can be accessed in the tile directly.
- Loading branch information
1 parent
93a42e3
commit f84b974
Showing
4 changed files
with
86 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.