- Timestamp:
- 2017-06-14 12:59:38 (6 years ago)
- Location:
- 2017/24/IlariI/piXgel GAmE/piXgel GAmE/piXgel_GAmE
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/24/IlariI/piXgel GAmE/piXgel GAmE/piXgel_GAmE/piXgel_GAmE.cs
r8628 r8653 32 32 vihollinen.X = -300; 33 33 vihollinen.Y = -200; 34 35 FollowerBrain seuraajanAivot = new FollowerBrain(hahmo); 34 36 Add(vihollinen); 37 38 vihollinen.Brain = seuraajanAivot; 39 40 seuraajanAivot.Speed = 300; 41 seuraajanAivot.DistanceFar = 600; 42 seuraajanAivot.DistanceClose = 200; 43 seuraajanAivot.StopWhenTargetClose = true; 44 45 46 seuraajanAivot.TargetClose += KunPaaseeLahelle; 35 47 48 49 36 50 37 51 Add(hahmo); … … 69 83 Level.Background.Color = Color.Aqua; 70 84 Camera.Follow(hahmo); 85 Camera.Zoom(2.0); 71 86 72 87 … … 76 91 { 77 92 hahmo.Velocity = suunta; 78 79 80 93 81 94 } 82 95 83 void LuoVihu()96 void KunPaaseeLahelle() 84 97 { 85 for (int i = 0; i < 100; i++) 86 { 87 88 } 98 hahmo.Color = Color.Red; 89 99 } 100 90 101 91 102
Note: See TracChangeset
for help on using the changeset viewer.