tmp_matebottledrop.rs 497 Bytes
Newer Older
robert's avatar
robert committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use crate::colors;
use crate::components;
use crate::resources;

#[legion::system(for_each)]
pub fn draw_tmp_matebottledrop(
    _player: &components::Matebottledrop,
    pos: &components::Position,
    #[resource] rendering: &mut resources::Rendering,
) {
    rendering.begin_path();
    rendering.set_fill_style(&colors::PRIMARY3_SHADE4);
    rendering.arc(
        pos.0.x as f64,
        pos.0.y as f64,
        50.0,
        0.0,
        std::f64::consts::TAU,
    );
    rendering.fill();
}