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 sample is based on version 0.1 and will be updated only at 1.0 release. It will work, but the engine code is not the latest.
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.