19 releases

✓ Uses Rust 2018 edition

new 0.4.4 Aug 12, 2019
0.4.3 Aug 12, 2019
0.3.17 Jul 28, 2019
0.3.12 Jun 29, 2019
0.3.5 Apr 30, 2019
Download history 48/week @ 2019-04-29 37/week @ 2019-05-06 35/week @ 2019-05-13 32/week @ 2019-05-20 11/week @ 2019-05-27 18/week @ 2019-06-03 21/week @ 2019-06-10 25/week @ 2019-06-17 26/week @ 2019-06-24 92/week @ 2019-07-01 65/week @ 2019-07-08 15/week @ 2019-07-15 33/week @ 2019-07-22 41/week @ 2019-07-29 117/week @ 2019-08-05

178 downloads per month
Used in 2 crates

Custom license

65KB
2K SLoC

logo

Oxygengine

The hottest HTML5 + WASM game engine for games written in Rust with web-sys.

Table of contents

  1. Installation
  2. Project Setup
  3. Building for development and production
  4. Roadmap

Installation

  1. Make sure that you have latest node.js with npm tools installed (https://nodejs.org/)
  2. Make sure that you have latest wasm-pack toolset installed (https://rustwasm.github.io/wasm-pack/installer/)
  3. Make sure that you have latest oxygengine-ignite application installed (from project repository releases)

Project Setup

Create Oxygen Engine project with oxygengine-ignite:

cd /path/to/parent/
oxygengine-ignite new <project-name>

Which will create default web game project using web-composite-game preset. Then you have to go to your project directory and run npm install to install all nodejs dependencies. You can create projects with different presets:

  • desktop-headless-game - typical server-like project without graphics.

using:

cd /path/to/parent/
oxygengine-ignite new <project-name> -p desktop-headless-game

You can also tell it where to create project:

oxygengine-ignite new <project-name> -d /path/to/parent/

Building for development and production

  • Launch live development with hot reloading (app will be automatically recompiled in background):
npm start
  • Build production distribution (will be available in /dist folder):
npm run build
  • Build crate without of running dev env:
cargo build --all

TODO / Roadmap

  • UI widgets
  • Prefabs (loading scenes from asset)
  • Packed assets fetch engine
  • Hardware renderer
  • WebGL hardware renderer backend
  • 2D physics

Dependencies

~4.5MB
~77K SLoC