public MainMenu(Engine engine) : base(engine) { this.button1 = new MenuButton(this.Engine); this.button2 = new MenuButton(this.Engine); this.button1.Position = new Vector2(0, -40); this.button2.Position = new Vector2(0, 40); this.button1.Text = "new game"; this.button2.Text = "high scores"; this.button1.Color = new Color(0.3f, 0.3f, 0.3f); this.button2.Color = new Color(0.3f, 0.3f, 0.3f); button1.Action = () => { this.Dispose(); new NewGameMenu(this.Engine).Initialize().Attach(); }; button2.Action = () => { this.Dispose(); new HighScoreMenu(this.Engine).Initialize().Attach(); }; this.buttons.Add(button1); this.buttons.Add(button2); this.oldButton = new BehaviorSubject<MenuButton>(null); this.currentButton = new BehaviorSubject<MenuButton>(this.button1); }
public MenuButton(Engine engine) : base(engine) { this.Text = ""; this.Color = Color.Black; this.Action = () => { }; }
public KeyboardCameraController(Engine engine, Camera camera) : base(engine) { this.camera = camera; this.MoveSpeed = 5f; this.ZoomSpeed = 0.5f; }
public Weapon(Engine engine) : base(engine) { this.FireRequests = new Subject<Unit>(); this.ReloadRequests = new Subject<Unit>(); this.Fires = new Subject<Unit>(); this.Reloads = new Subject<Unit>(); this.Kickbacks = new Subject<Vector2>(); }
public Bolt(Engine engine) : base(engine) { }
public Shot(Engine engine) : base(engine) { }
public SpeedBoost(Engine engine) : base(engine) { }
public RobotCameraController(Engine engine, Robot robot, Camera camera) : base(engine) { this.robot = robot; this.camera = camera; }
public NewLevel(Engine engine) : base(engine) { }
public SplashScreen(Engine engine) : base(engine) { }
public Flame(Engine engine) : base(engine) { }
public NewGameMenu(Engine engine) : base(engine) { }
public Robot(Engine engine) : base(engine) { this.weapon = Fireable.Empty; }
public Rocketlauncher(Engine engine) : base(engine) { }
public DebugLogger(Engine engine) : base(engine) { }
public Crossbow(Engine engine) : base(engine) { }
//Basic Constructor public Pistol(Engine engine) : base(engine) { }
public Shotgun(Engine engine) : base(engine) { }
public SampleLevel(Engine engine) : base(engine) { }
protected override void Initialize() { this.engine = new Engine(this); new SplashScreen(this.engine).Initialize().Attach(); }
public Rocket(Engine engine) : base(engine) { }
public FlyingBrick(Engine engine) : base(engine) { }
public HighScoreMenu(Engine engine) : base(engine) { }