- Timestamp:
- 2017-06-16 10:39:43 (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
r8766 r8769 17 17 Image vihollinenkuva = LoadImage("vihollinen"); 18 18 19 //Image[] hahmonKavely = LoadImages("hahmo", "hahmo2"); 20 //Image[] hahmo2Kavely = LoadImages("hahmovasemmalle", "hahmovasemmalle2"); 21 //Image[] hahmo3kavely = LoadImages("hahmooikealle", "hahmooikealle2"); 22 //Image[] hahmo4kavely = LoadImages("hahmotakaa", "hahmotakaa2"); 19 Image[] hahmonKavely = LoadImages("hahmo", "hahmo2"); 20 Image[] hahmo2Kavely = LoadImages("hahmovasemmalle", "hahmovasemmalle2"); 21 Image[] hahmo3kavely = LoadImages("hahmooikealle", "hahmooikealle2"); 22 Image[] hahmo4kavely = LoadImages("hahmotakaa", "hahmotakaa2"); 23 24 //Image[] hahmonKavely = LoadImages("hahmo", "hahmo2"); 25 //Image[] hahmo2Kavely = LoadImages("hahmovasemmalle", "hahmovasemmalle2"); 26 //Image[] hahmo3kavely = LoadImages("hahmooikealle", "hahmooikealle2"); 27 //Image[] hahmo4kavely = LoadImages("hahmotakaa", "hahmotakaa2"); 23 28 24 29 … … 76 81 vihollispawner.Start(); 77 82 78 79 80 81 83 //Timer animoija = new Timer(); 84 //animoija.Interval = 0.5; 85 //animoija.Timeout += Liikkuja; 86 //animoija.Start(); 82 87 83 88 … … 121 126 void Liikkuja() 122 127 { 123 Image[] hahmonKavely = LoadImages("hahmo", "hahmo2"); 124 Image[] hahmo2Kavely = LoadImages("hahmovasemmalle", "hahmovasemmalle2"); 125 Image[] hahmo3kavely = LoadImages("hahmooikealle", "hahmooikealle2"); 126 Image[] hahmo4kavely = LoadImages("hahmotakaa", "hahmotakaa2"); 128 127 129 } 128 130 … … 262 264 { 263 265 hahmonase.Angle = Angle.FromDegrees(180.0); 264 hahmo.Image = hahmonkuvavasemmalle; //hahmo.Animation = new Animation(hahmo2Kavely);266 hahmo.Image = hahmonkuvavasemmalle; hahmo.Animation = new Animation(hahmo2Kavely); 265 267 } 266 268 if (suunta.X > 0) 267 269 { 268 270 hahmonase.Angle = Angle.FromDegrees(0.0); 269 hahmo.Image = hahmonkuvaoikealle; 271 hahmo.Image = hahmonkuvaoikealle; hahmo.Animation = new Animation(hahmo3kavely); 272 270 273 } 271 274 if (suunta.Y > 0) 272 275 { 273 276 hahmonase.Angle = Angle.FromDegrees(90.0); 274 hahmo.Image = hahmonkuvatakaa; 277 hahmo.Image = hahmonkuvatakaa; hahmo.Animation = new Animation(hahmo4kavely); 275 278 276 279 } … … 278 281 { 279 282 hahmonase.Angle = Angle.FromDegrees(270.0); 280 hahmo.Image = hahmonkuva; 283 hahmo.Image = hahmonkuva; hahmo.Animation = new Animation(hahmonKavely); 281 284 } 282 285
Note: See TracChangeset
for help on using the changeset viewer.