Compare commits
No commits in common. "f05142066d7904125dac73c1e3ec9cf79296b9c1" and "1a025c275b70b1bb3c285a4b04ccb9f1af2e0ed4" have entirely different histories.
f05142066d
...
1a025c275b
@ -1,7 +1,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Microsoft.Xna.Framework.Input;
|
||||
// using MonoGame.Framework.Utilities;
|
||||
using MonoGame.Framework.Utilities;
|
||||
using System;
|
||||
|
||||
namespace SemiColinGames {
|
||||
@ -25,8 +25,8 @@ namespace SemiColinGames {
|
||||
IWorld world;
|
||||
|
||||
public SneakGame() {
|
||||
// Debug.WriteLine("MonoGame platform: " + PlatformInfo.MonoGamePlatform +
|
||||
// " w/ graphics backend: " + PlatformInfo.GraphicsBackend);
|
||||
Debug.WriteLine("MonoGame platform: " + PlatformInfo.MonoGamePlatform +
|
||||
" w/ graphics backend: " + PlatformInfo.GraphicsBackend);
|
||||
graphics = new GraphicsDeviceManager(this) {
|
||||
SynchronizeWithVerticalRetrace = true,
|
||||
GraphicsProfile = GraphicsProfile.HiDef
|
||||
|
@ -23,8 +23,7 @@ namespace SemiColinGames {
|
||||
|
||||
public void Update(float modelTime, History<Input> input) {
|
||||
radius += 150 * modelTime * input[0].Motion.Y;
|
||||
radius = Math.Min(radius, 200);
|
||||
radius = Math.Max(radius, 50);
|
||||
radius = Math.Clamp(radius, 50, 200);
|
||||
float angleChange = modelTime * momentum / radius;
|
||||
angle += angleChange;
|
||||
float x = anchor.X + radius * (float) Math.Sin(angle);
|
||||
|
Loading…
Reference in New Issue
Block a user