-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add support for loading resources using id from filename if id not …
…present - load resources from existing id (name aliases) - fix audio.play action setting loop to false - add alphanum check to ids - update color parsing code - add name to level - refactor parse utils code - refactor fadeIn/Out - add action to pause level - refactor of level code (WIP) - update gamefiles: - add all quests - add all gossip texts - change texts location - disable keys when showing text/game menu - add label with map name to levels (except town) - update colors (blue/gold) to be closer to original - show different inventory image depending on player class - change save game to not save cel loading (only player) - change code to check if using beta MPQ file and adjust accordingly
- Loading branch information
demo
committed
Nov 2, 2016
1 parent
b98b54f
commit 17cbbda
Showing
597 changed files
with
6,146 additions
and
1,586 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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"levelObject": { | ||
"id": "town", | ||
"name": "Up to town", | ||
"mapPosition": [66, 26], | ||
"texture": "empty", | ||
"textureRect": [32, 32], | ||
"action": { "name": "load", "file": ["level/town/load.json", "positionPlayer", "[25, 31]"] } | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"levelObject": { | ||
"id": "town", | ||
"name": "Up to town", | ||
"mapPosition": [66, 27], | ||
"texture": "empty", | ||
"textureRect": [32, 32], | ||
"action": { "name": "load", "file": ["level/town/load.json", "positionPlayer", "[25, 31]"] } | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"action": { | ||
"name": "if.equal", | ||
"param1": "%showMap%", | ||
"param2": true, | ||
"then": { "name": "drawable.visible", "id": "txtMapLabel", "visible": true }, | ||
"else": { "name": "drawable.visible", "id": "txtMapLabel", "visible": false } | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"action": { | ||
"name": "if.equal", | ||
"param1": "%showMap%", | ||
"param2": true, | ||
"then": { "name": "drawable.visible", "id": "txtMapLabel", "visible": true }, | ||
"else": { "name": "drawable.visible", "id": "txtMapLabel", "visible": false } | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"action": { | ||
"name": "if.equal", | ||
"param1": "%showMap%", | ||
"param2": true, | ||
"then": { "name": "drawable.visible", "id": "txtMapLabel", "visible": true }, | ||
"else": { "name": "drawable.visible", "id": "txtMapLabel", "visible": false } | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"action": { | ||
"name": "if.equal", | ||
"param1": "%showMap%", | ||
"param2": true, | ||
"then": { "name": "drawable.visible", "id": "txtMapLabel", "visible": true }, | ||
"else": { "name": "drawable.visible", "id": "txtMapLabel", "visible": false } | ||
} | ||
} |
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,30 +1,35 @@ | ||
{ | ||
"action": { | ||
"name": "game.fadeOut", | ||
"action": [ | ||
{ "name": "resource.popAll", "id": "currentLevel" }, | ||
{ "name": "load", "file": "loadingScreens/{1}.json" }, | ||
{ "name": "game.fadeIn", | ||
"action": [ | ||
{ "name": "loadingScreen.setProgress", "progress": 35 }, | ||
{ "name": "resource.add", "id": "currentLevel" }, | ||
{ "name": "load", "file": "level/clearPlayers.json" }, | ||
{ "name": "level.clearObjects" }, | ||
{ "name": "load", "file": "level/{2}/level.json" }, | ||
{ "name": "loadingScreen.setProgress", "progress": 70 }, | ||
{ "name": "load", "file": "level/{2}/players.json" }, | ||
{ "name": "loadingScreen.setProgress", "progress": 90 }, | ||
{ "name": "load", "file": "level/{2}/sounds.json" }, | ||
{ "name": "loadingScreen.setProgress", "progress": 100 }, | ||
{ "name": "load", "file": "level/{2}/music.json" }, | ||
{ "name": "if.equal", | ||
"param1": "{3}", | ||
"param2": "positionPlayer", | ||
"then": { "name": "load", "file": ["level/positionPlayer.json", "{4}"] } | ||
}, | ||
{ "name": "load", "file": "level/playOrStopMusic.json" } | ||
] | ||
} | ||
] | ||
} | ||
"action": [ | ||
{ "name": "level.pause", "pause": true }, | ||
{ | ||
"name": "game.fadeOut", | ||
"action": [ | ||
{ "name": "resource.popAll", "id": "currentLevel" }, | ||
{ "name": "load", "file": "loadingScreens/{1}.json" }, | ||
{ "name": "game.fadeIn", | ||
"action": [ | ||
{ "name": "level.pause", "pause": false }, | ||
{ "name": "loadingScreen.setProgress", "progress": 35 }, | ||
{ "name": "resource.add", "id": "currentLevel" }, | ||
{ "name": "load", "file": "level/clearPlayers.json" }, | ||
{ "name": "level.clearObjects" }, | ||
{ "name": "load", "file": "level/{2}/level.json" }, | ||
{ "name": "loadingScreen.setProgress", "progress": 70 }, | ||
{ "name": "load", "file": "level/{2}/players.json" }, | ||
{ "name": "loadingScreen.setProgress", "progress": 90 }, | ||
{ "name": "load", "file": "level/{2}/sounds.json" }, | ||
{ "name": "loadingScreen.setProgress", "progress": 100 }, | ||
{ "name": "load", "file": "level/{2}/music.json" }, | ||
{ "name": "if.equal", | ||
"param1": "{3}", | ||
"param2": "positionPlayer", | ||
"then": { "name": "load", "file": ["level/positionPlayer.json", "{4}"] } | ||
}, | ||
{ "name": "load", "file": "level/playOrStopMusic.json" }, | ||
{ "name": "load", "file": ["level/setMapAction.json", "{2}"] } | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
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
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
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,3 +1,20 @@ | ||
{ | ||
"load": "{1}/loadPlayerCel.json" | ||
"action": { | ||
"name": "switch", | ||
"param": "%charClass%", | ||
"case": [ | ||
{ | ||
"value": "Warrior", | ||
"action": { "name": "load", "file": "level/player/loadWarriorCel.json" } | ||
}, | ||
{ | ||
"value": "Rogue", | ||
"action": { "name": "load", "file": "level/player/loadRogueCel.json" } | ||
}, | ||
{ | ||
"value": "Sorceror", | ||
"action": { "name": "load", "file": "level/player/loadSorcerorCel.json" } | ||
} | ||
] | ||
} | ||
} |
18 changes: 7 additions & 11 deletions
18
...es/level/player/loadRogueCelDefaults.json → gamefiles/level/player/loadRogueCel.json
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"celFile": [ | ||
{ "id": "rlsas", "file": "plrgfx/rogue/rls/rlsas.cl2" }, | ||
{ "id": "rlsat", "file": "plrgfx/rogue/rls/rlsat.cl2" }, | ||
{ "id": "rlsaw", "file": "plrgfx/rogue/rls/rlsaw.cl2" }, | ||
{ "id": "rlsfm", "file": "plrgfx/rogue/rls/rlsfm.cl2" }, | ||
{ "id": "rlsht", "file": "plrgfx/rogue/rls/rlsht.cl2" }, | ||
{ "id": "rlslm", "file": "plrgfx/rogue/rls/rlslm.cl2" }, | ||
{ "id": "rlsqm", "file": "plrgfx/rogue/rls/rlsqm.cl2" }, | ||
{ "id": "rlsst", "file": "plrgfx/rogue/rls/rlsst.cl2" }, | ||
{ "id": "rlswl", "file": "plrgfx/rogue/rls/rlswl.cl2" } | ||
] | ||
} |
Oops, something went wrong.