Commit graph

84 commits

Author SHA1 Message Date
7fc185f614 Change SaveData identifier due to changed de/ser. 2024-02-22 15:00:04 +09:00
f1badb79ca Don't de/serialize some particles 2024-02-22 14:55:31 +09:00
3bb0cbf026 Fix cargo clippy warnings 2024-02-16 15:38:24 +09:00
f05e8354b1 wasm/Makefile: Rebuild on rust source change 2024-02-16 15:19:00 +09:00
1cb833b987 save/load: Impl. save/load for wasm
Kind of messy, could use some cleanup
2024-02-15 19:11:56 +09:00
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
ed72c751a9 save/loading: Impl. save on native target
TODO:
    save/loading for wasm build.
2024-02-15 16:04:07 +09:00
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
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
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
aa0a67637f Git repo metadata
Mark raylib.h as "linguist-generated" so that it will not be counted as
part of the repository's statistics.
2024-02-14 15:57:52 +09:00
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
1c578f86d2 Update README.md 2023-04-12 10:56:31 +09:00
25f13b753b Fix "blurry" text 2023-02-23 20:56:14 +09:00
d95675f43f
Update README.md 2023-02-23 18:15:55 +09:00
e3f74d3f3e Remove serde dependency 2023-02-23 18:08:41 +09:00
b647364e2e
Update README.md 2023-02-23 15:32:57 +09:00
57497d8cd1
Update README.md 2023-02-23 15:32:29 +09:00
e00e23682c Fix wasm build 2023-02-23 15:09:13 +09:00
b6ee1be6c2 Fix (some) clippy warnings 2023-02-22 17:13:19 +09:00
c760f788a1
Update README.md 2023-02-22 15:07:05 +09:00
7092b425e3
Update README.md 2023-02-22 14:47:52 +09:00
e0eff5df8e Merge branch 'devel'
Fully ported from quicksilver to raylib.
2023-02-22 14:34:17 +09:00
6d95f5b00e Modify wasm Makefile 2023-02-22 14:28:32 +09:00
1fa6e1c8b2 Update note of emsdk version 2023-02-22 14:22:28 +09:00
f7a635ba7f Fix native build 2023-02-22 14:21:50 +09:00
9f602ba465 Fix wasm build (normal build is broken) 2023-02-22 13:56:31 +09:00
09159a1f53 Work on wasm build 2023-02-22 12:20:14 +09:00
f1bd86d60e Update LICENSE year 2023-02-21 21:27:59 +09:00
66fce10318 Update README.md 2023-02-21 21:27:48 +09:00
b7fac557db Fix most things (except saving/loading) 2023-02-21 21:24:31 +09:00
87a2815a26 Fix fish draws and orbiting particles 2023-02-21 21:07:23 +09:00
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
71c699cd7e Fixes, still kind of broken 2023-02-21 16:53:36 +09:00
20697c37b0 Minor fix, set fps on native builds 2023-02-21 15:23:18 +09:00
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
29a32f590d Impl transform/origin shader loading/usage 2023-02-21 12:33:28 +09:00
ad1d2536a3 Setup for drawing with transforms by using shaders 2023-02-20 20:07:44 +09:00
98524fabd7 More work on agnostic_interface/raylib_impl 2023-02-20 16:04:13 +09:00
4ef4e707c6 Add "origin" to draw calls with a transform 2023-02-19 17:05:30 +09:00
a14f79cadd Work on impl of some of raylib_impl 2023-02-19 16:52:52 +09:00
c9bd639732 Begin work on Raylib impl of agnostic_interface 2023-02-19 15:51:37 +09:00
98bbc98b6b Move "original_impl" to own module 2023-02-19 15:25:27 +09:00
12419ffce6 Try using font size 20 for "size-less" text draws 2023-02-16 18:05:04 +09:00
47768972c9 Refactor "AppearingText" updating/drawing 2023-02-16 18:01:18 +09:00
f0e3dd5de0 Minor fix 2023-02-16 17:55:57 +09:00
751ce637e0 Work on porting from quicksilver
Can compile at this point, but does not run.
2023-02-16 17:53:19 +09:00
f14841e27e Use &trait/&mut trait instead of Box variants 2023-02-16 17:01:40 +09:00
71fc3de042 Work on porting from quicksilver 2023-02-15 15:52:25 +09:00
996e568b50 Work on porting from quicksilver 2023-02-14 18:55:36 +09:00