/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); m_pbulletmanager = new Bulletmanager(); p1 = new player(m_pbulletmanager); g1 = new ground(); // TODO: use this.Content to load your game content here }
public player(Bulletmanager a_manRef) { m_manRef = a_manRef; playerpos.X = 312; playerpos.Y = 920; playerpos = new Rectangle(playerpos.X, playerpos.Y, 90, 90); texture = Game1.content.Load <Texture2D>("player"); btimer = false; }
public player(Bulletmanager a_manRef) { m_manRef = a_manRef; playerpos.X = 312; playerpos.Y = 920; playerpos = new Rectangle(playerpos.X, playerpos.Y, 90, 90); texture = Game1.content.Load <Texture2D>("P.idle"); ammop = Game1.content.Load <Texture2D>("pstill"); btimer = false; m_timer = 0; ammo = 50; }
public player(Bulletmanager a_manRef) { m_manRef = a_manRef; playerpos.X = 0; playerpos.Y = 920; playerpos = new Rectangle(playerpos.X, playerpos.Y, 90, 90); texture = Game1.content.Load <Texture2D>("P.idle"); ammop = Game1.content.Load <Texture2D>("ammo"); healthp = Game1.content.Load <Texture2D>("health"); portrait = Game1.content.Load <Texture2D>("portrait"); btimer = false; m_timer = 0; playeredgescreen = false; ammo = 50; ammotimer = 0; health = 4; }