Skip to content

silbinarywolf/networkplatformer-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Networked Platformer Proof of Concept in Golang

This is a thrown together remix of the Ebiten platformer example. The difference is that this allows you to host a Websocket server and connect with native or web clients.

!!!Warning!!!

This has bugs, sub-optimal networking code and poor error handling. This was hastily put together to show that this is possible with Go. Use this more as a loose guide to getting started!

!!!Warning!!!

Install

go get github.com/silbinarywolf/networkplatformer-go

Requirements

How to use

These commands were all tested on Windows, running via Git Bash.

Build and run server

go build && ./networkplatformer-go.exe --server

Build and run client

go build && ./networkplatformer-go.exe

Build web client (requires GopherJS is installed)

GOOS=linux gopherjs build

Then open "index.html" in your browser of choice to run it. (Tested Chrome and Firefox)

About

A hastily thrown together network game example using Ebiten, GopherJS and Websockets. (Server + Client)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages