Ignore:
Timestamp:
2015-06-15 23:15:28 (6 years ago)
Author:
sieerinn
Message:

Kaikenlaista pientä säätöä.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/24/ohjaajat/Dungeon/Dungeon/Dungeon/MainMenu.cs

    r6098 r6113  
    8181        double h = peli.Camera.ScreenToWorld(new Vector(0, Game.Screen.Height)).Y; 
    8282        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; 
    8483        double top = peli.Camera.ScreenToWorld(new Vector(0, Game.Window.Height / 2.0)).Y; 
    8584        double bottom = peli.Camera.ScreenToWorld(new Vector(0, -Game.Window.Height / 2.0)).Y; 
     
    158157        { 
    159158            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) 
    161160                barbaari.Destroy(); 
    162161        } 
Note: See TracChangeset for help on using the changeset viewer.