Skip to content

plyr4/go-ebiten-multiplayer

Repository files navigation

go-ebiten-multiplayer

A small multiplayer game prototype made with Go, ebitengine and websockets.

Play

Web and linux demos are coming soon! For now, you need to compile and run the code locally to play.

Development

How to run and debug the game from source.

Prerequisites

At a minimum: make, Docker, docker-buildx.

For local dev: Go, ebitengine (make sure the environment test passes).

Run via Docker

Run via Go

  • Run directly via Go.

    # run server in the background
    make srv &
    # run the client
    make clt
  • Disable multiplayer by using make clt-local or by setting CLIENT_MULTIPLAYER to false.

    make clt-local
    # or
    export CLIENT_MULTIPLAYER=false
    make clt

Troubleshooting

  • Ports stuck after running and killing the server? Run make kill-srv then try again.

TODOs

  • secure client uuids
  • websocket security
  • sprite animations
  • dynamic animations
  • server self-cleanup
  • multiplayer lobbies
  • ui
  • player customization

About

A small multiplayer game made with Go, ebitengine and websockets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published