using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Otter; namespace OtterApp { class SecondScene : Scene { Graphic graphic; public SecondScene() : base() { // Add a red rectangle to the Scene (just to indicate which scene is currently active.) AddGraphic(Image.CreateRectangle(Game.Instance.Width, Game.Instance.Height, Color.Red)); } public override void Update() { base.Update(); if (Input.KeyPressed(Key.Space)) { // When the space bar is pressed switch to the FirstScene. //Game.SwitchScene(new GameScene()); } } } }