wobl
multi-backend textbased game engine :)
use
use ;
backends
backends are quite straight forward to implement. here are the included ones!
crossterm(woah terminal!): this should work pretty much everywhere: windows, linux (x11) and macos. if featurecrossterm_eventsis enabled then it uses terminal events (kittyprotocol), otherwise it usesdevice_query- enable it if using wayland (add--features crossterm_events)!sdl: for now - it just kinda works - i can definetly make more optimizations (like a texture atlas)
boilerplate can differ slightly from backend to backend, but only a couple of lines of code :)
crossterm:
let backend = Boxnew;
let mut engine = new;
-sdl:
let sdl_context = init.unwrap;
let ttf_context: &Sdl2TtfContext = Boxleak;
let backend = Boxnew;
let mut wobl = new;
loop
to do
- [] add more utilities:
- [] line drawing
- [] box drawing
- [] autotile
- [] use font atlas thing in
sdl - [] maybe
winitandwgpubackend