Skip to content

Getting Started

Evoleo edited this page Jan 31, 2022 · 3 revisions

Prerequisites

  • Node.js (at least v12)
  • VS Code (or any other code editor of your choice)
  • (optional) MongoDB (for the saving functionality)

Installing

1) Download the files Choose one:

  • Run npx create-gmof-app in the terminal [Recommended]
  • (OR) Download and unpack the .zip files from the latest release - one for server and one for client
  • (OR) Download and unpack the .zip files from the Releases/ folder

2) Install the dependencies

  • Navigate to the server folder
  • Run npm i to install everything

Configuring

  • Server configuration can be found in the config.js file
  • Client configuration can be found in the __NetworkingConfig.gml file
  • You can switch between server configurations by appending --env=prod/--env=dev command line arguments when running
  • You can switch between client configurations by clicking the Target icon in top right and selecting a Config there
  • [Important!] if you don't have MongoDB installed locally / you don't need it for your purposes - you have to set db_enabled to false in config.js, otherwise the server won't run and throw an error

Running

  • [TypeScript] Run npx tsc to compile the server (or npx tsc -w for watch mode)

  • Run node . to run the server

  • Run the client as a regular GameMaker project

DONE!

Clone this wiki locally