test
This commit is contained in:
parent
8a7baf793f
commit
ba3744aacd
@ -1,7 +1,7 @@
|
|||||||
ENTRY INIT
|
ENTRY INIT
|
||||||
USING filesystem as bin
|
USING filesystem as bin
|
||||||
[INIT]{
|
[INIT]{
|
||||||
size = bin.fileExist("data.dat")
|
size = bin.fileExist("StoryTest/data.dat")
|
||||||
if size!=True then JUMP("CREATEDATA")|JUMP("HASDATA")
|
if size!=True then JUMP("CREATEDATA")|JUMP("HASDATA")
|
||||||
}
|
}
|
||||||
[CREATEDATA]{
|
[CREATEDATA]{
|
||||||
@ -11,11 +11,11 @@ USING filesystem as bin
|
|||||||
file:addBlock(name,16) //Name
|
file:addBlock(name,16) //Name
|
||||||
file:addBlock(100,4) //Money
|
file:addBlock(100,4) //Money
|
||||||
file:addBlock("START",16) //Current Label
|
file:addBlock("START",16) //Current Label
|
||||||
file:tofile("data.dat")
|
file:tofile("StoryTest/data.dat")
|
||||||
JUMP("HASDATA")
|
JUMP("HASDATA")
|
||||||
}
|
}
|
||||||
[HASDATA]{
|
[HASDATA]{
|
||||||
file = bin.load("data.dat")
|
file = bin.load("StoryTest/data.dat")
|
||||||
name = file:getBlock("s",16)
|
name = file:getBlock("s",16)
|
||||||
money = file:getBlock("n",4)
|
money = file:getBlock("n",4)
|
||||||
label = file:getBlock("s",16)
|
label = file:getBlock("s",16)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user