
internal void Update(GameTime gameTime)
{
float timeDelta = (float)gameTime.ElapsedGameTime.TotalSeconds;
// Add velocity to the current position.
ship.Position += ship.Velocity;
// Bleed off velocity over time.
ship.Velocity *= 0.95f;
for (int i = 0; i < style="color: rgb(0, 0, 153);"> for (int i = 0; i < style="color: rgb(0, 0, 153);"> if (bulletList[i].isActive)
{
bulletList[i].Update(timeDelta);
}
}
}
XNA Creators Club Online - home
No comments:
Post a Comment