using Otter;
using PenniesAreGold.Utility;

namespace PenniesAreGold
{
    class Program
    {
        static void Main(string[] args)
        {
            Global.GAME = new Game("Pennies Are Gold", 720, 480);
            Global.GAME.MouseVisible = true;
            Global.GAME.SetWindow(1440, 960);
            Global.GAME.WindowX = 420;
            Global.GAME.WindowY = 10;
            var app = Global.PlayerSession = Global.GAME.AddSession("Player");
            app.Controller.AddButton("Start");
            app.Controller.Button("Start").AddKey(Key.Return);
            app.Controller.AddButton("W");
            app.Controller.Button("W").AddKey(Key.W);
            app.Controller.AddButton("A");
            app.Controller.Button("A").AddKey(Key.A);
            app.Controller.AddButton("S");
            app.Controller.Button("S").AddKey(Key.S);
            app.Controller.AddButton("D");
            app.Controller.Button("D").AddKey(Key.D);
            app.Controller.AddButton("M");
            app.Controller.Button("M").AddKey(Key.M);
            app.Controller.AddButton("Up");
            app.Controller.Button("Up").AddKey(Key.Up);
            app.Controller.AddButton("Down");
            app.Controller.Button("Down").AddKey(Key.Down);
            app.Controller.AddButton("Right");
            app.Controller.Button("Right").AddKey(Key.Right);
            app.Controller.AddButton("Left");
            app.Controller.Button("Left").AddKey(Key.Left);
            app.Controller.AddButton("R");
            app.Controller.Button("R").AddKey(Key.R);
            app.Controller.AddButton("E");
            app.Controller.Button("E").AddKey(Key.E);
            app.Controller.AddButton("Space");
            app.Controller.Button("Space").AddKey(Key.Space);
            app.Controller.AddButton("LeftMouseClick");
            app.Controller.Button("LeftMouseClick").AddMouseButton(MouseButton.Left);
            app.Controller.AddButton("RightMouseClick");
            app.Controller.Button("RightMouseClick").AddMouseButton(MouseButton.Right);

            new SoundManager();

            Global.GAME.FirstScene = new Menu();
            //Global.GAME.FirstScene = new LevelOne();
            Global.GAME.Start();
        }
    }
}
