Changeset 6113
- Timestamp:
- 2015-06-15 23:15:28 (8 years ago)
- Location:
- 2015/24/ohjaajat/Dungeon/Dungeon/Dungeon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/24/ohjaajat/Dungeon/Dungeon/Dungeon/Dungeon.cs
r6112 r6113 266 266 int[] ansaHinnat = { 300, 600 }; 267 267 int[] kultuuriTuotot = { 100, 200, 400 }; 268 private int teleAnsaHinta = 1000; 268 269 private int barbaariMaara = 2; 269 270 … … 327 328 public override void Begin() 328 329 { 330 MediaPlayer.IsRepeating = true; 331 MediaPlayer.Play("In_The_Dark_Flashes"); 332 329 333 ClearAll(); 330 334 … … 356 360 { 357 361 ClearAll(); 358 MediaPlayer.Play("In_The_Dark_Flashes");359 362 Kontrollit(); 360 363 UlkoAsuRoskaa(); … … 514 517 } 515 518 516 LuoKauppaPainike(teleAnsaKuvat[0], 1000, kultuuriKuvat.Length + ansaKuvat.Length, delegate519 LuoKauppaPainike(teleAnsaKuvat[0], teleAnsaHinta, kultuuriKuvat.Length + ansaKuvat.Length, delegate 517 520 { 518 521 ostamassa = LuoTeleAnsaPaivitys(); … … 557 560 Image = teleAnsaKuvat[0], 558 561 Size = new Vector(0.7, 0.7)*RUUDUN_KOKO, 559 Animation = new Animation(teleAnsaKuvat) 562 Animation = new Animation(teleAnsaKuvat), 563 Price = teleAnsaHinta 560 564 }; 561 565 } -
2015/24/ohjaajat/Dungeon/Dungeon/Dungeon/MainMenu.cs
r6098 r6113 81 81 double h = peli.Camera.ScreenToWorld(new Vector(0, Game.Screen.Height)).Y; 82 82 double left = peli.Camera.ScreenToWorld(new Vector(-Game.Window.Width / 2.0, 0)).X; 83 double right = peli.Camera.ScreenToWorld(new Vector(Game.Window.Width / 2.0, 0)).X;84 83 double top = peli.Camera.ScreenToWorld(new Vector(0, Game.Window.Height / 2.0)).Y; 85 84 double bottom = peli.Camera.ScreenToWorld(new Vector(0, -Game.Window.Height / 2.0)).Y; … … 158 157 { 159 158 barbaari.X += BarbaarinNopeus * dt; 160 if (barbaari.Left > peli.Camera.ScreenToWorld(new Vector(Game. Screen.Right, 0)).X)159 if (barbaari.Left > peli.Camera.ScreenToWorld(new Vector(Game.Window.Width / 2.0, 0)).X) 161 160 barbaari.Destroy(); 162 161 }
Note: See TracChangeset
for help on using the changeset viewer.