Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Speed up you testing phase! Add this cool feature to you game (if you want)

A topic by ildede created Dec 28, 2023 Views: 104 Replies: 2
Viewing posts 1 to 3
(6 edits) (+1)

Hi there!

I found a simple way to quickly go through all the texts while playing/testing with few simple changes on CRT.js like this



For copy/paste people, the two added lines

document.addEventListener('keydown', (keyEvent) => { if (keyEvent.key === " ") this.printOptions.quickPrintDelay = true }, true);
document.addEventListener('keyup', (keyEvent) => { if (keyEvent.key === " ") this.printOptions.quickPrintDelay = false }, true);

And the one you need to modify

resolve => setTimeout(resolve, this.printOptions.quickPrintDelay ? 5 : ms)

How this should work?

Just keep the spacebar pressed when you want to speed up the text.

(1 edit)

Hi ildede! Cool stuff!

Another way to increase speed testing is to modify this function in the crt.js module:

async sleep(ms){        
     return;      // skip pauses  
     ...  
}
:)

Yes, you're right.
At the beginning, I've tested with a direct return :)

But it feels too quick (all the text appears instantly) if you want to implement it in the game ;)