This is my personal favorite feature because, unlike Golden Cookies, you’re guaranteed lots of money, and you don’t have to constantly tap on the giant cookie until the bar is full. Roughly seven golden cookies are dropped during this time, and you get a massive bonus for every golden cookie you tap. Once the bar is complete, the Golden Cookie Shower will drop. To fill this bar, all you have to do is tap the giant cookie on your screen over and over again until the bar is full. With Cookie Clicker, you can buy an unlimited number of upgrades it Allows you to have endless fun, keep evolving as the best player among your friends, and no matter how many games you play, you will never reach the end! Golden CookiesĪt the top of your device’s display, you’ll see a small golden cookie and a golden bar next to it. In most applications, there is a limit to how many upgrades you can buy, and at one point or another, it can get boring when there is nothing else to buy, and there is no longer an end goal. This feature is one that many other tapping applications lack. To make the game more exciting and provide a social aspect, you can connect your Cookie Clicker game to your Facebook account, so you can see all of your friends who play the game and see How many cookies they currently have? Not only does this allow you to see which of your friends play the game, but it gives you the competitive goal of becoming the best player among your friends, and you have as many cookies as possible. document.As mentioned above, there are a huge number of features with the Cookie Clicker application, and we are going to look at some of the most popular and outstanding features that it has to offer below. EventTarget.addEventListener() can be used on document to wait for the DOMContentLoaded event. Properly accessing the DOMīefore accessing DOM elements, it would be wise to wait until the DOM has been loaded. I would recommend abstracting out the code to add elements into separate methods- a template might make that process simpler. Also, the constructor of the Building class is a bit long. The OO code looks like a good start, though for a larger application, some separation of model and view logic may be necessary. Var buildings = document.getElementById("buildings") īakery = new Building("Bakery", 10, 200) įactory = new Building("Factory", 100, 2000) Ĭookie_tesla = new Building("Cookie Tesla", 1000, 20000) Ĭookie_gigant = new Building("Cookie Gigant", 10000, 200000) Var cookies_produced_display = document.getElementById("cookies_produced") Var cookies_display = document.getElementById("cookies") Var altogether_productivity = 0 // counts productivity of buildings except clicker If(okies_produced >= 200000 & cookie_gigant_enabled = 0) If(okies_produced >= 20000 & cookie_tesla_enabled = 0) If(okies_produced >= 2000 & factory_enabled = 0) If(okies_produced >= 200 & bakery_enabled = 0) This.price_display.innerHTML = this.get_price() Ĭookies_produced_display.innerHTML = cookies_produced Return (this.price / 2) * (this.level * this.level + 1) + (this.price / 2) * (this.level + 1)Īltogether_productivity += this.productivity (document.createTextNode("Improvement Price: ")) (document.createTextNode("Cookies per Second: ")) (document.createTextNode(name + " Level: ")) This.button = document.createElement("button") This.price_display.id = this.name + "_price" This.price_display = document.createElement("span") This.productivity_display.id = this.name + "_productivity" This.productivity_display = document.createElement("span") This.level_display.id = this.name + "_level" This.level_display = document.createElement("span") This.area = document.createElement("span") This.productivity_display.innerHTML = this.get_production_value() This.price_display.innerHTML = this.price This.level_display.innerHTML = this.level Return Math.floor(1 + (0.05 * altogether_productivity * (this.level - 1)) + (this.level - 1)) This.productivity_display = document.getElementById("clicker_productivity") Ĭookies_produced += this.get_production_value() This.price_display = document.getElementById("clicker_price")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |