Phaser Cordova Webpack Boilerplate

screenshot of Phaser Cordova Webpack Boilerplate

Phaser.js and cordova boilerplate so you don’t have to do it.

Overview

The Phaser Cordova Webpack Boilerplate is an excellent starting point for anyone looking to develop and deploy games for Android. This boilerplate simplifies the process with clear instructions and necessary tools, making it easy for both beginners and experienced developers to bring their game ideas to life. In just ten steps, you'll be equipped to create a game and launch it on mobile devices, allowing you to focus more on creativity rather than setting up the framework.

This boilerplate provides a solid foundation, with a straightforward workflow and built-in plugins to enhance game functionality. Whether you're working on a simple game or a more complex project, this resource will help streamline your development process and make it enjoyable.

Features

  • Easy Setup: Get started quickly by cloning the repository and running a few simple commands to install dependencies.

  • Quick Deployment: Use commands like run build:deploy to easily build and deploy your game straight to an Android device.

  • Asset Handling: Effortlessly add new assets to your game by placing them in the designated assets folder and linking them in the preload state.

  • Integrated Testing: Test your game locally in the browser using the run server command, allowing for quick iterations and debugging.

  • Mobile Debugging: Inspect your game logs on a mobile device using Chrome's inspect feature while the game is running.

  • Google AdMob and Play Services: Built-in support for ads and leaderboards through Google AdMob and Google Play Services plugins.

  • Extensive Documentation: Clear workflow steps and guidelines promote understanding and efficient use of the boilerplate.

  • Community Contributions: Encourage improvements and bug fixes through community involvement with pull requests.

This boilerplate not only saves time but also encourages creativity by allowing developers to dive directly into game development.

webpack
Webpack

Webpack is a popular open-source module bundler for JavaScript applications that bundles and optimizes the code and its dependencies for production-ready deployment. It can also be used to transform other types of assets such as CSS, images, and fonts.