Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

mynane/go-wasm-cat-game-on-canvas-with-docker

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🙋‍♂️ Made by @olso_uznebolo, olso.space

🐈 go-wasm-cat-game-on-canvas-with-docker

Works with Chrome for Android! Thank you @twifkak

Demo at https://olso.space/go-wasm-cat-game-on-canvas/index.html

Companion codebase to article https://medium.com/@martinolsansky/webassembly-with-golang-is-fun-b243c0e34f02

Requirements

Docker or local Go 1.12-rc

Setup Docker image if you need Chrome+Android

docker build . twifkak's golang fork

Usage 🔧 💡

make build_go to build with Go compiler; produces megabytes version 😿

make build_twifkak to build with golang fork which makes it work on Chrome+Android

make serve to run static http server

Contact me

https://olso.space

https://twitter.com/olso_uznebolo

Weird stuff

  • WebAssembly is not enabled in iOS Simulator
  • I had to use twifkak's Golang fork to instantiate in on phone, default Golang Wasm currently allocates too much memory
  • For some reason, there is an Audio play() delay on Android

About

The world’s easiest introduction to WebAssembly with Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.5%
  • Go 25.7%
  • HTML 6.5%
  • Makefile 3.0%
  • Dockerfile 2.3%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.