- Timestamp:
- 2015-06-30 18:45:35 (8 years ago)
- Location:
- 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/LevelCreation.cs
r6619 r6624 29 29 level.SetTileMethod("decoration", CreateDecoration); 30 30 level.SetObjectMethod("player", CreatePlayer); 31 level.SetObjectMethod("blockade", CreateBlock); 32 // level.SetObjectMethod("coyote", CreateEnemy); 31 33 level.Execute(); 32 34 33 35 Level.Background.Color = Color.Black; 36 } 37 38 /// <summary> 39 /// Näkymättömiä esteitä. 40 /// </summary> 41 void CreateBlock(Vector position, double width, double height, Angle angle, Shape shape, string name, Dictionary<string, string> properties) 42 { 43 PhysicsObject block = PhysicsObject.CreateStaticObject(width, height); 44 block.Position = position; 45 block.IsVisible = false; 46 Add(block); 47 34 48 } 35 49 -
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel.cs
r6623 r6624 434 434 if(second > 1) 435 435 { 436 if (messagesviewed.Count < 1) //The letter's read, webetter head back.436 if (messagesviewed.Count < 1) //The letter's read, better head back. 437 437 { 438 438 Level.AmbientLight = 1; … … 451 451 452 452 } 453 //Timer textTimer = new Timer();454 //textTimer.Interval = 1;455 //textTimer.Timeout += delegate456 //{457 // if (messages.Count < 1)458 // {459 // Keyboard.EnableAll();460 // Level.AmbientLight = 1;461 // frame.Destroy();462 // GetObjectsWithTag("labelWaitingToDie").ForEach(g => g.Destroy());463 // textTimer.Stop();464 // Pause();465 // return;466 // }467 468 // var storyLabel = new Label(messages.Dequeue()) { TextColor = Color.White };469 // storyLabel.Y = -midpoint + storyLabel.Height * messages.Count() + 1;470 // storyLabel.Tag = "labelWaitingToDie";471 // Add(storyLabel);472 //};473 //textTimer.Start();474 453 } 475 454 } -
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/level1.tmx
r6622 r6624 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 <map version="1.0" orientation="orthogonal" renderorder="right-down" width="25" height="40" tilewidth="20" tileheight="20" nextobjectid=" 27">2 <map version="1.0" orientation="orthogonal" renderorder="right-down" width="25" height="40" tilewidth="20" tileheight="20" nextobjectid="41"> 3 3 <tileset firstgid="1" name="testlevel4" tilewidth="20" tileheight="20"> 4 4 <image source="tileset.png" width="200" height="200"/> … … 23 23 <object id="19" x="100" y="0" width="20" height="20"> 24 24 <properties> 25 <property name="goto" value=" testlevel@right"/>25 <property name="goto" value="level2@bottom"/> 26 26 </properties> 27 27 </object> … … 31 31 </properties> 32 32 </object> 33 <object id="27" x="400" y="20" width="20" height="20"> 34 <properties> 35 <property name="goto" value="hobocave@bottom"/> 36 </properties> 37 </object> 38 <object id="28" x="480" y="360" width="20" height="20"> 39 <properties> 40 <property name="goto" value="level3@left"/> 41 </properties> 42 </object> 33 43 </objectgroup> 34 44 <objectgroup name="player"> … … 36 46 </objectgroup> 37 47 <objectgroup color="#a41b80" name="interactable"/> 48 <objectgroup color="#000000" name="blockade"> 49 <object id="29" x="80" y="0" width="20" height="40"/> 50 <object id="34" x="120" y="0" width="20" height="40"/> 51 <object id="35" x="100" y="20" width="20" height="20"/> 52 </objectgroup> 53 <objectgroup color="#55ff00" name="coyote"> 54 <object id="36" x="200" y="210" width="20" height="20"/> 55 <object id="37" x="400" y="730" width="20" height="20"/> 56 <object id="38" x="240" y="250" width="20" height="20"/> 57 <object id="39" x="450" y="90" width="20" height="20"/> 58 <object id="40" x="40" y="360" width="20" height="20"/> 59 </objectgroup> 38 60 </map>
Note: See TracChangeset
for help on using the changeset viewer.