Walkthroughs in the WebPlayer App(?) #1281
KVonGit
started this conversation in
Libraries and Code Samples
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
This could definitely be improved, but it seems to work.
I can do it like this:
runWalkthrough('testing')
or this:
runWalkthroughSteps(['l','i','x me','help'])
I was considering ignoring all keypresses and clicks during the walkthrough, but the desktop player doesn't do that. So, meh.
I do need to add:
assert:
,event:
, etc. from WalkthroughRunner.vb (the events will be a piece of cake, but I haven't looked at how assert actually works yet)Also, I think (maybe) Quest's source code could be modified to include
walkthrough
elements like it doesobject
,function
,command
, etc., to make them accessible from within the game. This sounds like more work than it's worth, though. An author could simply create a normal object to use as a walkthrough object before publishing.UPDATE
I added the optional
delay
parameter, but anything under 500 won't work; so, it will default to 500, and it will be set to 500 if anyone tries to make it run faster than that.UPDATE 2
Also added
event:
(which is functional) and a message forassert:
saying the web player can't do that (yet).I've got a feeling I'm overlooking something important. (I always do, haha!)
I've got a feeling
A feeling this code's bad
Oh yeah
Beta Was this translation helpful? Give feedback.
All reactions