Skip to content

Commit 253228f

Browse files
committed
Now the real v1.2.1 (missing merge)
2 parents 4f0a7f4 + 641510b commit 253228f

File tree

24 files changed

+1151
-329
lines changed

24 files changed

+1151
-329
lines changed

adventure-test-ink/INK-SRC/test-story.ink

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,19 @@
1-
EXTERNAL cutMode(value)
2-
EXTERNAL goto(actor, target)
3-
EXTERNAL animation(actor, anim, wait)
4-
EXTERNAL setModelProp(prop, value)
5-
EXTERNAL getModelProp(prop)
6-
71
-> init
82

9-
=== function cutMode(value) ===
10-
(CUTMODE {value:true|false})
11-
12-
=== function goto(actor, target) ===
13-
(GOTO {actor} to {target})
14-
15-
=== function animation(actor, anim, wait) ===
16-
(ANIMATION {actor}.{anim} {wait})
17-
18-
=== function setModelProp(prop, value) ===
19-
(SETMODELPROP {prop}={value})
20-
21-
=== function getModelProp(prop) ===
22-
(GETMODELPROP {prop})
23-
24-
253
=== init ===
264

27-
~goto("red", "target")
28-
~animation("green", "stand.left", false)
29-
30-
~setModelProp("currentScene.actors[red].state", "RED COLOR")
31-
32-
Hi! This is a graphic adventure written with Ink! #actor:green
5+
> action: Goto #actor:red #target: target
6+
> action: Animation #animation: green.stand.left #wait:false
337

34-
Can you drive your game and story throught the Ink language? #actor:green
8+
green: Hi! This is a graphic adventure written with Ink!
359

36-
* Yes, I can do everything with Ink.
37-
* I don't think so.
38-
* I know nothing about Ink
10+
green: Can you drive your game and story throught the Ink language?
3911

40-
- Well, you did it! #actor:green
12+
* Yes, I can do everything with Ink. #actor:red
13+
* I don't think so. #actor:red
14+
* I know nothing about Ink #actor:red
4115

42-
The red character state is: {getModelProp("currentScene.actors[red].state")}
16+
- green: Well, you did it!
4317

4418
-> END
4519

adventure-test-ink/INK-SRC/test2.ink

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22

33
=== d1 ===
44

5-
Hi!
6-
How are you?
5+
Hi! #actor:player
6+
How are you? #actor:player
77

88
Fine, thanks! #actor: green
99

1010
Are you hungry? #actor:green
1111

12-
* No[], I don't
12+
* player: No[], I don't.
1313
Ok, let me know when you want some food. #actor:green
14-
* Yes
14+
* Yes #actor:player
1515
Would you like a hamburger? #actor:green
16-
** Yes
16+
** Yes #actor:player
1717
Maybe you are too fat, here you have a banana. #actor:green
18-
** No
18+
** No #actor:player
1919
Well, here you have a banana. #actor:green
2020

21-
- Bye
21+
- Bye #actor:player
2222

2323
-> END

adventure-test-ink/android/assets/BladeEngine.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#Fri Dec 16 14:02:05 CET 2016
1+
#Mon Feb 20 14:10:13 CET 2017
22
roboVMVersion=2.3.0
33
debug=false
44
gdxVersion=1.9.5
5-
auto_hide_texts=false
6-
bladeEngineVersion=1.1.0
5+
auto_hide_texts=true
6+
bladeEngineVersion=1.2.0
77
version=unspecified
88
title=Blade Engine Ink Test
99
ui_mode=two_buttons

adventure-test-ink/android/assets/model/00.chapter.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
bladeEngineVersion: "1.1.0-SNAPSHOT",
2+
bladeEngineVersion: "1.1.2-SNAPSHOT",
33
scenes: {
44
"00": {
55
id: "00",
@@ -64,6 +64,7 @@ scenes: {
6464
initAnimation: "stand.right"
6565
},
6666
scale: 0.3066198,
67+
rot: 0,
6768
tint: {
6869
r: 1,
6970
a: 1
@@ -124,6 +125,7 @@ scenes: {
124125
initAnimation: "stand.right"
125126
},
126127
scale: 0.6267129,
128+
rot: 0,
127129
tint: {
128130
g: 1,
129131
a: 1
@@ -267,6 +269,7 @@ scenes: {
267269
initAnimation: "stand.left"
268270
},
269271
scale: 0.6300766,
272+
rot: 0,
270273
tint: {
271274
g: 1,
272275
a: 1
@@ -335,6 +338,7 @@ scenes: {
335338
initAnimation: "stand.right"
336339
},
337340
scale: 0.6228006,
341+
rot: 0,
338342
tint: null,
339343
depthType: "VECTOR",
340344
bboxFromRenderer: true,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"inkVersion":15,"root":[{"->":"init"},"done",{"cutMode":[{"temp=":"value"},"^(CUTMODE ",["G>","ev",{"VAR?":"value"},"/ev",[{"->":".^.b","c":true},{"b":["^true",{"->":".^.^.^.6"},null]}],[{"->":".^.b"},{"b":["^false",{"->":".^.^.^.6"},null]}],"nop","G<",null],"^)","\n",{"#f":3}],"goto":[{"temp=":"target"},{"temp=":"actor"},"^(GOTO ",["G>","ev",{"VAR?":"actor"},"out","/ev","G<",null],"^ to ",["G>","ev",{"VAR?":"target"},"out","/ev","G<",null],"^)","\n",{"#f":3}],"animation":[{"temp=":"wait"},{"temp=":"anim"},{"temp=":"actor"},"^(ANIMATION ",["G>","ev",{"VAR?":"actor"},"out","/ev","G<",null],"^.",["G>","ev",{"VAR?":"anim"},"out","/ev","G<",null],"^ ",["G>","ev",{"VAR?":"wait"},"out","/ev","G<",null],"^)","\n",{"#f":3}],"setModelProp":[{"temp=":"value"},{"temp=":"prop"},"^(SETMODELPROP ",["G>","ev",{"VAR?":"prop"},"out","/ev","G<",null],"^=",["G>","ev",{"VAR?":"value"},"out","/ev","G<",null],"^)","\n",{"#f":3}],"getModelProp":[{"temp=":"prop"},"^(GETMODELPROP ",["G>","ev",{"VAR?":"prop"},"out","/ev","G<",null],"^)","\n",{"#f":3}],"init":[["ev","str","^red","/str","str","^target","/str",{"x()":"goto","exArgs":2},"pop","/ev","\n","ev","str","^green","/str","str","^stand.left","/str",0,{"x()":"animation","exArgs":3},"pop","/ev","\n","ev","str","^currentScene.actors[red].state","/str","str","^RED COLOR","/str",{"x()":"setModelProp","exArgs":2},"pop","/ev","\n","^Hi! This is a graphic adventure written with Ink! ",{"#":"actor:green"},"\n","^Can you drive your game and story throught the Ink language? ",{"#":"actor:green"},"\n",["ev",{"^->":"init.0.40.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^Yes, I can do everything with Ink.",{"->":"$r","var":true},null],"c":["ev",{"^->":"init.0.40.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"\n",{"->":"init.0.g-0"},{"#f":5}]}],["ev",{"^->":"init.0.41.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^I don't think so.",{"->":"$r","var":true},null],"c":["ev",{"^->":"init.0.41.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"\n",{"->":"init.0.g-0"},{"#f":5}]}],["ev",{"^->":"init.0.42.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^I know nothing about Ink",{"->":"$r","var":true},null],"c":["ev",{"^->":"init.0.42.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"\n",{"->":"init.0.g-0"},{"#f":5}]}],{"g-0":["^Well, you did it! ",{"#":"actor:green"},"\n","^The red character state is: ",["G>","ev","str","^currentScene.actors[red].state","/str",{"x()":"getModelProp","exArgs":1},"out","/ev","G<",null],"\n","end",null]}],{"#f":3}],"#f":3}]}
1+
{"inkVersion":16,"root":[{"->":"init"},"done",{"init":[["^> action: Goto ",{"#":"actor:red"},{"#":"target: target"},"\n","^> action: Animation ",{"#":"animation: green.stand.left"},{"#":"wait:false"},"\n","^green: Hi! This is a graphic adventure written with Ink!","\n","^green: Can you drive your game and story throught the Ink language?","\n",["ev",{"^->":"init.0.12.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^Yes, I can do everything with Ink.",{"#":"actor:red"},{"->":"$r","var":true},null],"c":["ev",{"^->":"init.0.12.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"\n",{"->":"init.0.g-0"},{"#f":7}]}],["ev",{"^->":"init.0.13.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^I don't think so.",{"#":"actor:red"},{"->":"$r","var":true},null],"c":["ev",{"^->":"init.0.13.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"\n",{"->":"init.0.g-0"},{"#f":7}]}],["ev",{"^->":"init.0.14.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^I know nothing about Ink",{"#":"actor:red"},{"->":"$r","var":true},null],"c":["ev",{"^->":"init.0.14.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"\n",{"->":"init.0.g-0"},{"#f":7}]}],{"g-0":["^green: Well, you did it!","\n","end",{"#f":7}]}],{"#f":3}],"#f":3}],"listDefs":{}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"inkVersion":15,"root":[{"->":"d1"},"done",{"d1":[["^Hi!","\n","^How are you?","\n","^Fine, thanks! ",{"#":"actor: green"},"\n","^Are you hungry? ",{"#":"actor:green"},"\n",["ev",{"^->":"d1.0.10.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^No",{"->":"$r","var":true},null],"c":["ev",{"^->":"d1.0.10.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"^, I don't","\n","\n","^Ok, let me know when you want some food. ",{"#":"actor:green"},"\n",{"->":"d1.0.g-0"},{"#f":7}]}],["ev",{"^->":"d1.0.11.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^Yes",{"->":"$r","var":true},null],"c":["ev",{"^->":"d1.0.11.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"\n","^Would you like a hamburger? ",{"#":"actor:green"},"\n",["ev",{"^->":"d1.0.11.c.10.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^Yes",{"->":"$r","var":true},null],"c":["ev",{"^->":"d1.0.11.c.10.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"\n","^Maybe you are too fat, here you have a banana. ",{"#":"actor:green"},"\n",{"->":"d1.0.g-0"},{"#f":7}]}],["ev",{"^->":"d1.0.11.c.11.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^No",{"->":"$r","var":true},null],"c":["ev",{"^->":"d1.0.11.c.11.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"\n","^Well, here you have a banana. ",{"#":"actor:green"},"\n",{"->":"d1.0.g-0"},{"#f":7}]}],{"#f":7}]}],{"g-0":["^Bye","\n","end",{"#f":7}]}],{"#f":3}],"#f":3}]}
1+
{"inkVersion":16,"root":[{"->":"d1"},"done",{"d1":[["^Hi! ",{"#":"actor:player"},"\n","^How are you? ",{"#":"actor:player"},"\n","^Fine, thanks! ",{"#":"actor: green"},"\n","^Are you hungry? ",{"#":"actor:green"},"\n",["ev",{"^->":"d1.0.12.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^player: No",{"->":"$r","var":true},null],"c":["ev",{"^->":"d1.0.12.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"^, I don't.","\n","\n","^Ok, let me know when you want some food. ",{"#":"actor:green"},"\n",{"->":"d1.0.g-0"},{"#f":7}]}],["ev",{"^->":"d1.0.13.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^Yes",{"#":"actor:player"},{"->":"$r","var":true},null],"c":["ev",{"^->":"d1.0.13.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"\n","^Would you like a hamburger? ",{"#":"actor:green"},"\n",["ev",{"^->":"d1.0.13.c.10.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^Yes",{"#":"actor:player"},{"->":"$r","var":true},null],"c":["ev",{"^->":"d1.0.13.c.10.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"\n","^Maybe you are too fat, here you have a banana. ",{"#":"actor:green"},"\n",{"->":"d1.0.g-0"},{"#f":7}]}],["ev",{"^->":"d1.0.13.c.11.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.c","flg":18},{"s":["^No",{"#":"actor:player"},{"->":"$r","var":true},null],"c":["ev",{"^->":"d1.0.13.c.11.c.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.s"},[{"#n":"$r2"}],"\n","^Well, here you have a banana. ",{"#":"actor:green"},"\n",{"->":"d1.0.g-0"},{"#f":7}]}],{"#f":7}]}],{"g-0":["^Bye ",{"#":"actor:player"},"\n","end",{"#f":7}]}],{"#f":3}],"#f":3}],"listDefs":{}}
Loading
Loading
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
pot: false,
3+
paddingX: 2,
4+
paddingY: 2,
5+
duplicatePadding: true,
6+
edgePadding: true,
7+
rotation: false,
8+
minWidth: 16,
9+
minHeight: 16,
10+
maxWidth: 4096,
11+
maxHeight: 4096,
12+
stripWhitespaceX: true,
13+
stripWhitespaceY: true,
14+
alphaThreshold: 0,
15+
filterMin: Linear,
16+
filterMag: Linear,
17+
wrapX: ClampToEdge,
18+
wrapY: ClampToEdge,
19+
format: RGBA8888,
20+
alias: true,
21+
outputFormat: png,
22+
jpegQuality: 0.9,
23+
ignoreBlankImages: true,
24+
fast: false,
25+
debug: false,
26+
}
Loading

0 commit comments

Comments
 (0)