summaryrefslogtreecommitdiffstats
path: root/src/player.rs
diff options
context:
space:
mode:
authorRaymond Hogenson <rhogenson@posteo.net>2018-08-18 11:01:49 -0400
committerRaymond Hogenson <rhogenson@posteo.net>2018-08-18 11:01:49 -0400
commitdcf41c0ab884c124ffda8f616ec617c1e584255e (patch)
treeb7e44080dc9f607bd591ce2e52b30b04b668fb13 /src/player.rs
parentTune enemy movement logic (diff)
downloadstallman-shooter-dcf41c0ab884c124ffda8f616ec617c1e584255e.tar.zst
Add textures
These were fun to make
Diffstat (limited to 'src/player.rs')
-rw-r--r--src/player.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/player.rs b/src/player.rs
index efd396e..9e4d418 100644
--- a/src/player.rs
+++ b/src/player.rs
@@ -104,12 +104,12 @@ impl state::Positioned for Player {
self.y
}
fn radius(&self) -> u32 {
- 5
+ 13
}
}
impl state::Drawable for Player {
- fn color(&self) -> sdl2::pixels::Color {
- sdl2::pixels::Color::RGB(0, 0, 0)
+ fn center(&self) -> (u32, u32) {
+ (30, 19)
}
}