xaya / libxayagame

MIT License
21 stars 20 forks source link

Add DefaultMain variant based on callbacks #20

Closed domob1812 closed 6 years ago

domob1812 commented 6 years ago

This includes a second DefaultMain variant, which is based on callbacks for the game-specific logic instead of an instance of GameLogic. This may make it easier to implement for simple games, and may also make interoperability with C# (writing logic in C#) easier to handle. (Because not a class needs to be wrapped, but just functions.)

With this, @RyuMaster was able to implement a C# bridge and implement Mover in C#. Thus, I believe we can close #10 once this is merged.