0.1.2 • Published 10 months ago

wasm-game-of-life-webgl-rendering v0.1.2

Weekly downloads
-
License
-
Repository
github
Last release
10 months ago

WASM Game of Life

game-of-life

Intro

This repo contains an implementation of the Game of Life using WASM with Rust. Also, as this implementation focuses on performance, WebGL is also used to render the game.

Contents

You can find the Rust library crate implementation in src and an example website using the package in www.

How to Run

Build the WASM package from source

First you will need to have Rust and wasm-pack to compile the rust library and build the WASM package.

To build the package run:

wasm-pack build

Run the example web page

Once you built the WASM package from source you can go into the www directory and run the web server.

First make sure you have npm installed. Then run:

# Enter the web page directory
cd www
# Install the dependencies
npm install
# Run the web server
npm run start

npm package

If you want to add the package to your project you can use the published npm package.

It can be installed with:

npm i wasm-game-of-life-webgl-rendering
0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago