close
blockPosition.X = MathHelper.Clamp(blockPosition.X,0, Window.ClientBounds.Width - blockTexture.Width);
//這裡的意思是,把方塊的X軸坐標限制在遊戲屏幕之內
全站熱搜
blockPosition.X = MathHelper.Clamp(blockPosition.X,0, Window.ClientBounds.Width - blockTexture.Width);
//這裡的意思是,把方塊的X軸坐標限制在遊戲屏幕之內
留言列表