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(Default, Component)]
#[storage(VecStorage)]
pub struct Velocity {
    pub x: f32,
    pub y: f32,
}

impl Velocity {
    pub fn new(x: f32, y: f32) -> Self {
        Self { x, y }
    }
}