Setup
Requirements
Section titled “Requirements”To use ScaffScript, you’ll need the following:
Game Engines
Section titled “Game Engines”| Name | Version | Supported | Notes |
|---|---|---|---|
| GameMaker | 2.3+ | ✅ | |
| GameMaker | 1.x | ❌ | May work, but not tested |
Text Editor
Section titled “Text Editor”You can use any text editor you want. But it’s heavily recommended to use text editor that supports integrated terminal for better development experience.
JavaScript Runtime
Section titled “JavaScript Runtime”| Name | Version | Supported | Notes |
|---|---|---|---|
| Bun | 1.x | ✅ | Recommended |
| Node.js | 20+ | ✅ | |
| Other JS runtimes | - | ❌ | May work, but not tested |
Installation
Section titled “Installation”To create a new ScaffScript project, you can use bun (recommended), npm, or pnpm:
# make sure you're in your project root directorycd path/to/your/project # path/to/your/project>bun create @scaffscript/project@latestnpm create @scaffscript/project@latestpnpm create @scaffscript/project@latestYou’ll be prompted to answer a few questions to set up your ScaffScript project:
- Project Name, this is the name of your ScaffScript project, not your GameMaker project. Required.
- Package Manager, you can choose between
bun,npm, andpnpm. Default isnpm. - Create GameMaker Project, if you want to create a new GameMaker project for your ScaffScript project. Default is
n. If you choosey, you’ll be prompted to enter:- GameMaker Project Name, your GameMaker project name. Default is the same as your ScaffScript project name.
- GameMaker IDE Version, your used GameMaker IDE version. Required.
- Initialize a Git repository, if you want to initialize a Git repository for your ScaffScript project. Default is
n.
Testing Your Setup
Section titled “Testing Your Setup”Before moving on, let’s make sure everything is set up correctly. Run the following command to test your setup:
bun run helpnpm run helppnpm helpIf you see the help message, congratulations! You’ve successfully set up ScaffScript.