Coder Social home page Coder Social logo

softwrdev / raw-wasm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from binji/raw-wasm

0.0 0.0 0.0 550 KB

Raw WebAssembly demos

Home Page: https://binji.github.io/raw-wasm

License: MIT License

WebAssembly 66.79% HTML 12.96% Makefile 0.39% Python 6.19% Roff 0.94% JavaScript 11.17% CSS 1.55%

raw-wasm's Introduction

Raw WebAssembly Demos

Quine

A little WebAssembly quine. Without a way to do output, I decided that a WebAssembly quine should export a memory object with a copy its bytes. [148 bytes]

Demo!

Doomfire

An implementation of the Doom fire effect described in Fabien Sanglard's blog, using hand-written WebAssembly. [398 bytes]

Demo!

Metaball

An implementation of the metaball effect described in Jamie Wong's blog, using hand-written WebAssembly. Unlike the implementation described there, this just updates every pixel. [452 bytes]

Demo!

Inflate

An implementation of the INFLATE algorithm, as specified in RFC1951. It uses some tricks from Piotr Fusik's 6502 implementation, such as storing the literal and distance huffman trees in the same array, and programmatically calculating the length/distance encoding rather than using tables. [991 bytes]

Demo!

Chip-8

A CHIP-8 interpreter, with support for the original chip-8 instruction set. It starts up with a simple demo I wrote (thanks, Octo!). You can also try some of the public domain games and demos at dmatlack/chip8 and the CHIP-8 archive. [1020 bytes]

Demo!

Raytrace

A simple raytracer, using techniques from tinyraytracer, in hand-written WebAssembly. 4 spheres, 1 light, reflections, and shadows. [1486 bytes]

Demo!

Snake

A snake-eats-the-dots game, but with 360° rotation. Use left and right arrow keys, or tap on the left or right side of the screen to turn. [1976 bytes]

Demo!

Dino

A dinosaur endlessly running through the desert, jumping over cacti and pterodactyls. Graphics are compressed using a LZ77-like algorithm. [2020 bytes]

Demo!

Maze

A Wolfenstein-style 3d maze race. Each ray is tested against all walls, brute-force style. Walls, floors and ceilings are textured. Palettes are made up of 120-levels of brightness, which fade into black in the distance. [2047 bytes]

Demo!

Match3

An implementation of a match 3-style game, with an 8x8 grid and 8 different emojis. [2662 bytes]

Demo!

BadGB

A very simple gameboy emulator that only plays a few games. [3072 bytes]

Demo!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.