Commit graph

64 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 25f13b753b Fix "blurry" text 2023-02-23 20:56:14 +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 f7a635ba7f Fix native build 2023-02-22 14:21:50 +09:00
Stephen Seo 9f602ba465 Fix wasm build (normal build is broken) 2023-02-22 13:56:31 +09:00
Stephen Seo 09159a1f53 Work on wasm build 2023-02-22 12:20:14 +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 31465d0923 Impl camera and camera shader
At this point, the agnostic_interface is implemented with Raylib. What's
left is testing. Currently the main function does nothing.
2023-02-21 14:11:29 +09:00
Stephen Seo 29a32f590d Impl transform/origin shader loading/usage 2023-02-21 12:33:28 +09:00
Stephen Seo ad1d2536a3 Setup for drawing with transforms by using shaders 2023-02-20 20:07:44 +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 a14f79cadd Work on impl of some of raylib_impl 2023-02-19 16:52:52 +09:00
Stephen Seo c9bd639732 Begin work on Raylib impl of agnostic_interface 2023-02-19 15:51:37 +09:00
Stephen Seo 98bbc98b6b Move "original_impl" to own module 2023-02-19 15:25:27 +09:00
Stephen Seo 12419ffce6 Try using font size 20 for "size-less" text draws 2023-02-16 18:05:04 +09:00
Stephen Seo 47768972c9 Refactor "AppearingText" updating/drawing 2023-02-16 18:01:18 +09:00
Stephen Seo f0e3dd5de0 Minor fix 2023-02-16 17:55:57 +09:00
Stephen Seo 751ce637e0 Work on porting from quicksilver
Can compile at this point, but does not run.
2023-02-16 17:53:19 +09:00
Stephen Seo f14841e27e Use &trait/&mut trait instead of Box variants 2023-02-16 17:01:40 +09:00
Stephen Seo 71fc3de042 Work on porting from quicksilver 2023-02-15 15:52:25 +09:00
Stephen Seo 996e568b50 Work on porting from quicksilver 2023-02-14 18:55:36 +09:00
Stephen Seo 1dcfbc2db9 More fixes, add agnostic_interface.rs 2023-02-13 18:53:04 +09:00
Stephen Seo b29a35c2d6 Work on porting away from quicksilver 2023-02-13 17:49:38 +09:00
Stephen Seo 8d8ee6dc7d Fix fish spawn amount to top at 3 2019-10-06 20:57:35 +09:00
Stephen Seo bb37e67f2e Add fish as possible creatable 2019-10-06 20:53:04 +09:00
Stephen Seo 3a1b734fa2 Minor refactoring 2019-10-06 19:42:05 +09:00
Stephen Seo ed3e82dd1a Add stars as possible creatable object 2019-10-06 18:17:39 +09:00
Stephen Seo 5bdce23b8e Add sfx use, minor formatting change 2019-10-06 16:31:35 +09:00
Stephen Seo 25663d6c42 Fix title 2019-10-06 16:12:14 +09:00
Stephen Seo e206adbce8 Fixes, add reset capability 2019-10-06 16:05:07 +09:00
Stephen Seo b310c250dc Use boom sound on planet spawn, minor improvements 2019-10-06 15:37:20 +09:00
Stephen Seo 66fca34202 Add saving and loading 2019-10-06 15:01:18 +09:00
Stephen Seo 2fae2e6b0c Add movement and handling of single/double click 2019-10-06 14:16:20 +09:00
Stephen Seo 3fa3f3d48b Give new planets a random amount of moons 2019-10-06 13:46:38 +09:00