Commit Graph

39 Commits

Author SHA1 Message Date
Jarrod Doyle b1fd987955
Support multiple non-interacting chunk entities 2024-01-31 16:43:58 +00:00
Jarrod Doyle c31ddd9bea
Remove unused blue rect entity 2024-01-31 16:42:28 +00:00
Jarrod Doyle 9a473ee4d7
Add initial water cells to chunk 2024-01-31 16:07:06 +00:00
Jarrod Doyle 61538c139c
Removed dead function 2024-01-31 16:06:04 +00:00
Jarrod Doyle 45bf018375
Added rules for Water 2024-01-31 16:05:28 +00:00
Jarrod Doyle 6c423f69c2
Add water Element with associated u32 conversion and render colour
No rules or placement logic for the water is added yet.
2024-01-31 15:06:39 +00:00
Jarrod Doyle c80d5b48c2
Start working on rule compiler 2024-01-31 14:54:12 +00:00
Jarrod Doyle 0a17d1d7d3
Replace std Rust HashMap with Bevy HashMap 2024-01-31 13:04:25 +00:00
Jarrod Doyle 82a48e8f23
Extract rule stuffs to module 2024-01-31 13:02:00 +00:00
Jarrod Doyle af6fdb085b
Move rules to a Resource 2024-01-31 12:57:04 +00:00
Jarrod Doyle cd0674fdff
Fix incorrect cell state setting 2024-01-31 12:54:53 +00:00
Jarrod Doyle b050fce637
Add comments to update system 2024-01-31 12:39:05 +00:00
Jarrod Doyle 7a9839d402
Replace update method with a block-based cellular automata 2024-01-31 12:33:23 +00:00
Jarrod Doyle 759479cc21
Simplify swap code 2024-01-29 16:55:16 +00:00
Jarrod Doyle b1ea38febe
Simplify logic and reduce nesting in chunk simulation system 2024-01-29 15:34:17 +00:00
Jarrod Doyle 9e3dc5b3d4
Add Chunk get_cell function 2024-01-29 15:31:14 +00:00
Jarrod Doyle 41b629ea23
Add Chunk swap_cells function 2024-01-29 15:25:43 +00:00
Jarrod Doyle 8c75efa08a
Add Chunk set_cell function 2024-01-29 15:21:17 +00:00
Jarrod Doyle 28e604a804
Rename Elements to Element and make public 2024-01-29 15:19:18 +00:00
Jarrod Doyle a57b457f49
Add chunk constructor 2024-01-29 15:15:46 +00:00
Jarrod Doyle 508f7d7ad8
Separate simulation and placing systems 2024-01-29 15:13:46 +00:00
Jarrod Doyle a3e8b1387b
Move DirtyRect to utility module 2024-01-29 15:03:41 +00:00
Jarrod Doyle 8cc95cce02
Add simple dirty rect system 2024-01-29 14:52:49 +00:00
Jarrod Doyle 754466ea16
Add basic falling sand 2024-01-28 12:45:58 +00:00
Jarrod Doyle ce4e13005f
Improve safety in image updating 2024-01-27 15:29:52 +00:00
Jarrod Doyle 19671b8f28
Add framerate logging 2024-01-26 17:47:16 +00:00
Jarrod Doyle 9e103c0c05
Set falling sand chunk texure to random colours each frame 2024-01-26 17:43:13 +00:00
Jarrod Doyle d40e05da3a
Add initial plugin creating a 256x256 texture 2024-01-26 17:27:29 +00:00
Jarrod Doyle 8969420824
Remove old shader 2024-01-26 16:52:05 +00:00
Jarrod Doyle 7b29ec8beb
Add a camera, render a rect, and set the clear colour 2024-01-26 16:51:38 +00:00
Jarrod Doyle 4e47cf5aba
Change window title, resolution, and enable vsync 2024-01-26 16:32:56 +00:00
Jarrod Doyle c0fe39f56a
Replace everything with a basic Bevy setup 2024-01-26 16:27:56 +00:00
Jarrod Doyle 1e98a40a72
Basic triangle render pass 2023-10-16 10:30:59 +01:00
Jarrod Doyle b5680d5328
Add blank render pass 2023-10-14 10:11:47 +01:00
Jarrod Doyle 0dd7bbd37e
Give render context ownership of window 2023-10-14 10:00:56 +01:00
Jarrod Doyle 1a92b52630
Add context surface resizing 2023-10-14 09:56:55 +01:00
Jarrod Doyle ba301451af
Render basic (blank) window 2023-10-12 12:37:40 +01:00
Jarrod Doyle 694c29e0eb
Add my existing wgpu abstraction 2023-10-12 12:23:17 +01:00
Jarrod Doyle ae51dbee59
Initial commit 2023-10-12 12:14:31 +01:00