This repository has been archived on 2021-04-27. You can view files and clone it, but cannot push or open issues or pull requests.
ludum-dare-48/src/player.rs
2021-04-24 09:23:57 -04:00

28 lines
512 B
Rust

use raylib::math::Vector2;
#[derive(Debug, Default)]
pub struct Player {
pub position: Vector2,
pub direction: Vector2,
pub size: Vector2,
pub coins: u32,
pub boost_percent: f32,
pub breath_percent: f32
}
impl Player {
pub fn new() -> Self {
Self {
boost_percent: 1.0,
size: Vector2 {
x: 11.0 * 4.0,
y: 21.0 * 4.0
},
breath_percent: 1.0,
..Default::default()
}
}
}