【发布时间】:2016-11-19 16:13:00
【问题描述】:
当我的wizardPos 变量清楚地把它放在屏幕中间时,为什么我的精灵画在左上角?
//in load content
wizardPos = new Vector2(graphics.PreferredBackBufferWidth /2, 700);
wizardChar = new Characters.Wizard(this, spriteBatch, wizardPos, wizardWalk1);
//in Draw method
this.spriteBatch.Draw(tempWizard, wizardPos, null, Color.White, 0f, wizardPos, 1f, SpriteEffects.None, 0f);
【问题讨论】:
标签: c# xna monogame spritebatch