static void Main() { //MeleeMusic.InitMixer(); Console.WriteLine("Loading Damage Sound Mappings"); MeleeDamageSounds.Load(); Console.WriteLine("Loading Music"); MeleeMusic.Load(); Console.WriteLine("Loading Sound"); MeleeSound.Load(); Console.WriteLine("Loading Game"); ReMasters.SuperMelee.GUI.BattleSetup battleSetup = new ReMasters.SuperMelee.GUI.BattleSetup(); battleSetup.ShowDialog(); ReMasters.SuperMelee.GUI.ShipSelection p1 = new ReMasters.SuperMelee.GUI.ShipSelection(); p1.Setup("Player 1", battleSetup.ImageList, battleSetup.Player1Ships); ReMasters.SuperMelee.GUI.ShipSelection p2 = new ReMasters.SuperMelee.GUI.ShipSelection(); p2.Setup("Player 2", battleSetup.ImageList, battleSetup.Player2Ships); BaseDisplayDemo demo = new BaseDisplayDemo( p1, battleSetup.Player1IsAI, battleSetup.Player1WingmanCount, p2, battleSetup.Player2IsAI, battleSetup.Player2WingmanCount ); Console.WriteLine("Creating Window"); ReMasterSDL sdlr = new ReMasterSDL(demo); Console.WriteLine("Running Game"); sdlr.Run(); }
protected PkunkFury(PhysicsState state, FactionInfo factionInfo) : base( (LifeSpan)DefaultLifeTime.Clone(), state, DefaultBodyFlags, DefaultShape, new ShipMovementInfo(DefaultMovementInfo), new ShipState(DefaultState), DefaultControlableSounds, DefaultShipSounds, new ActionList(DefaultActions), null) { this.respawnChance = DefaultRespawnChance; this.respawnSound = DefaultRespawnSound; }
static void Initialize() { initialized = true; InitShape(); DefaultMovementInfo = new ShipMovementInfo( new Bounded <float>(TimeWarp.AngularAcceleration), new Bounded <float>(TimeWarp.ScaleTurning(0)), new Bounded <float>(TimeWarp.ScaleAcceleration(16, 0)), new Bounded <float>(TimeWarp.ScaleVelocity(64))); DefaultState = new ShipState(new Bounded <float>(8), new Bounded <float>(12), new Bounded <float>(0), new Bounded <float>(TimeWarp.RechargeRateToPerSeconds(50, 1))); DefaultActions.Add(PkunkFuryPrimary.Create()); DefaultActions.Add(PkunkFurySecondary.Create()); DefaultControlableSounds = new ControlableSounds(null, "ShipDies"); DefaultShipSounds = new ShipSounds("PkunkFuryDitty"); DefaultRespawnSound = new MeleeSound("Hallelujah"); DefaultRespawnChance = .5f; }
protected PkunkFury(PkunkFury copy) : base(copy) { this.respawnChance = copy.respawnChance; this.respawnSound = copy.respawnSound; }