add play/pause/stop buttons
This commit is contained in:
parent
0ca1b4ba54
commit
90bc93fa02
6 changed files with 47 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
use crate::Textures;
|
||||
use crate::{draw_scaled_texture, Textures};
|
||||
|
||||
use super::tile::*;
|
||||
use raylib::prelude::*;
|
||||
|
@ -233,13 +233,7 @@ impl Board {
|
|||
let texture = textures.get(&texname);
|
||||
let px = x * tile_size + offset.x as i32;
|
||||
let py = y * tile_size + offset.y as i32;
|
||||
d.draw_texture_ex(
|
||||
texture,
|
||||
Vector2::new(px as f32, py as f32),
|
||||
0.0,
|
||||
(1 << zoom) as f32,
|
||||
Color::WHITE,
|
||||
);
|
||||
draw_scaled_texture(d, texture, px, py, (1 << zoom) as f32);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue