Commit graph

21 commits

Author SHA1 Message Date
Stephen Seo 7fc185f614 Change SaveData identifier due to changed de/ser. 2024-02-22 15:00:04 +09:00
Stephen Seo f1badb79ca Don't de/serialize some particles 2024-02-22 14:55:31 +09:00
Stephen Seo 3bb0cbf026 Fix cargo clippy warnings 2024-02-16 15:38:24 +09:00
Stephen Seo 1cb833b987 save/load: Impl. save/load for wasm
Kind of messy, could use some cleanup
2024-02-15 19:11:56 +09:00
Stephen Seo a2597a1c5c save/load: prevent crash on failure to save/load
TODO:
    Impl. save/load for wasm target.
2024-02-15 16:08:44 +09:00
Stephen Seo ed72c751a9 save/loading: Impl. save on native target
TODO:
    save/loading for wasm build.
2024-02-15 16:04:07 +09:00
Stephen Seo e18f3acada save/restore: Impl. tests for de/serialize
Added impl. of Default trait for Planet.

Added some derive traits (Debug and PartialEq) to some structs so that
they can be checked in the unit tests.

TODO:
    Actual saving/loading behavior.
2024-02-15 15:11:59 +09:00
Stephen Seo 63730b90bd save/restore: Impl. de/serialize for SaveData
TODO:
    Unit tests for de/serialize.
    Actual saving/loading behavior.
2024-02-15 14:22:52 +09:00
Stephen Seo 74a9980ca1 save/restore: WIP implementation
Currently working on implementing serialize/deserialize for structs for
use in saving/restoring.
2024-02-14 19:07:17 +09:00
Stephen Seo 41d2f786fc Fix build
Update dependencies:
  rand -> 0.8.5
  bindgen -> 0.69
(Also used `cargo update`.)

Update LICENSE year.

Fix build.rs based on change in bindgen.

Update to Raylib 5.0.

Fixes in src/original_impl.rs due to changes in rand dependency.
(RNG.gen_range(...) requires 1 range argument instead of two args.)

Minor tweaks to wasm/Makefile.
2024-02-13 12:00:30 +09:00
Stephen Seo e3f74d3f3e Remove serde dependency 2023-02-23 18:08:41 +09:00
Stephen Seo e00e23682c Fix wasm build 2023-02-23 15:09:13 +09:00
Stephen Seo b6ee1be6c2 Fix (some) clippy warnings 2023-02-22 17:13:19 +09:00
Stephen Seo b7fac557db Fix most things (except saving/loading) 2023-02-21 21:24:31 +09:00
Stephen Seo 87a2815a26 Fix fish draws and orbiting particles 2023-02-21 21:07:23 +09:00
Stephen Seo c1aacab5f3 Fix drawing of player, replace quicksilver text
Also fix camera offsets to place planets/stars/fish.

TODO: Fix drawing of fish.
2023-02-21 17:29:59 +09:00
Stephen Seo 71c699cd7e Fixes, still kind of broken 2023-02-21 16:53:36 +09:00
Stephen Seo 20697c37b0 Minor fix, set fps on native builds 2023-02-21 15:23:18 +09:00
Stephen Seo 98524fabd7 More work on agnostic_interface/raylib_impl 2023-02-20 16:04:13 +09:00
Stephen Seo 4ef4e707c6 Add "origin" to draw calls with a transform 2023-02-19 17:05:30 +09:00
Stephen Seo 98bbc98b6b Move "original_impl" to own module 2023-02-19 15:25:27 +09:00