defmodule Example.Game do require Logger use Amethyst.API.Game, meta: [default: true] @impl true def instantiate(supervisor) do Logger.info("The supervisor for this game is at #{inspect(supervisor)}") {:ok, %{}} end @impl true def login(from, cfg, _state) do Logger.info("Player logged in from #{inspect(from)}: #{inspect(cfg)}") :ok end end