How to use

New Kingdoms helps rapidly iterate iOS games prototyping. It requires minimum effort to publish the game on an iOS device (together with template-love-game repository) and allows you to think of objects and their behaviours as in real life. You will need basic programming skills to code in Lua and advanced ability to analyze and model your objects and game rules. With all capabilities of the LÖVE engine you can easily create visual representation to see the objects’ life unfold.

Most of the time, if you don’t need to modify the engine itself, you’ll operate in 4 areas:

  • Objects - creating a class for each type of object in the simulation world.
  • GameRules - to describe their interaction.
  • Views - for visualisation of the objects.
  • Layouter - for plotting the views on screen.

You can skip visualisation and use CLI output if you want pure NPC simulation without user interaction. You can also change behaviors and visualisations independently.

The New Kingdoms engine was designed based on the clean architecture principles. In two articles referenced below, you can read the full story of its design, understand the final implementation down to classes, how they depend on each other, and how the engine is intended to be used. There is also a demo app to make it easier to start.