crankstart
crankstart copied to clipboard
A barely functional, wildly incomplete and basically undocumented Rust crate whose aim is to let you write Games for the Playdate handheld gaming system in Rust.
See https://devforum.play.date/t/lifetimes-for-bitmaps-loaded-from-bitmap-tables/984/3
See [changelog](https://sdk.play.date/changelog/). - `playdate.menu:getMenuItems()`
👋 This PR adds bindings for interacting with the System Menu. For example: ```rust unsafe extern "C" fn callback (_: *mut c_void) { log_to_console!("Hello, system menu!") } system.add_menu_item("say hi", Some(callback))?;...
``` #0 0x00007d697410dae4 in core::any::{impl#4}::is (self=..., self=...) at /rustc/98aa3624be70462d6a25ed5544333e3df62f4c66/library/core/src/any.rs:200 #1 core::any::{impl#4}::downcast_ref (self=...) at /rustc/98aa3624be70462d6a25ed5544333e3df62f4c66/library/core/src/any.rs:228 #2 core::any::{impl#5}::downcast_ref (self=...) at /rustc/98aa3624be70462d6a25ed5544333e3df62f4c66/library/core/src/any.rs:379 #3 crankstart::panic (panic_info=) at src/lib.rs:297 #4 0x00007d69740ff796 in core::panicking::panic_nounwind_fmt::runtime () at...
Fixes #85
Thanks for all the work on this library! It's already heaps better than working with Lua :grin: https://sdk.play.date/2.3.1/Inside%20Playdate%20with%20C.html#f-sprite.setDrawMode Nobody claimed that crankstart was complete, but well... it is missing :slightly_smiling_face:
Not enabled in release Attempt, on panic, to write the `PanicInfo` to a local file called panic.txt Panics previously would presumably be written to the simulator console but lost forever...