mantono/AAAH-SNAYKUU

Store GameObjects as bits in an int or short

mantono opened this issue · 0 comments

Fruit = 0000 0000 0000 0001
Wall = 0000 0000 0000 0010
Snake_Player_1 = 0000 0000 0000 0100
Snake_Player_2 = 0000 0000 0000 1000
Snake_Player_3 = 0000 0000 0001 0000
...

This allows us to very swiftly and easily store game objects in an int or short (depending on how many players we want to support).