Skip to main content

Clone a power-up template

note

This is a first release of the custom power-up system - future releases will allow you to make use of templates without having to manually sync code with your project.

To use a power-up template, follow these steps:

Step 1: Install Git

Git is a tool that helps us download files from the internet in a special way. Here's how to get it:

  1. Go to the Git download page
  2. Click the button to download Git for your computer (it should show the right version for Windows, macOS, or Linux).
  3. Follow the instructions to install Git.

Alt Text

Step 2: Open the power-up template on GitHub

  1. On the GitHub page, look for a blue button labeled Code at the top right. Click it.
  2. A little window will pop up. Click on SSH (it's a type of link).
  3. Then, click the icon next to the link to copy it to your clipboard.

Alt Text

Step 4: Clone the template using Git

Now we'll use Git to download (or "clone") the template to your computer:

  1. Open the terminal on your computer (you can search for “Terminal” on Mac/Linux or use Command Prompt on Windows).
  2. Use the cd command to go to the folder where you want to save the template, then press Enter. For example, if you want it on your desktop, type:
cd Desktop
  1. Type the following command to download the template - in this case, we're using the SSH link for the top-down power-ups repository:
git clone git@github.com:FieroStudioLtd/fiero-powerups-topdown.git
  • Don't forget to right-click (or press Ctrl+V on Windows, Cmd+V on macOS) to paste the link you copied earlier!
  • Press Enter, and Git will download the template into a folder.

Step 5: Open the folder in VS Code

  1. Open VS Code on your computer.
  2. Click File > Open Folder (or Open on Mac).
  3. Find the folder you just downloaded and open it in VS Code.

Step 6: Sync with Fiero

  1. In VS Code, press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS) to open the Command Palette.
  2. Type Fiero: choose project and select the command.
  3. Choose or create a project in the Fiero app to sync the template.

And that's it! 🎉 You've now installed and synced your power-up template. You can open the Fiero editor to see your power-up in action. Have fun building your game!