Phaser Starter

screenshot of Phaser Starter
express

A starter Phaser project template that loads assets from JSON, served with Express and tested with Mocha.

Overview

The Phaser Starter project is a comprehensive foundation for developing games using Phaser JS, tailored to simplify the initial setup phase. With built-in features like automatic asset loading and an ExpressJS server for local asset serving, it efficiently handles the nitty-gritty aspects of game development while allowing developers to focus on creating immersive gameplay experiences. This project not only streamlines the development process but also integrates unit testing through Mocha, ensuring that your game logic remains robust as you iterate on your design.

By organizing the game's structure effectively and providing automation for JavaScript files, Phaser Starter helps facilitate smoother collaboration and faster iterations. Whether you're an experienced developer or just starting, this starter kit provides the essential tools needed to kickstart your Phaser project with minimal hassle.

Features

  • Automatic Asset Loading: Easily manage your game assets with a predefined system that loads essential files automatically, reducing setup time and errors.

  • ExpressJS Server Integration: A built-in server simplifies local asset serving, ensuring you can develop your game without complicated setup processes.

  • Mocha for Unit Testing: Includes an example test setup, allowing for straightforward unit testing of your game logic, helping to maintain code quality.

  • Automatic JavaScript Building: The development environment watches for file changes, automatically combining and minifying JavaScript files to streamline the development workflow.

  • Customizable File Structure: The project promotes a clear and organized approach to file management, making it easy to navigate game states and assets.

  • Flexible Game States: Modify and expand upon game states easily, with a clear structure for adding and managing various game functionalities.

  • Asset Management via JSON: Simply update the asset paths in a JSON file, allowing the AssetLoader to pick up necessary files cleanly and efficiently.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.