22 unstable releases (3 breaking)

✓ Uses Rust 2018 edition

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.1.0 Apr 19, 2019
Download history 47/week @ 2019-06-06 3/week @ 2019-06-13 39/week @ 2019-06-20 56/week @ 2019-06-27 126/week @ 2019-07-04 58/week @ 2019-07-11 23/week @ 2019-07-18 30/week @ 2019-07-25 97/week @ 2019-08-01 96/week @ 2019-08-08 19/week @ 2019-08-15 321/week @ 2019-08-22 92/week @ 2019-08-29 71/week @ 2019-09-05 45/week @ 2019-09-12

220 downloads per month

Custom license

170KB
4.5K 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.5–6.5MB
~124K SLoC