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:
- PlaceholderObject is modified to create
Car
andStage
objects. - PlaceholderView is modified to create respective
CarView
andStageView
views. - GameRules are added to populate the
gameWorld
with the created objects. - Layouter code is added to layout the views in the
viewHierarchy
and link user interaction toCar
objects.
About the demo
It’s a very simple simulation of a car driving down the road and changing its color upon interaction.