Neat PulpScript features

Say Embeds

say “Press the A button!”
say “Press the {embed:tileName} button!”

Arrays

on item_0 do
varName = “The first item!”
end
on item_1 do
varName = “The second item!”
end
listIndex = 1
call “item_{listIndex}”
listIndex = 0
while listIndex<2 do
call “item_{listIndex}”
log “{varName}”
listIndex++
end

Global classes

tell “tileName” to``
call “aFunctionOfThisTile”
end

Parents and Childs

on eventFromParent do
log”hi! I work in both tiles!”
end
on any do
mimic “parentTileName”
end
on eventFromParent do
log”hi! I work in both tiles!”
end
on any do
mimic “parentTileName”
end
on eventFromChild do
log”hi! I work only from the child tiles”
end

Consistent tile start animation

swap “theTileId”
play “theTileId”

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store