-
Notifications
You must be signed in to change notification settings - Fork 12
Game Development
zeroclutch edited this page Apr 16, 2020
·
1 revision
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.
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.
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.