public void DrawScene(Pen pen, Graphics g, SceneForm sceneForm) { ActualScene.Draw(pen, g); ActualScene.DrawOtherElements(sceneForm); Player1.Draw(g); Player2.Draw(g); }
protected override void Draw(GameTime gameTime) { ActualScene.ClearScreen(); ActualScene.Draw(gameTime); base.Draw(gameTime); }
protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); ActualScene.Load(Content); }
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; } }
protected override void Update(GameTime gameTime) { ActualScene.Update(gameTime); base.Update(gameTime); }
protected override void UnloadContent() { ActualScene.Unload(null); }