Changeset 6199
- Timestamp:
- 2015-06-23 19:00:29 (8 years ago)
- Location:
- 2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun.cs
r6198 r6199 147 147 } 148 148 149 #region ElementCreation149 #region LevelCreation 150 150 void CreateLevel() 151 151 { … … 163 163 //level.SetTileMethod(Color.PaintDotNetBlue, CreateDummy, Color.PaintDotNetBlue); 164 164 level.SetTileMethod(Color.DarkGray, CreateDummy, Color.DarkGray); //TODO: CreateTombStone 165 level.SetTileMethod(Color.Gray, Create Dummy, Color.Gray); //TODO: CreateCrawly165 level.SetTileMethod(Color.Gray, CreateCrawly); 166 166 level.SetTileMethod(Color.Red, CreateDummy, Color.Red); //TODO: CreateWitch 167 167 level.Execute(TILE_SIZE, TILE_SIZE); 168 168 level.Optimize(Color.Black, Color.Brown); 169 170 169 171 170 //TileMap level = TileMap.FromLevelAsset("level" + levelNumber); … … 178 177 179 178 SetControls(); 179 } 180 181 void CreateCrawly(Vector position, double width, double height) 182 { 183 PlatformCharacter crawly = new PlatformCharacter(width * 2, height); 184 crawly.Position = position; 185 crawly.Color = Color.Gray; 186 crawly.CollisionIgnoreGroup = 3; 187 Add(crawly); 188 189 PlatformWandererBrain brain = new PlatformWandererBrain(); 190 brain.Speed = 20; 191 brain.FallsOffPlatforms = true; 192 193 crawly.Brain = brain; 180 194 } 181 195 … … 260 274 } 261 275 262 void CreateGround(Vector position, double width, double height) 276 void CreateGround(Vector position, double width, double height) //TODO: Fiksataan se, että pelihahmot tietysti luiskahtavat tästä läpi, mikäli pääsevät sen sivustaan. Muitakin korjaustapoja tietty on, kuin tässä aliohjelmassa operoiminen. 263 277 { 264 278 GameObject ground = new GameObject(width, height);
Note: See TracChangeset
for help on using the changeset viewer.