- Timestamp:
- 2014-07-02 10:59:59 (9 years ago)
- Location:
- 2014/27/AleksanteriV/Protokolla236TrueSurvivor
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Player.cs
r5270 r5280 11 11 GameObject thrusterEffect; 12 12 Level level; 13 Camera camera; 13 14 public void rotate(double rotSpeed) 14 15 { … … 49 50 public override void Update(Time time) 50 51 { 51 if (this. Position.X> this.level.Right)52 if (this.X + this.level.Width / 2.0 > this.level.Right) 52 53 { 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 } 58 59 } 59 60 base.Update(time);
Note: See TracChangeset
for help on using the changeset viewer.