-
Notifications
You must be signed in to change notification settings - Fork 7
Getting Started
Evoleo edited this page Jan 31, 2022
·
3 revisions
- Node.js (at least v12)
- VS Code (or any other code editor of your choice)
- (optional) MongoDB (for the saving functionality)
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
- 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
tofalse
inconfig.js
, otherwise the server won't run and throw an error
-
[TypeScript] Run
npx tsc
to compile the server (ornpx tsc -w
for watch mode) -
Run
node .
to run the server -
Run the client as a regular GameMaker project
Join my Discord Server!