public class Human : IPlayer\r
{\r
//The number of frames between each projectile is spawned.\r
- const int shootCoolDown = 10;\r
+ const int shootCoolDown = 18;\r
String CharName;\r
Game game;\r
Texture2D charModel;\r
visible = false;\r
charModel = model;\r
projectileModel = projectile;\r
- projectileSpeed = 30;\r
+ projectileSpeed = 8;\r
\r
// Speed is the number of grid cells you can move through per second.\r
- mMotion = new MovementManager(position, 8.0f);\r
+ mMotion = new MovementManager(position, 4.0f);\r
}\r
\r
public void LoadContent(ContentManager contentManager)\r
theDisplay.AddProjectiles(new Projectile(game.State.Map, projectileModel,\r
toShoot, new Point(startX, startY)));\r
\r
- /*\r
- if (state == State.up)\r
- {\r
- projectileCoolDown = shootCoolDown;\r
- theDisplay.AddProjectiles(new Projectile(theMap, projectileModel,\r
- new Vector2(0, -projectileSpeed), new Point(Coordinates.X, Coordinates.Y - 1)));\r
- }\r
- if (state == State.down)\r
- {\r
- projectileCoolDown = shootCoolDown;\r
- theDisplay.AddProjectiles(new Projectile(theMap, projectileModel,\r
- new Vector2(0, projectileSpeed), new Point(Coordinates.X, Coordinates.Y + 1)));\r
- }\r
- if (state == State.right)\r
- {\r
- projectileCoolDown = shootCoolDown;\r
- theDisplay.AddProjectiles(new Projectile(theMap, projectileModel,\r
- new Vector2(projectileSpeed, 0), new Point (Coordinates.X + 1, Coordinates.Y)));\r
- }\r
- if (state == State.left)\r
- {\r
- projectileCoolDown = shootCoolDown;\r
- theDisplay.AddProjectiles(new Projectile(theMap, projectileModel,\r
- new Vector2(-projectileSpeed, 0), new Point(Coordinates.X - 1, Coordinates.Y)));\r
- }\r
- */\r
+ \r
}\r
}\r
}\r