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.

126 lines
5.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Otter;
using _1869_Remake;
using _1869_Remake.Scenes;
namespace _1869_Remake
{
public class Program
{
static void Main(string[] args)
{
//Spiel erstellen
//Hinweis für Final release Projekteinstellungen von Konsolenanwendung zu Windowsanwendung änder damit Spiel direkt Fokus hat
Globals.Remake = new Game("1869 - Remake", 640, 480,60,false);
// Intro Sequenz als Startsequenz andere FirstScenes sind Shortcuts für dev Gründe
//Globals.Remake.FirstScene = new Intro();
Globals.Remake.FirstScene = new ConfigScreen();
//Globals.Remake.FirstScene = new worldMap();
//Globals.Remake.FirstScene = new BankScene();
//Globals.Remake.FirstScene = new HallOfFameScene();
//Globals.Remake.FirstScene = new StatistikScene();
//Globals.Remake.FirstScene = new OptionenScene();
Globals.Remake.EnableAltF4 = true;
Globals.Remake.MouseVisible = true;
//Spielersession hinzufügen
Globals.PlayerSession = Globals.Remake.AddSession("Player");
//Steuerungsmöglichkeiten Deffinieren
Globals.PlayerSession.Controller.AddButton("Enter");
Globals.PlayerSession.Controller.Button("Enter").AddKey(Key.Return);
Globals.PlayerSession.Controller.AddButton("MausLinks");
Globals.PlayerSession.Controller.Button("MausLinks").AddMouseButton(MouseButton.Left);
Globals.PlayerSession.Controller.AddButton("MausRechts");
Globals.PlayerSession.Controller.Button("MausRechts").AddMouseButton(MouseButton.Right);
//A B C D E F G für eingaben
Globals.PlayerSession.Controller.AddButton("A");
Globals.PlayerSession.Controller.Button("A").AddKey(Key.A);
Globals.PlayerSession.Controller.AddButton("B");
Globals.PlayerSession.Controller.Button("B").AddKey(Key.B);
Globals.PlayerSession.Controller.AddButton("C");
Globals.PlayerSession.Controller.Button("C").AddKey(Key.C);
Globals.PlayerSession.Controller.AddButton("D");
Globals.PlayerSession.Controller.Button("D").AddKey(Key.D);
Globals.PlayerSession.Controller.AddButton("E");
Globals.PlayerSession.Controller.Button("E").AddKey(Key.E);
Globals.PlayerSession.Controller.AddButton("F");
Globals.PlayerSession.Controller.Button("F").AddKey(Key.F);
Globals.PlayerSession.Controller.AddButton("G");
Globals.PlayerSession.Controller.Button("G").AddKey(Key.G);
// O für Original Modus, R für Remake
Globals.PlayerSession.Controller.AddButton("O");
Globals.PlayerSession.Controller.Button("O").AddKey(Key.O);
Globals.PlayerSession.Controller.AddButton("R");
Globals.PlayerSession.Controller.Button("R").AddKey(Key.R);
//Leertaste für Neues Spiel, J für Spiel Laden
Globals.PlayerSession.Controller.AddButton("Leer");
Globals.PlayerSession.Controller.Button("Leer").AddKey(Key.Space);
Globals.PlayerSession.Controller.AddButton("J");
Globals.PlayerSession.Controller.Button("J").AddKey(Key.J);
Globals.PlayerSession.Controller.AddButton("N");
Globals.PlayerSession.Controller.Button("N").AddKey(Key.N);
// M für Männlich, W für weiblich
Globals.PlayerSession.Controller.AddButton("M");
Globals.PlayerSession.Controller.Button("M").AddKey(Key.M);
Globals.PlayerSession.Controller.AddButton("W");
Globals.PlayerSession.Controller.Button("W").AddKey(Key.W);
Globals.PlayerSession.Controller.AddButton("Z");
Globals.PlayerSession.Controller.Button("Z").AddKey(Key.Z);
// Zahlentasten
Globals.PlayerSession.Controller.AddButton("1");
Globals.PlayerSession.Controller.Button("1").AddKey(Key.Num1);
Globals.PlayerSession.Controller.Button("1").AddKey(Key.Numpad1);
Globals.PlayerSession.Controller.AddButton("2");
Globals.PlayerSession.Controller.Button("2").AddKey(Key.Num2);
Globals.PlayerSession.Controller.Button("2").AddKey(Key.Numpad2);
Globals.PlayerSession.Controller.AddButton("3");
Globals.PlayerSession.Controller.Button("3").AddKey(Key.Num3);
Globals.PlayerSession.Controller.Button("3").AddKey(Key.Numpad3);
Globals.PlayerSession.Controller.AddButton("4");
Globals.PlayerSession.Controller.Button("4").AddKey(Key.Num4);
Globals.PlayerSession.Controller.Button("4").AddKey(Key.Numpad4);
Globals.PlayerSession.Controller.AddButton("5");
Globals.PlayerSession.Controller.Button("5").AddKey(Key.Num5);
Globals.PlayerSession.Controller.Button("5").AddKey(Key.Numpad5);
//Spiel Starten
Globals.Remake.Start();
}
}
}