dev-jan / react-godot

A React Component to asynchronously load the Godot Engine and bootstrap a .pck

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-godot

Load a webassembly build of the Godot engine and Bootstrap packed games from within the react component tree

NPM JavaScript Style Guide

Install

npm install --save react-godot

Usage

import * as React from 'react'

import ReactGodot from 'react-godot'

class Example extends React.Component {
  render () {
    return (
      <ReactGodot script='/path/to/myGame.js' pck='/path/to/myGame.pck' />
    )
  }
}

License

MIT © d3dc

About

A React Component to asynchronously load the Godot Engine and bootstrap a .pck


Languages

Language:TypeScript 40.5%Language:JavaScript 30.9%Language:CSS 18.5%Language:HTML 10.1%