public override void LoadContent() { base.LoadContent(); texTarget = Content.Load <Texture2D>("Target"); texTest = Content.Load <Texture2D>("SShip4m"); texPixel = Content.Load <Texture2D>("pixel"); texMouseCursor = Content.Load <Texture2D>("sword_02"); spriteFontFile = Content.Load <SpriteFont>("File"); texPlayerDoubleJump = Content.Load <Texture2D>("doublejump"); texPlayerDash = Content.Load <Texture2D>("dash"); texPlayerSlice = Content.Load <Texture2D>("slice2"); Slice.pixel = texPixel; EnemyHitbox.texHitbox = texPixel; TestEnemy.texTestEnemy = texTarget; Player.texPlayer = texPixel; particleList = new RC_RenderableList(); sliceList = new SpriteList(); platformList = new SpriteList(); enemyList = new SpriteList(); //Initialize abilities abilityIconDoubleJump = new AbilityIcon(texPlayerDoubleJump, new Vector2(900, Game1.SCREEN_HEIGHT - 100)); abilityIconDash = new AbilityIcon(texPlayerDash, new Vector2(1000, Game1.SCREEN_HEIGHT - 100)); abilityIconSlice = new AbilityIcon(texPlayerSlice, new Vector2(800, Game1.SCREEN_HEIGHT - 100)); Player.iconDoubleJump = abilityIconDoubleJump; Player.iconDash = abilityIconDash; Player.iconSlice = abilityIconSlice; //player = new Player(new Vector2(100, 100)); //LoadLevel(); //ResetPlayer(); //cam.Pos = new Vector2(0, 0); ////cam.Zoom = 2.0f // Example of Zoom in //cam.Zoom = 1f; // Example of Zoom out //SpawnTargets(); }
public override void LoadContent() { base.LoadContent(); menuStrings = new List <String>(); menuStrings.Add("START GAME"); menuStrings.Add("TUTORIAL"); menuStrings.Add("EXIT GAME"); titleFont = Content.Load <SpriteFont>("File"); menuFont = Content.Load <SpriteFont>("File"); selectorTex = Content.Load <Texture2D>("Target"); soundMenu = Content.Load <SoundEffect>("sounds/MenuMove"); TestEnemy.texTestEnemy = selectorTex; particleList = new RC_RenderableList(); sliceList = new SpriteList(); enemyList = new SpriteList(); }