Skip to content

Commit

Permalink
Added Grimley
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Nov 16, 2023
1 parent 3444cb0 commit 1040f83
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 0 deletions.
Binary file added main/grimley/4951-10031-grimley.riv
Binary file not shown.
82 changes: 82 additions & 0 deletions main/grimley/grimley.collection
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: "grimley"
instances {
id: "back"
prototype: "/main/menu/back.go"
position {
x: 0.0
y: 0.0
z: 0.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
scale_along_z: 0
embedded_instances {
id: "go"
data: "components {\n"
" id: \"grimley\"\n"
" component: \"/main/grimley/grimley.script\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
" property_decls {\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"model\"\n"
" type: \"rivemodel\"\n"
" data: \"scene: \\\"/main/grimley/grimley.rivescene\\\"\\n"
"default_animation: \\\"\\\"\\n"
"material: \\\"/defold-rive/assets/rivemodel.material\\\"\\n"
"blend_mode: BLEND_MODE_ALPHA\\n"
"default_state_machine: \\\"State Machine 1\\\"\\n"
"create_go_bones: false\\n"
"artboard: \\\"Dwarf Panel\\\"\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
""
position {
x: 915.0
y: 521.0
z: 0.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
2 changes: 2 additions & 0 deletions main/grimley/grimley.rivescene
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
scene: "/main/grimley/4951-10031-grimley.riv"
atlas: "/defold-rive/assets/empty.atlas"
6 changes: 6 additions & 0 deletions main/grimley/grimley.script
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function init(self)
--rive.play_anim("#model", "panelAnimateOn", go.PLAYBACK_LOOP_FORWARD)
--rive.play_anim("#model", "cape", go.PLAYBACK_LOOP_FORWARD)
--rive.play_anim("#model", "bodyLoop", go.PLAYBACK_LOOP_FORWARD)

end
18 changes: 18 additions & 0 deletions main/loader.collection
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,24 @@ embedded_instances {
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"grimley\"\n"
" type: \"collectionproxy\"\n"
" data: \"collection: \\\"/main/grimley/grimley.collection\\\"\\n"
"exclude: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
""
position {
x: 0.0
Expand Down
1 change: 1 addition & 0 deletions main/menu/menu.gui_script
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local BUTTONS = {
--{ id = "circleui", text = "Circle UI" },
{ id = "takethis", text = "Take This!" },
{ id = "ac2", text = "AC2" },
{ id = "grimley", text = "Grimley" },
}
local COLUMNS = 3
local WIDTH = 220
Expand Down

0 comments on commit 1040f83

Please sign in to comment.