Пример #1
0
        public override void Initialize()
        {
            Input.AddButtonControl("left")
            .Keyboard(Keys.A, Keys.Left);

            Input.AddButtonControl("right")
            .Keyboard(Keys.D, Keys.Right);

            Input.AddButtonControl("up")
            .Keyboard(Keys.W, Keys.Up);

            Input.AddButtonControl("down")
            .Keyboard(Keys.S, Keys.Down);

            Input.AddButtonControl("continue")
            .Keyboard(Keys.Space, Keys.Enter);

            State.Start <GameplayState>();
        }