Skip to content

Game Development

zeroclutch edited this page Apr 16, 2020 · 1 revision

Developing a Game

Hello! If you’re here, you’re braver than most. This is where you can create your own Gamebot game in Node.js. This tutorial expects some knowledge of Node.js and ES6 syntax.

A Brief Rundown

Games are created by extending the Game class. This superclass handles the boring stuff. Adding and kicking players, having people join games, configuring settings, and ending a game. However, designing and building the game is totally in your hands.

Also, any of the Game class’ methods can be overridden for custom functionality.

Creating a game

Defining a class

Every game must extend its parent class Game. It must also be exported, as Gamebot follows a modular system.

const Game = require('./Game.js')

export default class MyGame extends Game { /*...*/ }

More to come.

Clone this wiki locally