summaryrefslogtreecommitdiff
path: root/Penguloon/Scenes/GameScene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Penguloon/Scenes/GameScene.cs')
-rw-r--r--Penguloon/Scenes/GameScene.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/Penguloon/Scenes/GameScene.cs b/Penguloon/Scenes/GameScene.cs
new file mode 100644
index 0000000..2928b4b
--- /dev/null
+++ b/Penguloon/Scenes/GameScene.cs
@@ -0,0 +1,36 @@
+using Microsoft.Xna.Framework.Input.Touch;
+using Penguloon.Levels;
+using Penguloon.Scenes;
+
+namespace Penguloon.Scenes
+{
+ internal class GameScene : SceneBase
+ {
+ public LevelBase Level { get; set; }
+
+ public GameScene(Main main, LevelBase level) : base(main)
+ {
+ this.Level = level;
+ this.Level.Initialize(this);
+ }
+
+ public override void CreateControls()
+ {
+
+ }
+
+ public override void Draw(float deltaTime)
+ {
+ base.Draw(deltaTime);
+
+ this.Level.Draw(deltaTime);
+ }
+
+ public override void Update(float deltaTime, TouchLocation[] touchLocations)
+ {
+ base.Update(deltaTime, touchLocations);
+
+ this.Level.Update(deltaTime, touchLocations);
+ }
+ }
+} \ No newline at end of file