REW

How To Install Spwn Gd?

Published Aug 29, 2025 4 min read
On this page

Here is a comprehensive guide on how to install SPWN for Geometry Dash.

SPWN is a specialized programming language that simplifies the creation of complex levels by compiling code into in-game objects and triggers, which is ideal for advanced level designers.

***Disclaimer:*The installation instructions provided below are based on the latest releases available at the time of writing. The process may change with new versions. Always check the official SPWN GitHub repository for the most up-to-date information.

Part 1: Download and install SPWN

The installation process varies by operating system.

For Windows users

  1. Go to the SPWN releases page. Navigate to the official SPWN-language repository on GitHub and click the "releases" tab or visit the official SPWN documentation for the download link.
  2. Download the installer. Look for the latest release and download the .msi file, which is the Windows installer package.
  3. Run the installer. Open the downloaded .msi file.
    • Bypass SmartScreen (if needed): If Windows' SmartScreen filter flags the file, click "More info," then "Run anyway".
    • Follow the wizard: Complete the installation by following the on-screen instructions.

For macOS users

  1. Go to the SPWN releases page. Find the latest release on the official SPWN GitHub repository.
  2. Download the installer. Download the .pkg installer file for macOS.
  3. Run the installer. Open the downloaded .pkg file.
    • Bypass unidentified developer warning: If you receive a warning that you cannot open files from unidentified developers, follow these steps:
      • Open System Settings (or System Preferences).
      • Navigate to Security & Privacy.
      • Click "Open Anyway" on the "General" menu.
    • Complete the wizard: Follow the install wizard to finish the installation.

For Linux users

There are multiple methods for installing SPWN on Linux, depending on your distribution.

Generic Installation (for any distro):

  1. Download the compressed file. Get the spwn-x.x.x-x86_64.tar.gz file from the latest release on GitHub.
  2. Extract the archive. Open a terminal and use the command tar -xvf spwn-x.x.x-x86_64.tar.gz.
  3. Add SPWN to your path (optional but recommended): This allows you to run the spwn command from any directory. Open your .bashrc or .zshrc file and add export PATH=$PATH:/path/to/extracted/spwn.

Debian-based (e.g., Ubuntu, Mint):

  1. Download the Debian package. Download the .deb file from the GitHub releases page.
  2. Install with dpkg. Open a terminal in the same directory as the downloaded file. Run sudo dpkg -i spwn_x.x.x-x_amd64.deb.

Arch-based (e.g., Manjaro, Artix):

  1. Download the Arch package. From the GitHub releases page, download the .pkg.tar.zst file.
  2. Install with pacman. Run pacman -U spwn-x.x.x_amd64.pkg.tar.zst in the terminal.
  3. Use an AUR helper (alternative): If an AUR helper like yay is available, run yay -S spwn-bin.

Part 2: Set up your code editor

Using an editor with dedicated language support is highly recommended, although SPWN code can be written in any text editor. Visual Studio Code (VSCode) is a popular choice with excellent support.

For Visual Studio Code (VSCode)

  1. Install the SPWN extension:
    • Open VSCode.
    • Go to the Extensions view by clicking the square icon on the sidebar or pressing Ctrl+Shift+X.
    • Search for "SPWN" and click "Install" on the extension by Spu7Nix.
  2. Verify the extension: Create a new file, save it with the .spwn extension, and check the bottom right of the VSCode window. The language mode should automatically change to SPWN. If it doesn't, click the language mode indicator and select SPWN from the list.

For Sublime Text

  1. Install Package Control: Open the command palette (Ctrl+Shift+P), type "Install Package Control," and press Enter.
  2. Install SPWN Language: Open the command palette again, type "install," select "Package Control: Install Package," and then search for and install "SPWN Language".

Part 3: Compile your first SPWN script

This step connects the code to Geometry Dash by compiling the SPWN script into objects that can be added to a level.

  1. Create a new level in Geometry Dash. Open the game and create a new, empty level. The code will be placed in this level.
  2. Write your SPWN script. In your code editor, create a new file (e.g., test.spwn) and write a simple script. An example from the documentation:``` test = 5g -> test.move(5, 100, 0.25) test.move(10, -10, 2)
    
    
    
    
    
    
    
    
    
    This script creates an object and then applies move triggers to it.
    
  3. Save the file. Ensure the .spwn file is saved in a location accessible from the command line terminal.
  4. Open your terminal.
    • Windows: Use the Command Prompt or PowerShell.
    • macOS/Linux: Use the Terminal application.
  5. Navigate to your script's directory. Use the cd command to change directories. For example: cd C:\Users\YourName\Documents\SPWN_Levels
  6. Run the spwn build command. Execute the command, replacing test.spwn with your filename:``` spwn build test.spwn
  7. Open Geometry Dash. After the command finishes, launch Geometry Dash (it must be closed during the build process). Open the level created. You will see the objects and triggers generated by your SPWN code.

The official SPWN documentation offers more advanced features.

Enjoyed this article? Share it with a friend.