Commit Graph

13 Commits

Author SHA1 Message Date
HyperOnion 7c7d939905 add world utility function for setting tiles to empty. 2023-06-28 15:15:19 +02:00
HyperOnion b886a3a965 make representation of empty tiles consistent.
previously, world generation would represent empty tiles as the number
0, while other code would expect them to be an object with its `type`
property set to `"empty"`. the object representation is now used
consistently.
2023-06-28 15:15:19 +02:00
HyperOnion b93cc3210c initial grass test.
start working on tile updating code; add grass as test & demo for this.
add temporary "texture" for grass, and keybind for creating it.
2023-06-28 15:15:19 +02:00
HyperOnion bfb207386c add keys for more paint colors. 2023-06-28 15:15:19 +02:00
HyperOnion 821dbc4db4 add more temp controls for experimenting. 2023-06-24 14:15:27 +02:00
HyperOnion 9fd2b0e21b create basic paint tile type and some controls for creating paint. 2023-06-24 14:15:27 +02:00
HyperOnion b2b4d9dced implement basic box entering and exiting in entity movement. 2023-06-24 14:15:27 +02:00
HyperOnion 68c93726f0 refactor world code to no longer assume the player entity:s pov. 2023-06-24 14:15:27 +02:00
HyperOnion c8e8d7eb70 begin refactoring movement logic out of player code into entity code. 2023-06-24 14:15:27 +02:00
HyperOnion 96678ea5a2 remove dead comment. 2023-06-24 14:15:27 +02:00
HyperOnion fbf0960e7e create entity module and refactor player into entity. 2023-06-24 14:15:27 +02:00
HyperOnion f7caf8a3a8 implement basic box functionality. 2023-06-24 14:15:27 +02:00
HyperOnion b4976a0d94 basic player movement and general cleanup. 2023-06-24 14:15:27 +02:00