Exemplo n.º 1
0
 public GUIMarioSprite(Vector2 location)
 {
     guiMarioSpriteSheet = GUISpriteFactory.CreateGUIMarioSprite();
     this.location       = location;
     guiMarioSprite      = new AnimatedSprite(guiMarioSpriteSheet, UtilityClass.one, UtilityClass.one, location, UtilityClass.two);
     collisionRectangle  = guiMarioSprite.returnCollisionRectangle();
 }
Exemplo n.º 2
0
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     BlockSpriteTextureStorage.Load(this.Content);
     ItemSpriteTextureStorage.Load(this.Content);
     EnemySpriteFactory.Load(this.Content);
     MiscGameObjectTextureStorage.Load(this.Content);
     MarioSpriteFactory.Load(this.Content);
     GUISpriteFactory.Load(this.Content);
     SoundEffectFactory.Load(this.Content);
     MusicFactory.Load(this.Content);
     background         = Content.Load <Texture2D>(UtilityClass.background);
     background2        = Content.Load <Texture2D>(UtilityClass.background2);
     skyworldbackground = Content.Load <Texture2D>("skyworldbackground");
     deathbackground    = Content.Load <Texture2D>(UtilityClass.deathbackground);
     font           = Content.Load <SpriteFont>(UtilityClass.FontString);
     basicarialfont = Content.Load <SpriteFont>(UtilityClass.BasicArialFontString);
     LoadKeyBoardCommands();
     levelStore       = loader.LoadLevel();
     mario            = levelStore.player;
     cameraController = new CameraController(camera, mario);
     resetCommand     = new ResetLevelCommand(this);
     MusicFactory.MainTheme();
     ResetGui();
 }
 public GUICoinSprite(Vector2 location)
 {
     coinSpriteSheet    = GUISpriteFactory.CreateGUICoinSprite();
     this.location      = location;
     coinSprite         = new AnimatedSprite(coinSpriteSheet, UtilityClass.one, UtilityClass.generalTotalFramesAndSpecializedRows, location, UtilityClass.two);
     collisionRectangle = coinSprite.returnCollisionRectangle();
 }