Пример #1
0
        protected override void CreateScreens()
        {
            SymbolImport si = new SymbolImport("titleScreen", "entryScreen");
            titleScreen = new StartScreen(si);
            stage.AddScreen(titleScreen);

            levelNumber = 12;
            //AddLevel("allCarsScreen", typeof(AllCarsScreen));
            //AddLevel("wideBoulevardScreen", typeof(WideBoulevardScreen));
            //AddLevel("spaceMediumScreen", typeof(SpaceMediumScreen));
            //AddLevel("steamRollerScreen", typeof(SteamRollerScreen));

            levelNumber = 0;
            AddLevel("twoLaneScreen", typeof(TwoLaneScreen)); // must be first
             
            AddLevel("wideBoulevardScreen", typeof(WideBoulevardScreen));
            AddLevel("crosswalkScreen", typeof(CrosswalkScreen));
            AddLevel("twoTrainTwoRestScreen", typeof(TwoTrainTwoRestScreen));
            AddLevel("twoCanaltwoBoulScreen", typeof(TwoCanalTwoBoulevardScreen));
            AddLevel("spaceMediumScreen", typeof(SpaceMediumScreen));

            AddLevel("allCarsScreen", typeof(AllCarsScreen));
            AddLevel("twoCanalScreen", typeof(TwoCanalScreen));
            AddLevel("housesScreen", typeof(HousesScreen));
            AddLevel("allWaterScreen", typeof(AllWaterScreen));
            AddLevel("twoTrainScreen", typeof(TwoTrainScreen));

            AddLevel("allTrainScreen", typeof(AllTrainScreen));
            AddLevel("laneChangeScreen", typeof(LaneChangeScreen)); // must be 12th
            AddLevel("twoCanalTwoTrainScreen", typeof(TwoCanalTwoTrainScreen));
            AddLevel("twoBoulevardScreen", typeof(TwoBoulevardScreen));
            AddLevel("steamRollerScreen", typeof(SteamRollerScreen));
        }
Пример #2
0
        public Screen(SymbolImport symbolImport)
        {
            this.SymbolImport = symbolImport;

			EnsureV2DWorld();
			if (SymbolImport == null || SymbolImport.instanceName == CurrentRootName)
			{
				instanceDefinition = v2dWorld.RootInstance;
				instanceName = ROOT_NAME;
			}
			else
			{
				instanceDefinition = FindRootInstance(v2dWorld.RootInstance, SymbolImport.instanceName);
				instanceName = symbolImport.instanceName;
			}

			if (instanceDefinition != null)
			{
				definitionName = instanceDefinition.DefinitionName;
            }
            SetAttributes();
        }
 public SplashScreen(SymbolImport si)
     : base(si)
 {
 }
Пример #4
0
 public Tutorial4Screen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
Пример #5
0
 public BaseScreen(SymbolImport si)
     : base(si)
 {
 }
Пример #6
0
 public Level11Screen(SymbolImport si, int songIndex)
     : base(si)
 {
     this.songIndex = songIndex;
 }
Пример #7
0
 public PulleyJointDemo(SymbolImport si)
     : base(si)
 {
 }
 public TwoCanalTwoBoulevardScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
 public WideBoulevardScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
 public LaneChangeScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
 public TwoTrainTwoRestScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
Пример #12
0
 public V2DScreen(SymbolImport symbolImport) : base(symbolImport)
 {
     CreateWorld();
 }
 public AllWaterScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
Пример #14
0
 private void AddLevel(string levelName, Type levelType)
 {
     SymbolImport si = new SymbolImport("screens", levelName);
     ConstructorInfo ci = levelType.GetConstructor(new Type[]{si.GetType()});
     object o = ci.Invoke(new object[] { si });
     ((BaseScreen)o).levelNumber = levelNumber++;
     stage.AddScreen((BaseScreen)o);
 }
Пример #15
0
 public AllCarsScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
 public SteamRollerScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
Пример #17
0
 public HousesScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
 public TwoCanalTwoTrainScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
Пример #19
0
 public Scene2Data(SymbolImport si)
     : base(si)
 {
 }
 public AllTrainScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
Пример #21
0
 public TitleScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
Пример #22
0
 public AnimationDemo(SymbolImport si)
     : base(si)
 {
 }
Пример #23
0
 public TwoLaneScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
Пример #24
0
 public Level8Screen(SymbolImport si)
     : base(si)
 {
 }
Пример #25
0
 public V2DScreen(SymbolImport symbolImport)
     : base(symbolImport)
 {
     CreateWorld();
 }
 public Level0Screen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
 public SpaceMediumScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
Пример #28
0
 public SpinnerDemo(SymbolImport si)
     : base(si)
 {
 }
Пример #29
0
 public RevoluteJointDemo(SymbolImport si)
     : base(si)
 {
 }
Пример #30
0
 public StartScreen(SymbolImport si)
     : base(si)
 {
     SymbolImport = si;
 }
 public HudScreen(SymbolImport si)
     : base(si)
 {
 }