Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 790 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 790 Bytes

nextjs-godot

Load a webassembly build of the Godot engine and Bootstrap packed games from within the react component tree. Modified to work within NextJS

NPM JavaScript Style Guide

Install

npm install --save nextjs-godot

Usage

import * as React from 'react'

import NextGodot from 'nextjs-godot'

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

License

MIT © Shrag original author: d3dc