Collect the Coins! Beware of the Barbarians! Save Yourself by Sticking!
Hello!
Thank you for checking out this game. I hope it is not too hard. Comment if the game has bugs and if you can finish all of the 14 levels. After 14 levels, you will be sent back to the first one.
If you upvote, thank you!
RoyalCoder1234 (35)
I have added the div alert thing and pushed the about stuff into the HTML file. If you can't see it, check line 486 to 505 in the JavaScript file.
RoyalCoder1234 (35)
Thank you for those comments! I will see if I can build something that doesn't stop the whole program.
TANMAYBAGADIA (48)
Yaa use a div for the instructions or use iframes in which u wrote , nice game :)
Nice! Just the alert boxes are way too annoying, please use something else ;)
alert() and prompt() are blocking functions, which means that nobody can do anything until they've clicked OK. I suggest making your own popup which appears at the bottom of the screen and doesn't stop input.
For example, you could do something like
yes @19wintersp
so it would also affect gameplay too, forgot to mention that,
but ig you could make an async alert (i think):
@19wintersp
@Coder100 I think that alert() blocks the entire renderer and event loop, so even async won't work.
yeah darn you alert @19wintersp
this look promising @19wintersp
@Coder100 I think it just uses divs which have
position:fixed;
and some highz-index
value. You could make it so that they appear and flash or something.@19wintersp yeah, im sure i can implement it with more modern features
or maybe royalcoder could just implement this in p5:
strange that he didn't and chose to hurt us
@19wintersp
maybe that's the point...
survive so you don't get annoyed
lol @19wintersp
@Coder100 A good incentive to boost scores ;)
@Coder100 Just cobbled this together Could do with some styling of course.
wow nice @19wintersp
how do you close? @19wintersp
@Coder100 I'm not that good in promises and async functions, but I will see if I can learn it better.
good luck :) @RoyalCoder1234