federicobaldini / snake-game

A web application (game) to play at snake, using TypeScript, Rust and WebAssembly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snake-game

A web application (game) to play at snake, using TypeScript, Rust and WebAssembly.

Credit: https://github.com/Jerga99 and https://www.udemy.com/course/rust-webassembly-with-js-ts-the-practical-guide

application

Requirements

To successful run this code, you need to have Rust and Cargo installed on your Machine.

For the instalation guide click here.

Getting started

Just clone the repo and use cargo to run the code as shown below

$ git clone https://github.com/federicobaldini/snake-game
$ cd snake-game
snake-game->$ wasm-pack build --target web

Then to start the web application

snake-game->$ cd server

Install the dependencies:

npm install

then start the development server:

npm run dev

Navigate to localhost:3000. You should see the app running.

About

A web application (game) to play at snake, using TypeScript, Rust and WebAssembly.


Languages

Language:Rust 34.9%Language:TypeScript 34.5%Language:HTML 15.7%Language:JavaScript 14.9%