cobject 0.1.1

A game engine that uses minifb as a foundation and currently only supports 2D.
Documentation
1
2
3
4
pub fn coords_to_index(x: f32, y: f32, width: usize) -> usize {
    // if x > width { (y * width) + x } else { 0 }
    (y as usize * width) + x as usize
}