Beispiel #1
0
 public void DrawPosition(Obstacle obstacle, SpriteBatch spriteBatch)
 {
     // get the screen position of the node in the scene relative to world coordinates
     Vector2 drawPosition = ApplyTransformations(obstacle.worldPosition);
     obstacle.setDrawPosition(drawPosition);
     //return drawPosition;
     obstacle.Draw(spriteBatch);
 }
Beispiel #2
0
 public void AddObstacle(Obstacle obs)
 {
     obstacles.Add(obs);
 }