Font Awesome for Phaser Overview

Font Awesome icon integration for Phaser 3 games with easy-to-use icon components.

Font Awesome for Phaser

Font Awesome icon integration for Phaser 3 games with easy-to-use icon components. Add beautiful, scalable icons to your games with minimal effort.

Key Features

🎨

Font Awesome Icons

Access to thousands of Font Awesome icons

📏

Scalable

Vector-based icons that scale perfectly at any size

đŸŽ¯

Easy to Use

Simple API for adding icons to your game objects

🎨

Customizable

Full control over colors, sizes, and styling

⚡

High Performance

Optimized for 60fps gameplay with minimal overhead

🔧

TypeScript Support

Full TypeScript support with icon name autocomplete

Icon Categories

🎮

Gaming

Game-related icons

đŸŽĩ

Audio

Music and sound icons

âš™ī¸

Settings

UI and control icons

â¤ī¸

Health

Health and status icons

Quick Start

import { FontAwesomeIcon } from 'font-awesome-for-phaser';

class GameScene extends Phaser.Scene {
  create() {
    // Create a heart icon
    const heartIcon = new FontAwesomeIcon(this, {
      x: 100,
      y: 100,
      icon: 'heart',
      size: 32,
      color: '#ff0000'
    });
    this.add.existing(heartIcon);

    // Create a play button icon
    const playIcon = new FontAwesomeIcon(this, {
      x: 200,
      y: 100,
      icon: 'play',
      size: 24,
      color: '#00ff00'
    });
    this.add.existing(playIcon);

    // Create a settings icon with interaction
    const settingsIcon = new FontAwesomeIcon(this, {
      x: 300,
      y: 100,
      icon: 'cog',
      size: 28,
      color: '#0000ff'
    });
    settingsIcon.setInteractive();
    settingsIcon.on('pointerdown', () => {
      console.log('Settings clicked!');
    });
    this.add.existing(settingsIcon);
  }
}

Installation

npm install font-awesome-for-phaser

Font Awesome for Phaser makes it easy to add beautiful, scalable icons to your Phaser 3 games with minimal setup.