PerlRPG/Resources/script.gs

27 lines
640 B
JavaScript

__init__:
SetBackground 128 128 128 255
SetAssetOption spritesheet.png Animated
Define LoopCount 0
Define TestVar 1
Show aka spritesheet.png 0 0 1 flip
Show aka2 spritesheet.png 100 0 2 Reverse
Show aka3 spritesheet.png 200 0 3 max_loops=10
AddSayer h "Hermione" aka01.png 200 200 200 255
AddSayer h2 "Topless\ Hermione" aka05.png 255 0 0 255
AddSayer h3 "Stripping\ Hermione" spritesheet.png 255 0 0 255
Jump donothing
donothing:
Wait
LoopCount=LoopCount+1
h "Loop number [LoopCount]"
TestVar=lc("Foo").uc(lc("Foo"))
h2 "TestVar [TestVar]"
TestVar = uc("[TestVar]")
h3 "TestVar2 [TestVar]"
ExitGame
Jump donothing