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

 

Link to comment

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...