public Human(Game game, SpriteBatch screenSpriteBatch, PlayerSide playerSide) : base(game, screenSpriteBatch) { string idleTextureName = ""; this.playerSide = playerSide; if (playerSide == PlayerSide.Left) { catapultPosition = new Vector2(140, 332); idleTextureName = "Textures/Catapults/Blue/blueIdle/blueIdle"; } else { catapultPosition = new Vector2(600, 332); spriteEffect = SpriteEffects.FlipHorizontally; idleTextureName = "Textures/Catapults/Red/redIdle/redIdle"; } Catapult = new Catapult(game, screenSpriteBatch, idleTextureName, catapultPosition, spriteEffect, playerSide == PlayerSide.Left ? false : true, true); }
public AI(Game game, SpriteBatch screenSpriteBatch) : base(game, screenSpriteBatch) { // TODO: Initialize catapult Catapult = new Catapult(game, screenSpriteBatch, "Textures/Catapults/Red/redIdle/redIdle", new Vector2(600, 332), SpriteEffects.FlipHorizontally, true, false); }