-
-
Notifications
You must be signed in to change notification settings - Fork 484
Level Editor
There are various videos on the internet documenting the use of the built-in level editor. This is a list of some of the useful ones. However, due to the nature of the internet this list is probably incomplete. You're always welcome to add new ones!
- Basic Tutorial by brmbrmcar
- Advanced Tutorial by brmbrmcar
- Basic Tutorial (Part 1/2) by Oliver Buo
- Basic Tutorial (Part 2/2) by Oliver Buo
- Advanced Tutorial (Part 1/2) by Oliver Buo
- Advanced Tutorial (Part 2/2) by Oliver Buo
- Expert Tutorial by Oliver Buo
When you finished creating a level or even more, there is an easy way to share it with the SuperTux community.
You can find them at C:\Users\YOUR-USERNAME\AppData\Roaming\SuperTux\supertux2\levels\YOUR-LEVELSETNAME\
on Windows or /home/YOUR-USERNAME/.local/share/supertux2/levels/YOUR-LEVELSETNAME/
on Linux.
There should be some files called level1.stl, level2.stl and so on, depending on the number of levels you have created. Additionally, there will be a file called worldmap.stwm, if you created a worldmap.
Another file should be called "info" without any file ending. It contains the following code:
(supertux-level-subset
(title (_ "Name that should be displayed"))
(description (_ "A short description"))
(levelset #f)
(hide-from-contribs #f)
)
Property | Description |
---|---|
title |
The name of your add-on that will be displayed to players. This can be translated with a language file. |
description |
A short description about your add-on. Write a short summary. This can be translated with a language file. |
levelset |
Use #f if you created a worldmap and #t if you didn't. |
hide-from-contribs |
If this is set to #t, your levelset won't show up in-game. This should only be used internaly in SuperTux, so just leave it #f . |
An add-on needs an .nfo-file which looks like this:
(supertux-addoninfo
(id "Worldmap-ID")
(version 1)
(type "world")
(title "Your Worldmap Name")
(author "Your Name")
(license "CC-by-sa 4.0")
)
Property | Description |
---|---|
id |
The ID of your worldmap. You are only allowed to use letters, _ (underscore) and - (minus). To avoid having two add-ons with the same ID, call it "yourname_name-of-your-worldmap". The .nfo file should be named after your ID. |
version |
If you updated your worldmap, count up. Only whole numbers are allowed, so don't set it to 1.1 or something. |
type |
Use world or worldmap if you created a worldmap and levelset if you didn't. |
title |
The title of the worldmap. |
author |
Your name/nickname. |
license |
Leave it like this to allow sharing and modification of your worldmap. |
If you just zip it like this, you are already able to share it, but the player has to save it in the supertux2/levels/
directory and unpack it first.
So, create a directory called levels/YOUR-WORLDMAP-ID/
and move the level.stl, worldmap.stwm and the info-file into it (but not the .nfo-file!). Put all graphics in an images/
-directory, all sounds into sounds/
and music into music/
in the same structure SuperTux uses. You can find the original graphics at C:\Program Files\SuperTux\data\images\
(Windows) or /usr/share/supertux2/images/
(Linux). But be careful, as the file locations in the levels must match the directory structure you create.
The file structure should now look like this:
Now the player can simply save this file in supertux2/addons/
and activate it in-game at the "Add-ons" menu by checking the checkbox.
Select the levels-directory, the .nfo-file - and if you added additional content - those directories and compress them as a .zip-file.
Now you can upload your file. We recommend creating a new topic at the Add-ons forum. Describe your worldmap, and add one or two screenshots, depending on the number of levels you created. Then attach your .zip-file to the post. Caution: Files larger than 2MB in size cannot be uploaded there.
Do you still have questions? Or do you experience any problems? Just contact us and ask.
Home
Guidelines
Game Mechanics
Tools
Engine
- Cameras in other games
- Collision
- Configuration File
- Console
- Cutscenes
- Game_Engine
- Lighting
- Map_transformer
- Portables
- SceneGraph
- Scripting
Specifications
Milestones
- Milestone 1 Analysis
- Milestone 2 Design Document
- Milestone 2 Design Document Old
- Milestone 3 Design Document
Building (mostly outdated)
- INSTALL.md
- Building
- Building on macOS
- Building SuperTux
- Building on Windows
- Building with MXE (cross-compile)
Meetings