emerald 0.3.214

A lite, fully featured 2D game engine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::*;

#[derive(Clone, Copy, Debug)]
pub struct Camera {
    pub offset: Vector2<f32>,
    pub zoom: f32,
    pub(crate) is_active: bool,
}
impl Default for Camera {
    fn default() -> Camera {
        Camera {
            offset: Vector2::new(0.0, 0.0),
            zoom: 1.0,
            is_active: false,
        }
    }
}