Jump to content

? servers

? players online

Coding Cookie Clicker in Web JavaScript Console

Recommended Posts


  • Content Count:  870
  • Joined:  05/15/20
  • Status:  Offline

  On 1/20/2021 at 6:51 PM, TheZZL said:

Welp, the period's over and this is the final product!

 

Code:

  Reveal hidden contents

 

What it looks like:

  Reveal hidden contents

 

The final thing I really wanted to get done was properly getting the auto clickers (cursors) to go around the cookie, and not in the fucked way I had it set up. This is what it looks like since I created the cursor/icons speed based on the previous cursors:

 

2fa24bca68bd2663a1c2a6718e6bde84.png

As you can see, not only does it move out of the orbit of the cookie, but if this was a recording you could see how fast it was moving.

Another issue you can notice is how as I bought more of the Auto Clickers the price moved off the square, that's because all the graphics were put into roughly the right spot, then moved over to where i liked using magic numbers (i know i know).

I found out is if I had created a function to create new upgrades instead of typing it all out manually I would've saved time and 87 lines of code. 

Finally, the last things I would've added if I had proper time management would've been a cookies per second counter, and a button that wipes all your progress but starts you off with some type of bonus.

 

I'll post again sometime later when I get the grade and comments for the project. 

Expand  

can I play it

 


  • Content Count:  3294
  • Joined:  10/28/18
  • Status:  Offline

  On 1/20/2021 at 8:18 PM, Technoblade said:

can I play it

 

Expand  

You can have the code I linked above, but I can't like link you a website to play it on. The real cookie clicker is here


  • Content Count:  2342
  • Joined:  08/31/15
  • Status:  Offline

  On 1/24/2021 at 5:48 PM, Fl1ck said:

Sick game 
 

var str = "I'm a beginner :)"; 
console.log(str); 

Expand  

we haven't used var in years, use const or let

 

bad meme, -2

  • Like 3

Reply to Thread

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...