-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f53ae3
commit 05c1255
Showing
332 changed files
with
23 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,18 @@ | ||
-- play a model animation unless already playing the animation | ||
local function play_animation(self, animation_id, playback, callback) | ||
if self.animation_id ~= animation_id then | ||
self.animation_id = animation_id | ||
model.play_anim("#model", animation_id, playback, nil, callback) | ||
end | ||
end | ||
|
||
-- play the Idle animation if the player is not moving | ||
local function idle(self) | ||
|
||
end | ||
|
||
-- play the Walk animation | ||
local function walk(self) | ||
|
||
end | ||
|
||
local function attack(self) | ||
|
||
end | ||
|
||
function init(self) | ||
msg.post(".", "acquire_input_focus") | ||
play_animation(self, "T-Pose", go.PLAYBACK_LOOP_FORWARD) | ||
model.play_anim("#model", "T-Pose", go.PLAYBACK_LOOP_FORWARD) | ||
end | ||
|
||
function on_input(self, action_id, action) | ||
if action_id == hash("idle") then | ||
play_animation(self, "Idle", go.PLAYBACK_LOOP_FORWARD) | ||
model.play_anim("#model", "Idle", go.PLAYBACK_LOOP_FORWARD) | ||
elseif action_id == hash("walk") then | ||
play_animation(self, "Walking_A", go.PLAYBACK_LOOP_FORWARD) | ||
model.play_anim("#model", "Walking_A", go.PLAYBACK_LOOP_FORWARD) | ||
elseif action_id == hash("attack") then | ||
play_animation(self, "1H_Melee_Attack_Chop", go.PLAYBACK_LOOP_FORWARD) | ||
model.play_anim("#model", "1H_Melee_Attack_Chop", go.PLAYBACK_LOOP_FORWARD) | ||
elseif action_id == hash("block") then | ||
play_animation(self, "Block", go.PLAYBACK_LOOP_FORWARD) | ||
model.play_anim("#model", "Block", go.PLAYBACK_LOOP_FORWARD) | ||
elseif action_id == hash("cheer") then | ||
play_animation(self, "Cheer", go.PLAYBACK_LOOP_FORWARD) | ||
model.play_anim("#model", "Cheer", go.PLAYBACK_LOOP_FORWARD) | ||
end | ||
end |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"content":[{"name":"game.projectc","size":3976,"pieces":[{"name":"game0.projectc","offset":0}]},{"name":"game.arci","size":1808,"pieces":[{"name":"game0.arci","offset":0}]},{"name":"game.arcd","size":62739,"pieces":[{"name":"game0.arcd","offset":0}]},{"name":"game.dmanifest","size":1983,"pieces":[{"name":"game0.dmanifest","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game0.public.der","offset":0}]}],"total_size":70668} | ||
{"content":[{"name":"game.projectc","size":3976,"pieces":[{"name":"game0.projectc","offset":0}]},{"name":"game.arci","size":1808,"pieces":[{"name":"game0.arci","offset":0}]},{"name":"game.arcd","size":62737,"pieces":[{"name":"game0.arcd","offset":0}]},{"name":"game.dmanifest","size":1983,"pieces":[{"name":"game0.dmanifest","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game0.public.der","offset":0}]}],"total_size":70666} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"content":[{"name":"game.projectc","size":3968,"pieces":[{"name":"game0.projectc","offset":0}]},{"name":"game.arci","size":1488,"pieces":[{"name":"game0.arci","offset":0}]},{"name":"game.arcd","size":31965,"pieces":[{"name":"game0.arcd","offset":0}]},{"name":"game.dmanifest","size":1627,"pieces":[{"name":"game0.dmanifest","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game0.public.der","offset":0}]}],"total_size":39210} | ||
{"content":[{"name":"game.projectc","size":3968,"pieces":[{"name":"game0.projectc","offset":0}]},{"name":"game.arci","size":1488,"pieces":[{"name":"game0.arci","offset":0}]},{"name":"game.arcd","size":31967,"pieces":[{"name":"game0.arcd","offset":0}]},{"name":"game.dmanifest","size":1627,"pieces":[{"name":"game0.dmanifest","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game0.public.der","offset":0}]}],"total_size":39212} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"content":[{"name":"game.projectc","size":3973,"pieces":[{"name":"game0.projectc","offset":0}]},{"name":"game.arci","size":1408,"pieces":[{"name":"game0.arci","offset":0}]},{"name":"game.arcd","size":31061,"pieces":[{"name":"game0.arcd","offset":0}]},{"name":"game.dmanifest","size":1576,"pieces":[{"name":"game0.dmanifest","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game0.public.der","offset":0}]}],"total_size":38180} | ||
{"content":[{"name":"game.projectc","size":3973,"pieces":[{"name":"game0.projectc","offset":0}]},{"name":"game.arci","size":1408,"pieces":[{"name":"game0.arci","offset":0}]},{"name":"game.arcd","size":31063,"pieces":[{"name":"game0.arcd","offset":0}]},{"name":"game.dmanifest","size":1576,"pieces":[{"name":"game0.dmanifest","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game0.public.der","offset":0}]}],"total_size":38182} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"content":[{"name":"game.projectc","size":4007,"pieces":[{"name":"game0.projectc","offset":0}]},{"name":"game.arci","size":3408,"pieces":[{"name":"game0.arci","offset":0}]},{"name":"game.arcd","size":1569158,"pieces":[{"name":"game0.arcd","offset":0}]},{"name":"game.dmanifest","size":3654,"pieces":[{"name":"game0.dmanifest","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game0.public.der","offset":0}]}],"total_size":1580389} | ||
{"content":[{"name":"game.projectc","size":4007,"pieces":[{"name":"game0.projectc","offset":0}]},{"name":"game.arci","size":3408,"pieces":[{"name":"game0.arci","offset":0}]},{"name":"game.arcd","size":1569046,"pieces":[{"name":"game0.arcd","offset":0}]},{"name":"game.dmanifest","size":3654,"pieces":[{"name":"game0.dmanifest","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game0.public.der","offset":0}]}],"total_size":1580277} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"content":[{"name":"game.projectc","size":4014,"pieces":[{"name":"game0.projectc","offset":0}]},{"name":"game.arci","size":2368,"pieces":[{"name":"game0.arci","offset":0}]},{"name":"game.arcd","size":62376,"pieces":[{"name":"game0.arcd","offset":0}]},{"name":"game.dmanifest","size":2574,"pieces":[{"name":"game0.dmanifest","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game0.public.der","offset":0}]}],"total_size":71494} | ||
{"content":[{"name":"game.projectc","size":4014,"pieces":[{"name":"game0.projectc","offset":0}]},{"name":"game.arci","size":2368,"pieces":[{"name":"game0.arci","offset":0}]},{"name":"game.arcd","size":62374,"pieces":[{"name":"game0.arcd","offset":0}]},{"name":"game.dmanifest","size":2574,"pieces":[{"name":"game0.dmanifest","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game0.public.der","offset":0}]}],"total_size":71492} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.