Esempio n. 1
0
 public void Draw(Renderer2D renderer)
 {
     renderer.BeginScene(currLevel.Camera.get_transformation());
     renderer.DrawEntity(top);
     renderer.DrawEntity(left);
     renderer.DrawEntity(bottom);
     renderer.DrawEntity(right);
     renderer.EndScene();
 }
Esempio n. 2
0
 public void Draw(Renderer2D renderer)
 {
     renderer.BeginScene(camera.get_transformation());
     foreach (Entity e in entities)
     {
         renderer.DrawEntity(e);
     }
     renderer.DrawEntity(player);
     renderer.EndScene();
 }
Esempio n. 3
0
 public void Draw(Renderer2D renderer)
 {
     renderer.BeginScene(Matrix.Identity);
     renderer.DrawText("FPS: " + framesPerSecond , new Vector2(50, 50));
     renderer.EndScene();
 }