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
After successful installation, you can create your project by executing:
airconsole init my-airconsole-game
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")
command inside the “my-airconsole-game” directory and running the project by executing:
npm start
I hope this is helpful.
Top comments (0)