Exemple #1
0
 //Update the level so objects can be added or modifyed
 public virtual void Update(GameSettings settings)
 {
 }
Exemple #2
0
 public virtual void Update(GameSettings settings)
 {
     if(!_staticPosition && (_vel.HasValue() || _rotV != 0)){
         if(_airResistance){
             _vel.x = _vel.x - (_vel.x / 40);
             _vel.y = _vel.y - (_vel.y / 40);
             _rotV = _rotV - (_rotV / 40);
         }
         _vel.Max(_maxVel);
         SetPosAdd(_vel);
         SetRotationAdd(_rotV);
     }
     if ( _physics && _vel.HasValue())
     {
         List<GameObject> collisions = PhysEngine.GetAllOverlapping(this);
         PhysEngine.HandleAllObjects(this, collisions);
     }
 }