https://github.com/defold/examples
Defold examples for the Learn section of the site
https://github.com/defold/examples
hacktoberfest
Last synced: 2 months ago
JSON representation
Defold examples for the Learn section of the site
- Host: GitHub
- URL: https://github.com/defold/examples
- Owner: defold
- License: cc0-1.0
- Created: 2017-06-14T07:23:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2026-04-23T13:24:55.000Z (3 months ago)
- Last Synced: 2026-04-23T19:05:22.211Z (3 months ago)
- Topics: hacktoberfest
- Language: Lua
- Homepage: https://www.defold.com/examples/
- Size: 44.2 MB
- Stars: 125
- Watchers: 23
- Forks: 31
- Open Issues: 42
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Defold examples
This repository includes the Defold examples application used in the examples section on https://defold.com/examples
## 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`