- Timestamp:
- 2015-07-01 18:34:38 (8 years ago)
- Location:
- 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/LevelCreation.cs
r6703 r6704 24 24 void CreateLevel(string levelName) 25 25 { 26 bossSpawnPositions.Clear(); 26 27 Level.CreateVerticalBorders(1.0, false, Color.Yellow); 27 28 PhysicsObject leftBorder = Level.CreateLeftBorder(0.0, false); … … 40 41 level.SetObjectMethod("coyote", CreateCoyote); 41 42 level.SetObjectMethod("boss", CreateBoss); 43 level.SetObjectMethod("bossspawn", CreateBossSpawn); 42 44 level.Execute(); 43 45 44 46 Level.Background.Color = Color.Black; 47 } 48 49 void CreateBossSpawn(Vector position, double width, double height, Angle angle, Shape shape, string name, Dictionary<string, string> properties) 50 { 51 bossSpawnPositions.Add(position); 45 52 } 46 53 … … 53 60 bossTimer.Timeout += delegate 54 61 { 55 62 Vector pos = RandomGen.SelectOne<Vector>(bossSpawnPositions); 63 //CreateBossTrainPart(pos, ); 56 64 }; 57 65 bossTimer.Start(); 66 } 67 68 void CreateBossTrainPart(Vector position, Animation anim) 69 { 70 var part = PhysicsObject.CreateStaticObject(150, 70); 71 part.Position = position; 72 part.Animation = anim; 73 part.Animation.Start(); 74 part.Velocity = new Vector(-50, 0); 75 Add(part); 58 76 } 59 77 -
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel.cs
r6703 r6704 76 76 StoryItem[] storyItem = new StoryItem[3]; 77 77 78 private List<Vector> bossSpawnPositions = new List<Vector>(); 79 78 80 private CycleSlot currentItem; // Laatikossa näkyvä nykyinen kama. 79 81 private CycleSlot nextItem; // Seuraavan kaman kuva. … … 139 141 private Animation coyoteDown; 140 142 141 [AssetName(" coyotedown")]142 private Animation coyoteDown;143 [AssetName("c oyotedown")]144 private Animation c oyoteDown;143 [AssetName("train")] 144 private Animation trainAnimation; 145 [AssetName("carriage")] 146 private Animation carriageAnimation; 145 147 146 148 #endregion
Note: See TracChangeset
for help on using the changeset viewer.