Samples

You can find a demo project in the GitHub repository and see all the required changes by comparing it with the engine (diff with the src folder).

The changes to engine are:

  1. PlaceholderObject is modified to create Car and Stage objects.
  2. PlaceholderView is modified to create respective CarView and StageView views.
  3. GameRules are added to populate the gameWorld with the created objects.
  4. Layouter code is added to layout the views in the viewHierarchy and link user interaction to Car objects.

About the demo

It’s a very simple simulation of a car driving down the road and changing its color upon interaction.

video