DEV Community

Daniel Kalevski
Daniel Kalevski

Posted on

4 2

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.

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay