Share your repls and programming experiences

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

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

-BobTheTomatoPie

Commentshotnewtop
DynamicSquid (1882)

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

adding a save feature would also be cool :)

BobTheTomatoPie (952)

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

DynamicSquid (1882)

@BobTheTomatoPie this game distracts me from actual work

BobTheTomatoPie (952)

thank you, that was the purpose of it @DynamicSquid

DynamicSquid (1882)

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

BobTheTomatoPie (952)

invite me to a repl and ill show you @DynamicSquid

awesome10 (184)

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 (952)

they are useful for learning html, js, and css
@awesome10

awesome10 (184)

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

DynamicSquid (1882)

@awesome10 I should also join the trend...

BobTheTomatoPie (952)

I would love to see a squid clicker @DynamicSquid

awesome10 (184)

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

Bookie0 (2529)

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

Viper2211 (51)

NICE!

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.

setInterval(b1,<speed>)

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

setInterval(()=>{cos=1;b2();},1)

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

setInterval(()=>{cos1=1;b3();},1)

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

setInterval(()=>{cos2=1;b4();},1)

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

setInterval(()=>{cos3=1;b5();},1)

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

setInterval(()=>{cos4=1;b6();},1)

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

setInterval(()=>{cos5=1;b7();},1)

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

setInterval(()=>{cos6=1;b8();},1)

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

setInterval(()=>{cos7=1;b9();},1)

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

setInterval(()=>{cos8=1;b10();},1)

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

setInterval(()=>{cos9=1;b11();},1)

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 (68)

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 (952)

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

RayvelArjoon (68)

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