niko 0.1.8

the niko wasm game engine
Documentation
1
2
3
4
5
6
7
use crate::{Context, Error};

pub trait Game {
    fn initialize(&mut self, context: &mut Context) -> Result<(), Error>;
    fn update(&mut self, context: &mut Context) -> Result<(), Error>;
    fn draw(&mut self, context: &mut Context) -> Result<(), Error>;
}