I have been working on a library of basic components that is designed to work for many different types of game. It abstracts away platform-specific inputs, converting them into platform-agnostic interactions.
Taking this a step further, I have expanded this into an instruction system that takes advantage of Swift’s features to create an
Instruction struct. This struct uses pseudo-English formatting that makes adding actions to entities simple and easy to read: