1786006853
This commit is contained in:
@@ -26,10 +26,7 @@ fn main() {
|
|||||||
|
|
||||||
ctx.screen.clear((0, 0, 0, 255).into()).ok();
|
ctx.screen.clear((0, 0, 0, 255).into()).ok();
|
||||||
|
|
||||||
Rectangle::new(
|
Rectangle::new(Point::new(state.x - 5, state.y - 5), Size::new(10, 10))
|
||||||
Point::new(state.x, state.y),
|
|
||||||
Size::new(ctx.screen.width(), 1),
|
|
||||||
)
|
|
||||||
.into_styled(PrimitiveStyle::with_fill((255, 0, 0, 255).into()))
|
.into_styled(PrimitiveStyle::with_fill((255, 0, 0, 255).into()))
|
||||||
.draw(&mut ctx.screen)
|
.draw(&mut ctx.screen)
|
||||||
.ok();
|
.ok();
|
||||||
|
|||||||
Reference in New Issue
Block a user