Compare commits
1 Commits
9f4ad882e3
...
d2881e94df
Author | SHA1 | Date | |
---|---|---|---|
d2881e94df |
@@ -88,7 +88,7 @@ public class DisplayableSpriteBehaviour : Behaviour, IDisplayableSprite, IAssign
|
|||||||
|
|
||||||
Rectangle rectangle = new Rectangle((int)position.X, -(int)position.Y, (int)(Sprite.Texture2D.Width * scale.X), (int)(Sprite.Texture2D.Height * scale.Y));
|
Rectangle rectangle = new Rectangle((int)position.X, -(int)position.Y, (int)(Sprite.Texture2D.Width * scale.X), (int)(Sprite.Texture2D.Height * scale.Y));
|
||||||
|
|
||||||
spriteBatch.Draw(Sprite.Texture2D, rectangle, null, Color, transform.Rotation, Origin, SpriteEffects, Depth);
|
spriteBatch.Draw(Sprite.Texture2D, rectangle, null, Color, transform.Rotation, new Vector2(Sprite.Texture2D.Width, Sprite.Texture2D.Height) * Origin, SpriteEffects, Depth);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Assign(ISprite sprite)
|
public bool Assign(ISprite sprite)
|
||||||
|
Reference in New Issue
Block a user