Sky City Gambler documentation by Markus V. contact: markus.vaananen+skycitygambler (at) gmail.com ****************** Sky City Gambler is a JavaScript browser game where you gamble gold to win more gold. Win the game by amassing 1 million gold, lose by having not enough gold for any gambling. The name "Sky City Gambler" comes from a Warcraft III custom map which features a casino named Sky City. JavaScript source: http://chazu.arkku.net/misc/skycityGambler/skycityGambler.js ****************** Instructions: Hover mouse on the gamble icons for info, click to gamble. Get 1 million gold to win the game. Different gambles have different costs, min bets, return multipliers etc (can be viewed in source js file). You can increase the bet multiplier, max bet multiplier is 5 by default but you can unlock power-ups to increase it: Max bet mutliplier power-ups: -default max bet multiplier is 5 -get 500 gold to increase max bet multiplier to 10 -get 10000 gold to increase max bet multiplier to 20 Win streaks have a chance for random bonus gold encounters. You lose if you don't have gold to bet (the bet odds are generous and it's difficult to actually lose). The last and the most expensive gamble (Trickster Gambling Hut) has more varied outcomes than the others. Game progress is saved to browser localStorage after each gamble, reset progress with reset button (right bottom at the time of writing this). Game progress is loaded from localStorage on page load if save exists (save is created if not). ****************** Credits: The coin, orb, and red glare icons are from "Basic RPG Item Icons (Free)" by yinakoSGA: https://opengameart.org/content/basic-rpg-item-icons-free The leaf and monster face icons are from "Painterly Spell Icons part 3" by J. W. Bjerk: https://opengameart.org/content/painterly-spell-icons-part-3 The gold icon is from "Gold Treasure icons" pack by Clint Bellanger: https://opengameart.org/content/gold-treasure-icons The custom mouse pointer is borrowed (ripped) from League of Legends (old in-game mouse pointer). Code for delayed tooltip is copied from Bill's answer here: https://stackoverflow.com/a/21949357 Forest background public domain image by PWL: https://opengameart.org/content/seamless-hd-landscape-in-parts ****************** change log / version history: 2019-01-22 v1.23 -added unicode emojis -fixed game-breaking bug (playerReady status would not update correctly to True after round) -gamble elements are now fully built dynamically instead of static HTML elements -minor tweaks to gamble element styling -gamble element tooltip is now hidden when clicking to gamble -fixed bug where round would increment on gamble element click even if player couldn't afford it -added background image (credit added to this text file) -fixed bug where bet gold cost elements would multiply after game reset 2018-10-21 v1.22 -fixed bug where cooldown animation would not start rolling right away (tweaked css values): -adjusted stroke-dasharray of .container .cooldown svg.circleFill from 346 to 250 -adjusted stroke-dashoffset of .container .cooldown svg.circleFill.filled from 346 to 250 -save/load feature: -game now saves game progress to broswer localStorage each round -save is loaded on page load (if save exists) -added reset button to reset game progress 2017-10-27 v1.21 -added gold icons -added gold cost to gamble icons -added delay to tooltip visibility (after hovering gamble icon) 2017-10-16 v1.2 -player can now lose the game (if less than 5 gold = no gold to bet) 2017-10-03 v1.1 -added 2 'max bet multiplier' powerups (unlock by amassing gold) -player can now win the game (1 mil gold) -added this text file 2017-09-19 v1 -uploaded v1