【发布时间】:2018-05-29 08:41:13
【问题描述】:
我尝试在monogame中使用比例,为此我也修改了hitbox的sourceRectangle,但是当我尝试分配0.5来缩放sourceRectangle.Width和Height = 0
因为我的计算是
sourceRectangle.Width = (texture.Width / cols) * (int)this.scale.X
sourceRectangle.Height = (texture.Height / rows) * (int)this.scale.Y
感谢您的帮助
【问题讨论】: