public PlayerAvatar(Texture2D4D aTextures, Vector2 initialGridPos, Block[,] grid, IEnumerable<Laserbeam> laserBeams, MainGame game, bool isSilverBot = false) { gridPos = initialGridPos; animPos = gridPos * 32.0f; animTarget = animPos; textures = aTextures; facing = Direction4D.Right; this.grid = grid; this.laserBeams = laserBeams; this.game = game; explosionTexture = game.textures.explosion; Arrive += PlayerAvatar_Arrive; this.isSilverBot = isSilverBot; }
public GameTextures(ContentManager Content) { exit = Content.Load<Texture2D>("exit"); floor = Content.Load<Texture2D>("floor"); ice = Content.Load<Texture2D>("ice"); wall = Content.Load<Texture2D>("wall"); laserProofWall = Content.Load<Texture2D>("wall"); crate = Content.Load<Texture2D>("crate"); panel = Content.Load<Texture2D>("panel"); bomb = Content.Load<Texture2D>("bomb"); laserRight = Content.Load<Texture2D>("laser-right"); laserDown = Content.Load<Texture2D>("laser-down"); laserPulse = Content.Load<Texture2D>("laser-pulse"); explosion = Content.Load<Texture2D>("explosion"); laserGun = new Texture2D4D(Content, "lasergun"); dozerBot = new Texture2D4D(Content, "dozerbot"); silverBot = new Texture2D4D(Content, "mirrorbot"); }