You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
812 B
C#

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());
}
}
}
}