diff options
author | tom barrett <spalf0@gmail.com> | 2019-07-08 04:53:04 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2019-07-08 04:53:04 -0500 |
commit | 503361ce70615d7c4b66bd7e49d56c61259dab32 (patch) | |
tree | a252975aaa2b34f4fcac81d8fdb5b11f8d36cf0e /src/animations.rs | |
parent | de4e8c1f0b82627fd1980401ae63472f49c9d89c (diff) |
rotation now works
Diffstat (limited to 'src/animations.rs')
-rw-r--r-- | src/animations.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/animations.rs b/src/animations.rs index be10f31..43f4326 100644 --- a/src/animations.rs +++ b/src/animations.rs @@ -46,6 +46,8 @@ impl Animation { spritebatch.add( DrawParam::default() .src(self.current.source) + .rotation(self.current.properties.rotation) + .offset(Point2::new(0.5, 0.5)) .dest(position) .scale(Vector2::new(constants::TILE_SCALE, constants::TILE_SCALE)), ); |