0.2.4 • Published 4 years ago

react-phaser-fiber v0.2.4

Weekly downloads
11
License
ISC
Repository
github
Last release
4 years ago

react-phaser-fiber

Create Phaser 3 games using React. Heavily inspired by @inlet/react-pixi.

This is very much a work in progress. The following components are provided (linked to their respective Phaser class):

Examples

Games

Breakout (recreated from official Phaser example)

Basic Platformer (recreated from official Phaser example)

Invaders (recreated from Phaser 2 example

Other

Spawning Components With Matter Physics

Getting Started

Install

npm install react-phaser-fiber

Create a game

import React from 'react'
import ReactDOM from 'react-dom'
import { Game, Scene, Text } from 'react-phaser-fiber'

const App = () => {
  return (
    <Game width={400} height={400}>
      <Scene sceneKey="main">
        <Text x={100} y={100} text="Hello World!" style={{ color: 'white' }} />
      </Scene>
    </Game>
  )
}

ReactDOM.render(<App />, document.getElementById('root'))

Edit Hello World

There will be proper documentation eventually, but for now look through the examples to see what else is possible.

0.3.0-beta.2

4 years ago

0.2.4

4 years ago

0.3.0-beta.1

4 years ago

0.3.0-beta.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago