Skip to content

Commit

Permalink
Added create atlas example
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Feb 22, 2024
1 parent b905751 commit f03fe5e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions examples/_main/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -1090,3 +1090,21 @@ embedded_components {
w: 1.0
}
}
embedded_components {
id: "resource/create_atlas"
type: "collectionproxy"
data: "collection: \"/examples/resource/create_atlas/create_atlas.collection\"\n"
"exclude: false\n"
""
position {
x: 0.0
y: 0.0
z: 0.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
}
2 changes: 1 addition & 1 deletion examples/_main/menu.gui_script
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function init(self)
self.index["file"] = { "sys_save_load" }
self.index["tilemap"] = { "collisions", "get_set_tile" }
self.index["timer"] = { "repeating_timer", "trigger_timer", "cancel_timer" }
self.index["resource"] = { "modify_atlas" }
self.index["resource"] = { "modify_atlas", "create_atlas" }

local categories = {}
for k,_ in pairs(self.index) do
Expand Down

0 comments on commit f03fe5e

Please sign in to comment.