摘要:
为了使静止的正方形更加有趣,我们来快速浏览一下让其绕着屏幕旋转的方法。要实现这一点,首先需要跟踪旋转的角度。添加一个类级别的float变量,将其命名为_angle,并在每次更新时增加5度protected override void Update(GameTime gameTime){ // Allows the game to exit if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) this.Exit(); _angle += MathHelper.ToRadians(5); base.U 阅读全文
posted @ 2011-06-17 21:09
AppleSeeker(冯峰)
阅读(584)
评论(0)
推荐(0)
浙公网安备 33010602011771号