From 503361ce70615d7c4b66bd7e49d56c61259dab32 Mon Sep 17 00:00:00 2001 From: tom barrett Date: Mon, 8 Jul 2019 04:53:04 -0500 Subject: rotation now works --- src/animations.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/animations.rs') 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)), ); -- cgit v1.2.3