X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=CarFire%2FCarFire%2FCarFire%2FHuman.cs;h=6c037947d9f50f6744b255039c338cb961073150;hb=db8ff41d389a83c3fb8743139afa1dea99eef434;hp=142a82b25ca923316cc261dedddb345a1d0f1101;hpb=287423f09852acd3ef65226813eb536bd2687f29;p=chaz%2Fcarfire diff --git a/CarFire/CarFire/CarFire/Human.cs b/CarFire/CarFire/CarFire/Human.cs index 142a82b..6c03794 100644 --- a/CarFire/CarFire/CarFire/Human.cs +++ b/CarFire/CarFire/CarFire/Human.cs @@ -12,7 +12,7 @@ namespace CarFire public class Human : IPlayer { //The number of frames between each projectile is spawned. - const int shootCoolDown = 10; + const int shootCoolDown = 18; String CharName; Game game; Texture2D charModel; @@ -23,7 +23,6 @@ namespace CarFire int score; MovementManager mMotion; - bool visible; Display theDisplay; @@ -42,10 +41,10 @@ namespace CarFire visible = false; charModel = model; projectileModel = projectile; - projectileSpeed = 30; + projectileSpeed = 8; // Speed is the number of grid cells you can move through per second. - mMotion = new MovementManager(position, 8.0f); + mMotion = new MovementManager(position, 4.0f); } public void LoadContent(ContentManager contentManager) @@ -149,32 +148,7 @@ namespace CarFire theDisplay.AddProjectiles(new Projectile(game.State.Map, projectileModel, toShoot, new Point(startX, startY))); - /* - if (state == State.up) - { - projectileCoolDown = shootCoolDown; - theDisplay.AddProjectiles(new Projectile(theMap, projectileModel, - new Vector2(0, -projectileSpeed), new Point(Coordinates.X, Coordinates.Y - 1))); - } - if (state == State.down) - { - projectileCoolDown = shootCoolDown; - theDisplay.AddProjectiles(new Projectile(theMap, projectileModel, - new Vector2(0, projectileSpeed), new Point(Coordinates.X, Coordinates.Y + 1))); - } - if (state == State.right) - { - projectileCoolDown = shootCoolDown; - theDisplay.AddProjectiles(new Projectile(theMap, projectileModel, - new Vector2(projectileSpeed, 0), new Point (Coordinates.X + 1, Coordinates.Y))); - } - if (state == State.left) - { - projectileCoolDown = shootCoolDown; - theDisplay.AddProjectiles(new Projectile(theMap, projectileModel, - new Vector2(-projectileSpeed, 0), new Point(Coordinates.X - 1, Coordinates.Y))); - } - */ + } } }