Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
adding a new demo of the engine
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Nov 16, 2016
1 parent 72369dc commit 0188c50
Show file tree
Hide file tree
Showing 27 changed files with 2,576 additions and 602 deletions.
Binary file added src/audio/back.wav
Binary file not shown.
Binary file added src/audio/barkbark.wav
Binary file not shown.
Binary file added src/audio/confirm.wav
Binary file not shown.
Binary file added src/audio/menuOn.wav
Binary file not shown.
Binary file added src/audio/questionBox.wav
Binary file not shown.
Binary file added src/audio/selectionClick.wav
Binary file not shown.
Binary file added src/audio/showText.wav
Binary file not shown.
Binary file added src/audio/startGame.wav
Binary file not shown.
Binary file added src/audio/wind1.wav
Binary file not shown.
308 changes: 204 additions & 104 deletions src/descriptors/charas.json
Original file line number Diff line number Diff line change
@@ -1,123 +1,223 @@

{
"Charas": {
"sack": {
"movements": [],
"properties": {
"pushable": false,
"nocollision": 0
"Charas":
{
"bear":
{
"actions":
{
"list":
[["varPlusOne","test"],
["IF","var:test;>=;3"],
["showText","Are you alright sir?"],
["questionBox","Yes;Not really..."],
["IF","ans:;==;Yes"],
["showText","Good! Yes is very good!"],
["ELSE",""],
["showText","Perhaps a fight will cheer you up!"],
["battle","bear"],
["END",""],
["ELSE",""],
["showText","spinning spinning"],
["END",""]],
"type": [ 1, 0]
},
"actions": {
"type": [0, 1],
"list": [
["addItem", "potion"],
["showText", "found a potion!"],
["charAutoDelete", ""]
]
},
"charaset": "sack"
"charaset": "bear",
"movements":
[["face","up"],
["face","left"],
["face","down"],
["face","right"]],
"properties":
{
"nocollision": 1,
"pushable": false
}
},
"bunny": {
"movements": [
["move", "follow"],
["move", "follow"],
["move", "random"],
["move", "random"],
["move", "follow"]
],
"properties": {
"pushable": false,
"nocollision": 0
},
"actions": {
"type": [0, 1],
"list": [
["battle", "bunny"],
["charAutoDelete", ""]
]
"bunny_forest":
{
"actions":
{
"list":
[["battle","bunny;bunny;bunny"],
["charAutoDelete",""],
["waitCycle","2"],
["changeTile","33;layer2;nocollision;keep;40;26;Forest"],
["waitCycle","2"],
["changeTile","33;layer2;nocollision;keep;40;27;Forest"],
["waitCycle","2"],
["changeTile","33;layer2;nocollision;keep;40;28;Forest"],
["waitCycle","2"],
["changeTile","33;layer2;nocollision;keep;40;29;Forest"],
["waitCycle","2"],
["changeTile","33;layer2;nocollision;keep;40;30;Forest"],
["waitCycle","2"],
["changeTile","33;layer2;nocollision;keep;33;28;Forest"],
["waitCycle","2"],
["changeTile","33;layer2;nocollision;keep;34;28;Forest"],
["waitCycle","2"],
["changeTile","33;layer2;nocollision;keep;34;29;Forest"]],
"type": [ 0, 1]
},
"charaset": "bunny"
"charaset": "bunny",
"movements":
[["move","follow"],
["move","follow"],
["move","random"],
["move","random"],
["move","follow"],
["move","random"]],
"properties":
{
"nocollision": false,
"pushable": false
}
},
"bunny2": {
"movements": [
["move", "random"]
],
"properties": {
"pushable": false,
"nocollision": 0

"bunny":
{
"actions":
{
"list":
[["battle","bunny"],
["charAutoDelete",""]],
"type": [ 0, 1]
},
"actions": {
"type": [0, 1],
"list": [
["battle", "bunny;bunny;bunny"],
["charAutoDelete", ""]
]
"charaset": "bunny",
"movements":
[["move","follow"],
["move","follow"],
["move","random"],
["move","random"],
["move","follow"]],
"properties":
{
"nocollision": false,
"pushable": false
}
},
"bunny2":
{
"actions":
{
"list":
[["battle","bunny;bunny"],
["charAutoDelete",""]],
"type": [ 0, 1]
},
"charaset": "bunny"
"charaset": "bunny",
"movements":
[["move","follow"],
["move","random"],
["move","random"],
["move","follow"]],
"properties":
{
"nocollision": false,
"pushable": false
}
},
"skeleton1": {
"movements": [
["face", "right"]
],
"properties": {
"pushable": false,
"nocollision": 1
"bunny3":
{
"actions":
{
"list":
[["battle","bunny;bunny;bunny"],
["charAutoDelete",""]],
"type": [ 0, 1, 0, 0, 0]
},
"actions": {
"type": [1, 0],
"list": [
["showText", "..."],
["rain", "start"]
]
"charaset": "bunny",
"movements":
[["move","random"]],
"properties":
{
"nocollision": false,
"pushable": false
}
},
"rock":
{
"actions":
{
"list": [],
"type": [ 1, 0, 0, 0, 0]
},
"charaset": "skeleton"
"charaset": "rock",
"movements": [],
"properties":
{
"nocollision": true,
"pushable": true
}
},
"skeleton2": {
"movements": [
["face", "left"]
],
"properties": {
"pushable": false,
"nocollision": 1
"sack":
{
"actions":
{
"list":
[["addItem","potion"],
["showText","found a potion!"],
["charAutoDelete",""]],
"type": [ 0, 1]
},
"actions": {
"type": [1, 0],
"list": [
["showText", "!!!"],
["rain", "stop"]
]
"charaset": "sack",
"movements": [],
"properties":
{
"nocollision": 0,
"pushable": false
}
},
"skeleton1":
{
"actions":
{
"list":
[["showText","..."],
["rain","start"]],
"type": [ 1, 0, 0, 0, 0]
},
"charaset": "skeleton"
"charaset": "skeleton",
"movements":
[["face","right"]],
"properties":
{
"nocollision": true,
"pushable": false
}
},
"bear": {
"movements": [
["face", "up"],
["face", "left"],
["face", "down"],
["face", "right"]
],
"properties": {
"pushable": false,
"nocollision": 1
"skeleton2":
{
"actions":
{
"list":
[["showText","!!!"],
["rain","stop"]],
"type": [ 1, 0]
},
"actions": {
"type": [1, 0],
"list": [
["varPlusOne", "test"],
["IF", "var:test;>=;3"],
["showText", "Are you alright sir?"],
["questionBox", "Yes;Not really..."],
["IF", "ans:;==;Yes"],
["showText", "Good! Yes is very good!"],
["ELSE", ""],
["showText", "Perhaps a fight will cheer you up!"],
["battle", "bear"],
["END", ""],
["ELSE", ""],
["showText", "spinning spinning"],
["END", ""]
]
"charaset": "skeleton",
"movements":
[["face","left"]],
"properties":
{
"nocollision": 1,
"pushable": false
}
},
"spider":
{
"actions":
{
"list": [],
"type": [ 1, 0, 0, 0, 0]
},
"charaset": "bear"
"charaset": "spider",
"movements": [],
"properties":
{
"nocollision": false,
"pushable": true
}
}
}
}
Loading

0 comments on commit 0188c50

Please sign in to comment.