public void InitiateCombat(Combat newcombat) { this.combat = newcombat; combat.LoadContent(Content); playerBar = new StatBar(Content); enemyBar = new StatBar(Content); }
public ActionScreen(Game game, SpriteBatch spriteBatch, SpriteFont newfont, ContentManager Content, Player getPlayer) : base(game, spriteBatch) { //sets image to the contents that was loaded this.player = getPlayer; gameFont = newfont; map.Generate(WorldMap, 48, WorldLayer2); currentHealth = playerHealth(player); // gameObjects.Add(Content.Load<Texture2D>("gameObjects\\house")); // gameObjects.Add(Content.Load<Texture2D>("gameObjects\\bighouse")); gameObjects.Add(Content.Load <Texture2D>("gameObjects\\fountain")); gameObjects.Add(Content.Load <Texture2D>("gameObjects\\tree")); gameObjects.Add(Content.Load <Texture2D>("gameObjects\\deadtree")); gameObjects.Add(Content.Load <Texture2D>("king")); userstats = Content.Load <Texture2D>("statsbar"); playerinfo = Content.Load <Texture2D>("playerInfo"); playerinfofont = Content.Load <SpriteFont>(@"Fonts\player"); house = new gameObject(new Vector2(200, 100), Content.Load <Texture2D>("gameObjects\\house"), false, "House"); bigHouse = new gameObject(new Vector2(600, 100), Content.Load <Texture2D>("gameObjects\\bighouse"), false, "Press Space to Enter House"); gameObjs.Add(house); gameObjs.Add(bigHouse); alien = new Enemy(Content.Load <Texture2D>("npc5"), new Vector2(300, 300), "Mr. Alien"); enemies.Add(alien); CreateTriggerTiles(); statBar = new StatBar(Content); camera = new Camera(Game1.graphics.GraphicsDevice.Viewport); Texture2D guy = Content.Load <Texture2D>("gg"); RAJ = new NPC(new Vector2(100, 300), guy, "RAJ", new String[, ] { { "Greetings young one, how are you feeling this morning?", "If you feel the need to fullfil this quest of yours then so be it.", "But remember, King Dyden is a very strong and reknowned adversary. You will not be able to defeat him easily.", "If you are going to go on this journey you will need tools and information.", "Go and find the local blacksmith and talk to him" }, { "sdfsd", "sdfsdf", "sdfsdf", " ", " " }, { "Hello /* player.getname */ how are ", "here da key", "finish da game boi", " ", " " }, { "sd", "raj", "sdfsd", " ", " " }, { "sdfsd", "sdfsdf", "sdfsdf", " ", " " }, { "Hello /* player.getname */ how are ", "here da key", "finish da game boi", " ", " " }, { "sd", "raj", "sdfsd", " ", " " }, { "sdfsd", "sdfsdf", "sdfsdf", " ", " " }, { "Hello /* player.getname */ how are ", "here da key", "finish da game boi", " ", " " } }); characterSprite.LoadContent(Content, player); //creates a rectangle game screen the same dimensions as the window screenRectangle = new Rectangle(0, 0, Game.Window.ClientBounds.Width, Game.Window.ClientBounds.Height); }