Hacker News new | ask | show | jobs
by patrickscoleman 654 days ago
So fun, thanks for sharing! I'm feeling some nostalgia. The first game I ever made was also an ant defense game. You use a magnifying glass to protect your tomato at a picnic. As you get to later levels, the ants get bigger and the sun starts to set, so you have to buy upgrades.

I wrote it in Java in high school back in 2006. The site I hosted it on in high school is no longer live. I put it on Replit a few years back, but I no longer have access to the account, so I had to fork the repl to play it again. Things change. Hold on to your code. It's fun to revisit old programs!

If you want to give it a try: https://replit.com/@PatrickAtReplit/Ant-Killer-Game.

1 comments

Thank you so much for trying it out!

I tried to fork and play your game but having very little experience with Java, I couldn't run it! Do I need to download it and run locally?

Here's how to play: https://www.loom.com/share/14f8d6d097ef41319285cb6dd404a109?...

Java is a bit of a pain. It's a compiled language, so if you make any edits to the .java files you'll need to run a command in the shell to generate a new .jar file and then run that.

Enjoy!