ncase / anxiety

Creative Commons Zero v1.0 Universal
407 stars 205 forks source link

Debug mode #13

Open tezzutezzu opened 5 years ago

tezzutezzu commented 5 years ago

@ncase By any chance, is there a way of going backwards / fast-forward the dialogue during the game?

How do you debug the dialogue?

ncase commented 5 years ago

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)

tezzutezzu commented 5 years ago

How about just going backwards one step in the dialog? Is that possible by chance?

PS thank you for your work!

ncase commented 5 years ago

@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)

tezzutezzu commented 5 years ago

That's super handy. Thanks!