Skip to content

defold/examples

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
November 30, 2023 14:15
December 4, 2023 17:49
June 23, 2021 11:10
December 4, 2023 17:49

Defold examples

This repository includes the Defold examples application used in the examples section on https://defold.com/examples/basics/simple_move/

Adding more examples

Examples are grouped by category, for instance "physics", "sprite" or "collection". Each group of examples has a folder in /examples. Here's how to add a new example named "foobar" to the "sprite" category:

  • Create a folder named foobar in examples/sprite
  • Create examples/sprite/foobar/foobar.collection with your example
  • Create examples/sprite/foobar/foobar.md with example documentation. The file must start with:
---
title: Foobar
brief: This example shows how to use foobar.
scripts: foobar.script
---
  • List any scripts your example uses in the scripts field of the file header
  • Add a new collection proxy in examples/_main/loader.go
  • Add a new entry in examples/_main/menu.gui_script

About

Defold examples for the Learn section of the site

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published