Changeset 5280 for 2014/27/AleksanteriV


Ignore:
Timestamp:
2014-07-02 10:59:59 (5 years ago)
Author:
mijoilmo
Message:
 
Location:
2014/27/AleksanteriV/Protokolla236TrueSurvivor
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Player.cs

    r5270 r5280  
    1111    GameObject thrusterEffect; 
    1212    Level level; 
     13    Camera camera; 
    1314    public void rotate(double rotSpeed) 
    1415    { 
     
    4950    public override void Update(Time time) 
    5051    { 
    51         if (this.Position.X > this.level.Right) 
     52        if (this.X + this.level.Width / 2.0 > this.level.Right) 
    5253        { 
    53             this.X = this.level.Left; 
    54         } 
    55         else if (this.Position.X < this.level.Left) 
    56         { 
    57             this.X = this.level.Right; 
     54            if (this.Position.X > this.level.Right) 
     55            { 
     56                //((Game)this.Parent).Camera 
     57                this.X = this.level.Left; 
     58            } 
    5859        } 
    5960        base.Update(time); 
Note: See TracChangeset for help on using the changeset viewer.