public cEngine(GraphicsDeviceManager gd, ContentManager cm) { _instance = this; _graphics = gd; _contentManager = cm; _postProcessor = new cPostProcessor(gd.GraphicsDevice, cm); _gameState = GAME_STATE.NOTHING; _batch = new cCustomSpriteBatch(gd.GraphicsDevice); _HUD = new cHUD(); }
public cHUD() { _instance = this; cSpriteManager.Instance.addTexture(@"Resources/HUD/hud_lives", "hud_lives"); _lives = new cSprite("hud_lives"); _lives.ScreenFixed = true; _lives.Position = new Vector2((_lives.Width / 2) + 16, cCamera.Instance.WidthHeight.Y - (_lives.Height / 2) - 6); _font = cFontManager.Instance.getFont("Treb11"); cSpriteManager.Instance.addTexture(@"Resources/HUD/hudboarder", "hudboarder"); _hudBoarder = new cSprite("hudboarder"); _hudBoarder.Position = new Vector2(400, 300); _hudBoarder.ScreenFixed = true; }