Skip to content
Browse files

remove vestiges of E, clamp aim point to first quadrant

  • Loading branch information...
1 parent 3253c74 commit 525c49fde10dcec8fbf74c57350c5be95df42b1f @vogon vogon committed Apr 1, 2012
View
2 DemonDoor/DemonDoor/DoorController.cs
@@ -145,7 +145,7 @@ public void UpdateGunImpulse(GameTime gameTime)
{
// check gun key, kick if newly pressed
{
- bool revGun = Keyboard.GetState( PlayerIndex.One ).IsKeyDown( Keys.E ) || Game1.game.action.confirm.pressed;
+ bool revGun = Game1.game.action.confirm.pressed;
if (revGun && !_gunLatch)
GunImpulse += GunImpulseKick;
View
2 DemonDoor/DemonDoor/GameOverScreen.cs
@@ -40,7 +40,7 @@ internal override void Load()
internal override void Update(Microsoft.Xna.Framework.GameTime gameTime)
{
- if (Keyboard.GetState(PlayerIndex.One).IsKeyDown(Keys.Space))
+ if (Game1.game.action.confirm.pressed)
{
Game1 game1 = Game1.game as Game1;
View
4 DemonDoor/DemonDoor/Level1Screen.cs
@@ -132,6 +132,8 @@ internal override void Update(GameTime gameTime)
{
Vector2 leftAnalog = GamePad.GetState(PlayerIndex.One).ThumbSticks.Left;
+ leftAnalog = Vector2.Clamp(leftAnalog, Vector2.Zero, new Vector2 { X = 1, Y = 1 });
+
if (leftAnalog.Length() < 1e-10)
{
_aimPoint = new Vector2 { X = 1, Y = 1 };
@@ -141,6 +143,8 @@ internal override void Update(GameTime gameTime)
_aimPoint = leftAnalog;
}
+ //Console.Out.WriteLine(_aimPoint);
+
{
// update gun impulse.
_gun.UpdateGunImpulse(gameTime);
View
4 DemonDoor/DemonDoor/TitleScreen.cs
@@ -49,7 +49,7 @@ internal override void Load()
internal override void Update(Microsoft.Xna.Framework.GameTime gameTime)
{
- if (Keyboard.GetState(PlayerIndex.One).IsKeyDown(Keys.Space))
+ if (Game1.game.action.confirm.pressed)
{
Game1 game1 = Game1.game as Game1;
@@ -60,7 +60,7 @@ internal override void Update(Microsoft.Xna.Framework.GameTime gameTime)
internal override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch batch, Microsoft.Xna.Framework.GameTime gameTime)
{
Game1 game1 = (Game1)Game1.game;
- string doorSpeedDesc = string.Format("press space to possess... the");
+ string doorSpeedDesc = string.Format("press start to possess... the");
Vector2 size = game1.ft_hud24.MeasureString(doorSpeedDesc);
batch.DrawString(game1.ft_hud24, doorSpeedDesc, new Vector2 { X = (640 - size.X) / 2, Y = 240 }, Color.White);

0 comments on commit 525c49f

Please sign in to comment.
Something went wrong with that request. Please try again.