Share your repls and programming experiences

← Back to all posts
A simple idle game
h
nulll (114)

This is something I did pretty quick and it's pretty simple, so if you want to post some feedback in the comments, that would be appreciated!

As I said, it's pretty simple, but for an eleven-year-old, it's pretty good!

Quick update:
I was going to add a patchnotes thing at the start that goes away, but I was cut short by the end of class. I'm currently on a different computer that doesnt have the clipboard saved or the original html, so I can't fix it right now.

Commentshotnewtop
RayvelArjoon (41)

If you take computer studies, computer science, or computer engineering, they teach you a lot of the cooler things you can do with programs. I suggest taking these courses through grade 10, as that's exactlly what I did. It makes creating your own programs and games easy. Those classes even helped me create my own version of "Asteroid". Your still pretty young, but you did a good job!

RayvelArjoon (41)

Add some sort of animation on the side for every time you click something.

nulll (114)

@RayvelArjoon I was thinking of this, but my knowledge of Javascript/CSS isn't at the level that would be needed to have the animation.

Remember, I'm only eleven years old!

Smartystuff (2)

@nulll If you would want to animating a website. I would reccomend learning jquery

ThomasS1 (56)

Nice work!


I can relate... except for the chromebook bit sadly!! Impressive to make this so quickly though!

Yuahde (47)

this really is amazing compared to all my works

Westofer (1)

@nulll wow that is very very good work
I hope I started when I was in school

axelduch (21)

Nice! You might want to use something else than a button for money up, the enter key isn't disabled to get money without releasing it. Either that or catch keyCode 13 and cancel the event, but this way would require to modify some js

nulll (114)

@axelduch

Either that or catch keyCode 13 and cancel the event...

Added that.
EDIT: Wait hold on I broke something.
EDIT: I'm tired and my brain won't let me think of how to fix it. If you want to fork it and send the link, that would be appreciated.

axelduch (21)

@nulll https://repl.it/@axelduch/SimpleIdleGame-1

Just some ids mismatching/missing on the HTML side, being tired never helps!
Also, the problem hasn't disappeared regarding the "enter" key

nulll (114)

@axelduch Thank you and I was able to prevent the enter key by using some jQuery (which I don't really like, but it was the only way I could find to prevent the keypress).

I'm actually starting to use jQuery a bit more.

SkillsPlays (4)

Game kind of plays itself after a minute of playtime, I recommend nerfing the upgrades by a lot.

nulll (114)

@SkillsPlays

I recommend nerfing the upgrades by a lot.

I upped the prices of the upgrades.

RobertFurr (41)

My friend is attempting an idle game, but it will be based on Universal Paperclips

TrocheJacob (4)

i clicked it for 40 min until my teacher catched me

EliseFale (0)

@nulll
The Thing. But I tried it again and then it worked thnx though

johnstev111 (5)

Ermm.... I tricked it, I'm rich. Paste

var i;
for (i = 0; i < 50000; i++) {
  document.getElementById('moneyUp').click();
}

into the console and you are rich... (just some js that clicks the button 5000 times)

nulll (114)

@johnstev111 That is a for() loop, but I usually just use

function spam() {
    moneyUp.click();
    updateMoney();
};
setInterval(spam, 1);
johnstev111 (5)

@nulll They both work, but they still DESTROY the game... another trick is just money = 9.9e+20;.

ckruger097 (0)

This reminds me of an old game that was popular when I was in high school called Cookie Clicker. Simple yet addicting. Good job.

hbelkin1ims (0)

when I try to upgrade my "money per click" it takes too long

nulll (114)

@mewant_taco You can use auto clickers with basically every idle game.

JavasLava (3)

im 12 and I can't even begin to do this, Good Job!

kedwin919 (4)

it takes me so long to get $500 to upgrade....

DevTops (1)

Good job for an eleven year old! I working mainly the cromebooks at school too. I would suggest using css more, and getting better at layout. But still a great jon.

nulll (114)

@DevTops I decided to switch from custom CSS buttons to Bootstrap buttons.

MaddoxReynolds (0)

THis hard can you make easier

nulll (114)

@MaddoxReynolds It's supposed to be hard.

SaptarshiHalder (39)

Open console and type

Then see the magic in the game. I love to crack codes.

OreOlad2 (0)

Could use an animated background.
Good though.

nulll (114)

I just checked in on this after the weekend and holy mother of god I wasn't expecting this to get this big! Thank you so much!

And by the way, there isn't even a class in my school where you actually code (not block coding) in, so most of the knowledge that I have either comes from tutorials or self-learning.

PDanielY (634)

javascript: money = 1000000000000000000000000000000;

nulll (114)

I was going to use jquery, but I just don't really like it.