项目作者: PaulVirally

项目描述 :
Classic Pong game in Rust (with WASM and WebGL)
高级语言: Rust
项目地址: git://github.com/PaulVirally/Pong.git
创建时间: 2020-10-13T22:45:56Z
项目社区:https://github.com/PaulVirally/Pong

开源协议:

下载


Pong in WebAssembly with WebGL

This is a version of the classic Pong game written in Rust with a WebAssembly target that utilizes WebGL to render the graphics.

Compiling and Running

To compile to a WASM target, install wasm-pack then run the following from the root directory of this repo:

  1. wasm-pack build --target web

To deploy this small app, you can run any old http server (below is an example using python3):

  1. python3 -m http.server

Then you can head over to your server and enjoy Pong in your browser!