Skip to content

Commit

Permalink
Split into multiple projects (#68)
Browse files Browse the repository at this point in the history
* Initial split

* Removed gitignore

* Update game.project

* Update game.project

* Removed unused files

* Cleanup

* Cleaned fireworks

* Cleaned easing functions

* Cleaned random_images

* Removed easing.atlas

* Removed kenney proto kit

* Removed kenney train kit

* removed text12.font

* Cleaned text24.font

* removed text64.font

* Cleaned alien+logo

* Cleaned tilesource

* Delete clean.sh

* Removed chained flipbook

* Renamed factory spawn

* removed gui text input

* Added category

* Removed confetti and fireworks from atlas

* Renamed markdown

* Removed ref to text64

* Cleanup

* Fix orbit_camera.script

* Fixed missing unlit material

* Update env.cubemap

* Update get_set_texture.gui

* Added missing music

* Update game.project

* Fixed broken links

* Update controller.script

* Changed folder structure

* Removed category
  • Loading branch information
britzl authored Feb 10, 2025
1 parent d1c3660 commit 1636b3a
Show file tree
Hide file tree
Showing 7,757 changed files with 23,395 additions and 3,948 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Defold examples

This repository includes the Defold examples application used in the examples section on https://defold.com/examples
This repository includes the Defold examples 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:
Expand Down
73 changes: 73 additions & 0 deletions animation/basic_tween/.editor_settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
:bundle {
:android {
:architecture {
:arm64-android true
:armv7-android false
}
:format "apk"
:install false
:keystore "/Users/bjornritzl/projects/certificates-defold/android/defold.keystore"
:keystore-pass "/Users/bjornritzl/projects/certificates-defold/android/defold.keystore.pass.txt"
:launch false
}
:build-report true
:contentless false
:debug-symbols true
:html5 {
:architecture {
:js-web false
:wasm-web true
}
}
:ios {
:architecture {
:arm64-ios true
:x86_64-ios false
}
:code-signing-identity "Apple Development: Bjoern Ritzl (5HXMA7P46L)"
:install false
:launch false
:provisioning-profile "/Users/bjornritzl/projects/certificates-defold/apple/BR_Foobar.mobileprovision"
:sign true
}
:liveupdate false
:macos {
:architecture {
:arm64-macos true
:x86_64-macos true
}
}
:texture-compression "enabled"
:variant "release"
:windows {
:platform "x86_64-win32"
}
}
:code {
:find {
:case-sensitive true
:term "self.jump_timer"
}
}
:open-assets {
:term "game.p"
}
:search-in-files {
:exts "*.script, *.lua"
:include-libraries false
:term "ads_wrapper"
}
:workflow {
:recent-files [
[
"/assets/bee.atlas"
:scene
]
[
"/assets/sprites.atlas"
:scene
]
]
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
93 changes: 93 additions & 0 deletions animation/basic_tween/assets/sprites.atlas
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
images {
image: "/assets/images/spinner.png"
}
images {
image: "/assets/images/elementStone019.png"
}
images {
image: "/assets/images/elementStone023.png"
}
images {
image: "/assets/images/bunny1_ready.png"
}
images {
image: "/assets/images/bunny2_ready.png"
}
images {
image: "/assets/images/carrot.png"
}
images {
image: "/assets/images/red_button12.png"
}
images {
image: "/assets/images/flame.png"
}
images {
image: "/assets/images/smoke.png"
}
images {
image: "/assets/images/rainbow.png"
}
images {
image: "/assets/images/enemyFloating_1.png"
}
images {
image: "/assets/images/logo-color.png"
}
images {
image: "/assets/images/shipGreen_manned.png"
}
images {
image: "/assets/images/elementMetal001.png"
}
images {
image: "/assets/images/plank_slice.png"
}
images {
image: "/assets/images/hitman1_machine.png"
}
images {
image: "/assets/images/green_button03.png"
}
images {
image: "/assets/images/playerShip1_red.png"
}
images {
image: "/assets/images/enemyBlack1.png"
}
images {
image: "/assets/images/lighting_blue.png"
}
images {
image: "/assets/images/particle_brown.png"
}
images {
image: "/assets/images/crosshair010.png"
}
images {
image: "/assets/images/bar_round_large_grey.png"
}
images {
image: "/assets/images/bar_round_large_red.png"
}
animations {
id: "coin"
images {
image: "/assets/images/coin/dcoin_1.png"
}
images {
image: "/assets/images/coin/dcoin_2.png"
}
images {
image: "/assets/images/coin/dcoin_3.png"
}
images {
image: "/assets/images/coin/dcoin_4.png"
}
images {
image: "/assets/images/coin/dcoin_5.png"
}
playback: PLAYBACK_LOOP_FORWARD
fps: 8
}
extrude_borders: 2
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ embedded_instances {
id: "bunny"
data: "components {\n"
" id: \"script\"\n"
" component: \"/examples/animation/basic_tween/bunny.script\"\n"
" component: \"/example/bunny.script\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions animation/basic_tween/example/example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
tags: animation
title: Tween animation
brief: This example shows how to tween animate the position of a game object.
scripts: bunny.script
---

![tween](basic_tween.png)
65 changes: 65 additions & 0 deletions animation/basic_tween/game.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[project]
title = Defold-examples
version = 0.1

[bootstrap]
main_collection = /example/basic_tween.collectionc

[input]
game_binding = /input/game.input_bindingc
repeat_interval = 0.05

[display]
width = 720
height = 720
high_dpi = 1

[physics]
scale = 0.02
gravity_y = -500.0

[script]
shared_state = 1

[collection_proxy]
max_count = 256

[label]
subpixels = 1

[sprite]
subpixels = 1
max_count = 32765

[windows]
iap_provider =

[android]
package = com.defold.examples

[ios]
bundle_identifier = com.defold.examples

[osx]
bundle_identifier = com.defold.examples

[html5]
show_fullscreen_button = 0
show_made_with_defold = 0
scale_mode = no_scale
heap_size = 64

[graphics]
texture_profiles = /all.texture_profiles

[collection]
max_instances = 32765

[particle_fx]
max_emitter_count = 1024

[render]
clear_color_blue = 1.0
clear_color_green = 1.0
clear_color_red = 1.0

File renamed without changes.
18 changes: 18 additions & 0 deletions animation/chained_tween/all.texture_profiles
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
path_settings {
path: "**"
profile: "Default"
}
profiles {
name: "Default"
platforms {
os: OS_ID_GENERIC
formats {
format: TEXTURE_FORMAT_RGBA
compression_level: BEST
compression_type: COMPRESSION_TYPE_DEFAULT
}
mipmaps: false
max_texture_size: 0
premultiply_alpha: true
}
}
Binary file not shown.
Binary file added animation/chained_tween/assets/SourceSansPro.ttf
Binary file not shown.
Binary file added animation/chained_tween/assets/images/carrot.png
Binary file added animation/chained_tween/assets/images/close.png
Binary file added animation/chained_tween/assets/images/flame.png
Binary file added animation/chained_tween/assets/images/grid.png
Binary file added animation/chained_tween/assets/images/header.png
Binary file added animation/chained_tween/assets/images/rainbow.png
Binary file added animation/chained_tween/assets/images/smoke.png
Binary file added animation/chained_tween/assets/images/spinner.png
93 changes: 93 additions & 0 deletions animation/chained_tween/assets/sprites.atlas
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
images {
image: "/assets/images/spinner.png"
}
images {
image: "/assets/images/elementStone019.png"
}
images {
image: "/assets/images/elementStone023.png"
}
images {
image: "/assets/images/bunny1_ready.png"
}
images {
image: "/assets/images/bunny2_ready.png"
}
images {
image: "/assets/images/carrot.png"
}
images {
image: "/assets/images/red_button12.png"
}
images {
image: "/assets/images/flame.png"
}
images {
image: "/assets/images/smoke.png"
}
images {
image: "/assets/images/rainbow.png"
}
images {
image: "/assets/images/enemyFloating_1.png"
}
images {
image: "/assets/images/logo-color.png"
}
images {
image: "/assets/images/shipGreen_manned.png"
}
images {
image: "/assets/images/elementMetal001.png"
}
images {
image: "/assets/images/plank_slice.png"
}
images {
image: "/assets/images/hitman1_machine.png"
}
images {
image: "/assets/images/green_button03.png"
}
images {
image: "/assets/images/playerShip1_red.png"
}
images {
image: "/assets/images/enemyBlack1.png"
}
images {
image: "/assets/images/lighting_blue.png"
}
images {
image: "/assets/images/particle_brown.png"
}
images {
image: "/assets/images/crosshair010.png"
}
images {
image: "/assets/images/bar_round_large_grey.png"
}
images {
image: "/assets/images/bar_round_large_red.png"
}
animations {
id: "coin"
images {
image: "/assets/images/coin/dcoin_1.png"
}
images {
image: "/assets/images/coin/dcoin_2.png"
}
images {
image: "/assets/images/coin/dcoin_3.png"
}
images {
image: "/assets/images/coin/dcoin_4.png"
}
images {
image: "/assets/images/coin/dcoin_5.png"
}
playback: PLAYBACK_LOOP_FORWARD
fps: 8
}
extrude_borders: 2
5 changes: 5 additions & 0 deletions animation/chained_tween/assets/text48.font
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
font: "/assets/SourceSansPro-Semibold.ttf"
material: "/builtins/fonts/font.material"
size: 48
outline_alpha: 0.0
outline_width: 0.0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ embedded_instances {
id: "bunny"
data: "components {\n"
" id: \"script\"\n"
" component: \"/examples/animation/chained_tween/bunny.script\"\n"
" component: \"/example/bunny.script\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
Expand Down
8 changes: 8 additions & 0 deletions animation/chained_tween/example/example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
tags: animation
title: Tween animations chain
brief: This example shows how to chain two tween animations of the position of a game object. In addition, the scale and tint is animated separately.
scripts: bunny.script
---

![tween](chained_tween.png)
Loading

0 comments on commit 1636b3a

Please sign in to comment.