Skip to content

Instantly share code, notes, and snippets.

@rameshvarun
Last active July 7, 2020 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rameshvarun/3f1e8c86d635e037fd84d2b6a68894a2 to your computer and use it in GitHub Desktop.
Save rameshvarun/3f1e8c86d635e037fd84d2b6a68894a2 to your computer and use it in GitHub Desktop.

How to Play Custom Levels

Marble Mouse can load custom levels that are contained within .glb files. While the game is running, hit F1 and a file dialog should appear. Select the .glb and the game should load the level.

How to Make Custom Levels

Levels can be created in Blender. Check the provided example .blend.

First place your meshes. For each mesh that is collidable, add the custom property collision set to true.

Place two empties - one named Start and another named Goal. The game will use the location of these nodes to determine where the level starts and ends.

Place empties with the custom property coin set to true. Coins will be spawned at these locations.

Once done, you can export using Blender's built-in glTF exporter.

  • Select Format > glTF Binary (.glb)
  • Check Include > Custom Properties
  • Check Geometry > Apply Modifiers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment