3 unstable releases
0.1.2 | Sep 20, 2022 |
---|---|
0.1.1 | Aug 2, 2022 |
0.1.0 |
|
0.0.1 | Aug 2, 2022 |
#952 in Graphics APIs
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, bool
s represented as i32
) due to WebAssembly spec.
Learn more about Gamercade.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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