Changeset 7993


Ignore:
Timestamp:
2016-07-07 19:54:37 (3 years ago)
Author:
sieerinn
Message:

Jotain kuoleman korjausyrityksiä

Location:
2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/LevelCreationMethods.cs

    r7986 r7993  
    8282            CreatePlayer1(position, width, height); 
    8383            CreatePlayer2(position, width, height).Destroy(); 
     84            advenae[1].IsAlive = false; 
    8485            SetGeneralKeys(); 
    8586        } 
     
    177178        void Respawn() 
    178179        { 
    179             advenae[0] = CreatePlayer1(respawnPoint, advenae[0].Width, advenae[0].Height); 
    180  
     180            //advenae[0] = CreatePlayer1(respawnPoint, advenae[0].Width, advenae[0].Height); 
     181            advenae[0].Reappear(); 
     182            advenae[0].Position = respawnPoint; 
    181183        } 
    182184 
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/Player.cs

    r7992 r7993  
    4444            IgnoresCollisionResponse = false; 
    4545            IgnoresGravity = false; 
     46            Velocity = Vector.Zero; 
    4647        } 
    4748 
     
    5152            IgnoresCollisionResponse = true; 
    5253            IgnoresGravity = true; 
    53             Position = new Vector(double.MinValue, double.MinValue); 
     54            Position = new Vector(10000, 10000); 
     55            Velocity = Vector.Zero; 
    5456        } 
    5557 
Note: See TracChangeset for help on using the changeset viewer.