pong-cli 1.0.1

Play pong from the command-line!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::component_prelude::*;

#[derive(Clone, Component)]
#[storage(VecStorage)]
pub struct Size {
    pub w: f32,
    pub h: f32,
}

impl Size {
    pub fn new(w: f32, h: f32) -> Self {
        Self { w, h }
    }
}