
I've been working on a client-server entity replication API (like the ones in Unity or Unreal) based on lua-enet. You can write your game's code mostly as if you are writing a single-computer game and have automatic synchronization of your game state across multiple computers.
Here is the code for the game in the image above: https://github.com/expo/ghost-multi/blo ... e_warz.lua . You can see how the code is basically all focused on gameplay and not much netcode if at all. I was able to play the game with friends by hosting it on a server with a public IP!
You can find the library along with tutorials and reference documentation on the GitHub page at: https://github.com/expo/sync.lua
It's been tested on Windows, macOS, Linux, iOS, and probably works on Android because it just uses cross-platform Love libraries (but haven't tested it there).