DEV Community

Daniel Kalevski
Daniel Kalevski

Posted on

Setting up a project to build Air Console game using PhaserJS

A few months ago, I started my journey developing a game for “AirConsole” using PhaserJS. At the beginning I spent a lot of time setting up my project. That inspired me to develop a command line interface (CLI) tool for simplifying the development environment for Air Console games using web technologies.

What is Air Console ?

Air console is a platform focused on delivering local multiplayer experience using your TV or PC as a game console and your smartphones as controllers / gamepads. Actually the development of the game is divided in two parts, the first part is developing the actual game for the main screen and as a second part is developing the application used by gamepads (smartphones) to interact with the game.

Prerequisites

  • JavaScript knowledge
  • NodeJS (v14.0 or higher) installed on your local machine
  • Code Editor

Project setup

As a first step we need to install the tool that I’ve created for this purpose. The tool is a npm executable published to npmjs.org.

npm install -g airconsole-cli
Enter fullscreen mode Exit fullscreen mode

After successful installation, you can create your project by executing:

airconsole init my-airconsole-game
Enter fullscreen mode Exit fullscreen mode

The previous command should create a directory named my-airconsole-game.

Next steps are installing the dependencies using,

npm install  // (inside project directory "my-airconsole-game")
Enter fullscreen mode Exit fullscreen mode

command inside the “my-airconsole-game” directory and running the project by executing:

npm start
Enter fullscreen mode Exit fullscreen mode

I hope this is helpful.

Top comments (0)