TypeScript

Articles about "TypeScript"

Create a State Machine for Character Logic in Typescript


by on 9 minute read

Complex character logic can get out of hand quickly without a system to manage it. We'll want to add melee attacks, ranged attacks, double …

Firebase Leaderboard with Rex Plugins in Phaser 3


by on 9 minute read

Are you looking to add more replayability to your game? Leaderboards are a long-standing feature of single-player games that give players a …

How to Make a Particle Trail Effect in Phaser 3


by on 7 minute read

Does your game feel too static or not reactive enough? Do coins just disappear when the player collects them? A greater feeling of …

DOM Element Button in Phaser 3 with JSX and TypeScript


by on 5 minute read

There is a vast ecosystem of beautifully styled and feature-packed CSS frameworks can be leveraged for UI in a Phaser game. In this article, …

Container Button in Phaser 3 with RxJS and TypeScript


by on 6 minute read

It is common for buttons to have text in them. But like most GameObjects in Phaser, the basic button cannot have children. This means you …

Basic Button in Phaser 3 with RxJS and TypeScript


by updated 8 minute read

Phaser 3 is a fun and easy-to-use game framework but it does not come with buttons. This is no problem because making a button in Phaser is …

Object Pooling in Phaser 3 with Matter Physics


by on 7 minute read

Odds are your game's objects will be moved or influenced by a physics engine. In this article we show you how to use Object Pools with …

Game Optimization with Object Pools in Phaser 3


by on 7 minute read

This article builds upon Basic Object Pools in Phaser 3 with a dedicated class for reusability. It also looks at integration with the …

Game Optimization with Basic Object Pools in Phaser 3


by on 6 minute read

Object Pools are a common optimization technique to ensure a smooth game experience. This article shows you how to easily accomplish that in …

Creating a Flashlight or Spotlight Effect in Phaser 3


by on 6 minute read

Creating a spotlight or flashlight effect in Phaser 3 is fairly simple once you know how to use alpha masks. In this article we will show …

Reveal Effect in Phaser 3 with Alpha Masks


by on 7 minute read

Alpha masks can be used to create many different kinds of effects including reveal or scratch-off effects. This article takes a look at how …

Simple Reveal or Scratch-Off Effect in Phaser 3


by on 6 minute read

Object reveal or scratch-off effects are frequently used as mini-games or bonuses. This article looks at a fast and simple method to achieve …