Soldier flashlights!

This commit is contained in:
Simon Holmberg
2012-10-02 01:22:04 +02:00
parent 12f795f8bf
commit e732c9a653
8 changed files with 115 additions and 16 deletions
+2 -2
View File
@@ -51,12 +51,12 @@ namespace DepthsBelow
if (ms.X < 20)
Position.X += Speed * elapsed;
if (ms.X > core.GraphicsDevice.Viewport.Width - 20)
if (ms.X > Core.GraphicsDevice.Viewport.Width - 20)
Position.X -= Speed * elapsed;
if (ms.Y < 20)
Position.Y += Speed * elapsed;
if (ms.Y > core.GraphicsDevice.Viewport.Height - 20)
if (ms.Y > Core.GraphicsDevice.Viewport.Height - 20)
Position.Y -= Speed * elapsed;
int scrollChange = ms.ScrollWheelValue - lastMouseState.ScrollWheelValue;