ColinEberhardt / wasmweekly

Website for the WebAssembly weekly newsletter
http://wasmweekly.news/
Creative Commons Zero v1.0 Universal
74 stars 11 forks source link

WebAssembly port of a game #50

Closed janisozaur closed 3 years ago

janisozaur commented 3 years ago

I'm not sure how noteworthy it is given more and more wasm applications out there, but I ported a game.

Code: https://github.com/janisozaur/endless-sky Live build: https://play-endless-sky.com/

It is a fork of Endless Sky: Endless Sky is a 2D space trading and combat game similar to the classic Escape Velocity series. (Courtesy of their page: https://endless-sky.github.io/)

The port includes assets converted from single-frame PNGs to animated webp to reduce space used, conversion of renderer from desktop GL to GL ES, optional removal of threads (the work started when they were still disabled across the board in browsers), some performance optimizations, integration of local storage for saves and assets caching. It requires WebGL 2 and is still a bit rough around the edges, with more work planned. Mobile browsers are hit and miss (that's one of the things I'm trying to address now), but should work fine on the desktop.