Share your repls and programming experiences

← Back to all posts
The Official Pie Clicker
BobTheTomatoPie (1586)

My HTML,CSS, JS project #2

The code is ugly I know, but Its my second time making something with CSS, HTML, and JS.

Please let me know of any ways to make the code look nicer

The code is long and ugly looking, please let me know how I can fix that.

If you want I will add more buttons

I am open to adding more buttons to make the game last longer


DynamicSquid (4532)

I WANT MO BUTTONSSS!!!!!!!!!!!!!

adding a save feature would also be cool :)

BobTheTomatoPie (1586)

alright, idk how to save but ill add some more buttons some time @DynamicSquid

DynamicSquid (4532)

@BobTheTomatoPie this game distracts me from actual work

BobTheTomatoPie (1586)

thank you, that was the purpose of it @DynamicSquid

DynamicSquid (4532)

@BobTheTomatoPie quick question - how'd you display a js variable in html?

BobTheTomatoPie (1586)

invite me to a repl and ill show you @DynamicSquid

awesome10 (231)

ahh, very interesting. Where can I buy this machine that bakes pies within a second, and can use pies as currency? also why is everyone making clickers?

BobTheTomatoPie (1586)

they are useful for learning html, js, and css

awesome10 (231)

@BobTheTomatoPie oh ok yeah i guess that's true there's buttons and a bunch of js and yeah i get that...

DynamicSquid (4532)

@awesome10 I should also join the trend...

BobTheTomatoPie (1586)

I would love to see a squid clicker @DynamicSquid

awesome10 (231)

@DynamicSquid oh no but what clicker do I do? :(

firefish (877)

I would love to see a squid clicker @DynamicSquid

@BobTheTomatoPie AhAAA! so that's where he got the idea

firefish (877)

@BobTheTomatoPie If i remember correctly I was making my clicker while he was making his

BobTheTomatoPie (1586)

hmm i remember i made mine at the time when they were popular on repl and then told dynamic squid to make one, you may have just been going along with the trend @firefish

firefish (877)

@BobTheTomatoPie I was doing exactly that. Here is the clicker but it's bad so uh yeah

BobTheTomatoPie (1586)

i think ive seen it but ill check it out @firefish

Bookie0 (4987)

Cool! You should add a big tomato as the background image lol! 🍅

Viper2211 (84)


By the way, I've hacked it. Here is the code for hacking all of it!

Click really fast

By the way, it is suggested that you set speed to .01, cause that is the fastest you can go.


Get any amount of pies

pies = <number>

All the other buttons for upgrades

Get lots of Pie Stands, while setting their cost to 1 pie


Get lots of Ovens, while setting their cost to 1 pie


Get lots of Bakeries, while setting their cost to 1 pie


Get lots of Viking Oven, while setting their cost to 1 pie


Get lots of Factory, while setting their cost to 1 pie


Get lots of Fire Pit, while setting their cost to 1 pie


Get lots of Commercial Building, while setting their cost to 1 pie


Get lots of Pie Labratory, while setting their cost to 1 pie


Get lots of Spaceships, while setting their cost to 1 pie


Get lots of Tomato Pie God, while setting their cost to 1 pie


Note: Setting the price to 1 does not make a difference, because you do not pat for the upgrades.

Using all this, i just got to INFINITY.

RayvelArjoon (82)

Consider using a framework for making HTML5 games. I would suggest using either Phaser3 (for making arcade/platformer type games) or using ImpactJS (for those longer top-down kind of games).

BobTheTomatoPie (1586)

okay, thanks for the advice, im more interested in making web pages tho @RayvelArjoon

RayvelArjoon (82)

You have short comments. Add some comments underneath each function that you create so that it's easier to return to later