Skip to content
This repository was archived by the owner on Aug 23, 2020. It is now read-only.
Kevin Dai edited this page Apr 15, 2020 · 2 revisions

Rendering Pipeline:

  1. Greenfoot will call the act() of the world.
  2. A Camera's renderToBuffer method will be invoked.

Camera2D Rendering Pipeline

  1. The main Camera2D of a Scene will fetch all GameObjects from that scene.
  2. Only GameObjects with a PolygonRenderer will be rendered onto the buffer (by raster rendering).
  3. The buffer is then drawn as the background to the screen.

GameObjects can have components associated with it. A component must implement the IComponent interface. Components by themselves don't do much. They only store information about the GameObject (for now).

Clone this wiki locally