I’m not sure how to use console to use my game for testing. I need to try the upgrades to see if they work.
What about using the Developer tools in the Webview? The Console is there.
P.S. I love the game!
Yes, but i’m not sure what to run in the console.
You can use
console.log() to print to the Console.
What do you want to use it for?
Run the function that you want to test in the console. Type the exact name of the function and press enter. For example:
Your game has these functions and variables:
buyItem(price): Function to buy an item.
playerScore: Variable to keep track of the player’s score.
To test these in the console, you would:
buyItem(50)and press Enter to simulate buying an item costing 50 points.
playerScore = 1000and press Enter to set the player’s score to 1000.
console.log(playerScore)and press Enter to check the current value of
You can also set breakpoints through your test.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.