Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ protected override void LoadContent()

protected override void Update(GameTime gameTime)
{
// Update the InputManger inside base.Update() right away.
base.Update(gameTime);

// Update the slime animated sprite.
_slime.Update(gameTime);

Expand All @@ -61,8 +64,6 @@ protected override void Update(GameTime gameTime)

// Check for gamepad input and handle it.
CheckGamePadInput();

base.Update(gameTime);
}

private void CheckKeyboardInput()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ protected override void LoadContent()

protected override void Update(GameTime gameTime)
{
// Update the InputManger inside base.Update() right away.
base.Update(gameTime);

// Update the slime animated sprite.
_slime.Update(gameTime);

Expand Down Expand Up @@ -175,8 +178,6 @@ protected override void Update(GameTime gameTime)
// Assign a new random velocity to the bat
AssignRandomBatVelocity();
}

base.Update(gameTime);
}

private void AssignRandomBatVelocity()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ protected override void LoadContent()

protected override void Update(GameTime gameTime)
{
// Update the InputManger inside base.Update() right away.
base.Update(gameTime);

// Update the slime animated sprite.
_slime.Update(gameTime);

Expand Down Expand Up @@ -185,8 +188,6 @@ protected override void Update(GameTime gameTime)
// Assign a new random velocity to the bat
AssignRandomBatVelocity();
}

base.Update(gameTime);
}

private void AssignRandomBatVelocity()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ protected override void LoadContent()

protected override void Update(GameTime gameTime)
{
// Update the InputManger inside base.Update() right away.
base.Update(gameTime);

// Update the slime animated sprite.
_slime.Update(gameTime);

Expand Down Expand Up @@ -220,8 +223,6 @@ protected override void Update(GameTime gameTime)
// Play the collect sound effect
_collectSoundEffect.Play();
}

base.Update(gameTime);
}

private void AssignRandomBatVelocity()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ protected override void LoadContent()

protected override void Update(GameTime gameTime)
{
// Update the InputManger inside base.Update() right away.
base.Update(gameTime);

// Update the slime animated sprite.
_slime.Update(gameTime);

Expand Down Expand Up @@ -214,8 +217,6 @@ protected override void Update(GameTime gameTime)
// Play the collect sound effect.
Audio.PlaySoundEffect(_collectSoundEffect);
}

base.Update(gameTime);
}

private void AssignRandomBatVelocity()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ protected override void LoadContent()

protected override void Update(GameTime gameTime)
{
// Update the InputManger inside base.Update() right away.
base.Update(gameTime);

// Update the slime animated sprite.
_slime.Update(gameTime);

Expand Down Expand Up @@ -241,8 +244,6 @@ protected override void Update(GameTime gameTime)
// Increase the player's score.
_score += 100;
}

base.Update(gameTime);
}

private void AssignRandomBatVelocity()
Expand Down