anxiety
anxiety copied to clipboard
Debug mode
@ncase By any chance, is there a way of going backwards / fast-forward the dialogue during the game?
How do you debug the dialogue?
Thanks for asking! (And I'll put this info on the README later)
To jump around sections, in the JS console, type Game.goto("name_of_section_id_without_the_pound_sign")
, like Game.goto("act4")
or Game.goto("credits")
.
You can also edit main.js
so it skips the intro scene and goes straight to the chapter you want to test (you'll see some commented-out code where I did the same)
How about just going backwards one step in the dialog? Is that possible by chance?
PS thank you for your work!
@tezzutezzu
Actually I just remembered, @spaciecat made a really cool Debug Mode! Type Game.debug()
into the console, and if you hover over the left sidebar, you'll get a list of all sections. Clicking on a section jump-cuts you to that section (note: it may break because the game expects some code to run in some order)
How about just going backwards one step in the dialog? Is that possible by chance?
Sadly no :( I, too, had to do a lot of refreshing the page (or Game.goto(sectionID)
to an earlier section)
That's super handy. Thanks!