3 unstable releases

0.1.2 Sep 20, 2022
0.1.1 Aug 2, 2022
0.1.0 Aug 2, 2022
0.0.1 Aug 2, 2022

#952 in Graphics APIs

MIT/Apache

28KB
458 lines

gamercade_rs

A safe wrapper around Gamercade's Raw Api.

As the Raw Api requires using a lot of unsafe and hiding of values through different types (for example, bools represented as i32) due to WebAssembly spec.

Learn more about Gamercade.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

gamercade_rs is a safe wrapper over the Gamercade Wasm Api.

The raw Api is filled with lots of unsafe calls and representation of various values as primitive types such as i32 containing boolean values.

The best way to get started is by importing the prelude via use gamercade_rs::prelude::*

You must only use these functions inside of the callbacks required by the Gamercade console. These functions are init(), update() and draw(). Calling these functions outside of the designated callbacks will likely cause a panic.

Learn more about the Gamercade Api from https://gamercade.io/docs/api-reference

Dependencies