public void DrawScene(Pen pen, Graphics g, SceneForm sceneForm)
 {
     ActualScene.Draw(pen, g);
     ActualScene.DrawOtherElements(sceneForm);
     Player1.Draw(g);
     Player2.Draw(g);
 }
Exemple #2
0
        protected override void Draw(GameTime gameTime)
        {
            ActualScene.ClearScreen();
            ActualScene.Draw(gameTime);

            base.Draw(gameTime);
        }
Exemple #3
0
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            ActualScene.Load(Content);
        }
Exemple #4
0
    public void LoadMusicScene(ActualScene actual)
    {
        switch (actual)
        {
        case ActualScene.MainMenu:
            am.ChangeLevelMusic(0);
            break;

        case ActualScene.Level1:
            am.ChangeLevelMusic(1);
            break;

        case ActualScene.Level2:
            am.ChangeLevelMusic(2);
            break;

        case ActualScene.Level3:
            am.ChangeLevelMusic(3);
            break;

        default:
            break;
        }
    }
Exemple #5
0
        protected override void Update(GameTime gameTime)
        {
            ActualScene.Update(gameTime);

            base.Update(gameTime);
        }
Exemple #6
0
 protected override void UnloadContent()
 {
     ActualScene.Unload(null);
 }