Embedding Phaser3 Games into React 18 Function Components with useEffectsby@timbushell
1,282 reads

Embedding Phaser3 Games into React 18 Function Components with useEffects

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

At its simplest implementation, you can use this pattern to add Phaser3 Games and treat them like a GIF animation on steroids. At its most complex, I’ll show you how to launch Phaser3 games inside (and from other) React components, catch events happening inside the game to trigger functions in React. These events could update status notifications in the website’s banner or fire data to your website’s back-end API to keep a permanent record of player progress.
featured image - Embedding Phaser3 Games into  React 18 Function Components with useEffects
Tim Bushell HackerNoon profile picture

@timbushell

Tim Bushell


Receive Stories from @timbushell

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!