Skip to content
TowerDefense
LucasBuonopane
LucasBuonopane
Made with
Java
Java
Published on Jan 29, 2022
  • #java
  • #game
  • #towerdefense
  • #fun
  • #TextGame

This is a Tower Defense-style game based entirely in text. You can choose from a variety of towers to help defend against the onslaught of enemy snowmen and spiders.

The enemies will march along the map as your towers attack them. If they can make their way from their spawn all the way to your Home, then you will lose lives. If your lives drop to 0, then you lose.

How far can you make it?

You will be asked quite often to input a number or 2 numbers separated by a comma. When doing this, be sure to not make an error. If you type something incorrectly in certain instances, it may cause an error.

227comments
CodingBoi12345
CodingBoi12345
3 months ago

I broke it by accident by typing 696969 :/

Nicholas110
Nicholas110
3 months ago

made to wave 10

kamalhasan
kamalhasan
3 months ago

image

Hazel-
Hazel-
4 months ago

It would be really nice if you added a description for the Guardian tower.

Collateralbird
Collateralbird
4 months ago

Sorry, I spammed and broke ur game.

h7777
h7777
4 months ago

You made a mistake:

image

LucasLauchland
LucasLauchland
4 months ago

round 10

fenixbotted
fenixbotted
4 months ago

round 54. took me about 3 hours to do that since i didn't want to skip whole rounds and was managing time well i guess

123fdsa
123fdsa
4 months ago

it's good but you should make the loading time faster overall great game!

RexKenison
RexKenison
4 months ago

whats the url for fullscreen

MonkeyFace123
MonkeyFace123
4 months ago

Me no know how do this

GARFIELD1
GARFIELD1
4 months ago

I broke the game. image

Aaron-Shalom
Aaron-Shalom
5 months ago

just follow the instructions

EvelynLynard
EvelynLynard
5 months ago

so... how do I play? Im a newbie

SeifFazary
SeifFazary
5 months ago

DUDE your game IS AWESOME!!! I am addicted, ive been playing now for 45min and i can't stop!!! really good job man!!

Acemator
Acemator
5 months ago

its a good game, but can you make it a bit faster to load?

LukeWalker35927
LukeWalker35927
5 months ago

cool game

c00lkiddjonnow
c00lkiddjonnow
5 months ago

It took long for it to load! but cool it took 1 hour for me

SchooI
SchooI
5 months ago

wave 6 with one tower

KarlShrestha
KarlShrestha
5 months ago

Simple and fun.

imkthecoolguy
imkthecoolguy
5 months ago

uhh i made it to wave 0 im pro B)

imkthecoolguy
imkthecoolguy
5 months ago

lol

BrucesWorld
BrucesWorld
5 months ago

Wow

EJPINUGU
EJPINUGU
5 months ago

hi uwu

W1THRD-tempalt
W1THRD-tempalt
5 months ago

fun :D

switch2021
switch2021
5 months ago

how do you play

TheE69
TheE69
5 months ago

it's ok

allisonurban
allisonurban
5 months ago

cool but i cant see the towers

Nedis232
Nedis232
5 months ago

This is trash

VadimGlushakov
VadimGlushakov
5 months ago

nice

ElamHenderson
ElamHenderson
5 months ago

i maid it 10 waves using only 2 towers

ElamHenderson
ElamHenderson
5 months ago

you have to fullscreen your own screen

ElamHenderson
ElamHenderson
5 months ago

I keeps saying "game over" :(

ElamHenderson
ElamHenderson
5 months ago

It wouldnt work for me

adityasingh119
adityasingh119
5 months ago

Nice

Textcrafter101
Textcrafter101
5 months ago

I got to wave 7 with only 1 bomb tower

123fdsa
123fdsa
5 months ago

its pretty good

Pobtamnamo
Pobtamnamo
5 months ago

I like it

A8S8
A8S8
5 months ago

Uh... something rather strange happened... I tried to play the game in "mini mode" and after I made my choice the game said "GAME OVER" lol.

WillemWilford
WillemWilford
5 months ago

I hope some day I will be able to code something like this, I'm very impressed that you did made it all from text.

AntonAgapov
AntonAgapov
5 months ago

Good work

HaritsA
HaritsA
5 months ago

Pretty fun even though its made entirely out of text and codes

RogerSeagull
RogerSeagull
5 months ago

very fun and not confusing

GoodnessDavid
GoodnessDavid
5 months ago
JoshuaNan
JoshuaNan
5 months ago

Third try. Got image

CovertCodes
CovertCodes
5 months ago

I tried to spawn a tower. But it just took all my money and didn't spawn anything

Ritheek
Ritheek
5 months ago

confusing, but good work!

CodinToTheMax
CodinToTheMax
5 months ago

noice

Stockriderj
Stockriderj
5 months ago

Confusing, but cool!

KennyLi3
KennyLi3
5 months ago

among us

JamesWaters2
JamesWaters2
5 months ago

bruh

ThunderBolt2
ThunderBolt2
5 months ago

Yhere it was kinda confusing though

jasper200940
jasper200940
5 months ago

wave 19.

JoshuaNan
JoshuaNan
5 months ago

wave 10, I never know how to play

Vhoyd
Vhoyd
5 months ago

Fun game, terminal games are my jam. 28 waves in before Replit decided to randomly refresh. I noticed a few things that I don't think were intended:

Archer towers, when maxed, said they were level 1.

Team towers never went above level 2 though that might be my fault for incorrect placement.

Instead of option 15 in the tower buying menu saying "read about Sticky Tower" it says "read about Team Tower" again.

Option number 18 to display the guardian tower's info is never shown, but it was still accessible.

The guardian tower's ability cooldown kept saying it was in 0 seconds left at tier 1 until it was upgraded.

I played on medium size, if that information is useful to fixing these.

LaneMartin
LaneMartin
5 months ago

Cool game! Has a retro feel to it. (Background music plays.)

ThamanReganti
ThamanReganti
5 months ago

I made it to wave 25

ShaanSenthil
ShaanSenthil
5 months ago

wave 15

AydnPippen
AydnPippen
5 months ago

every time you play in "BIG MODE" it say "game over" can you feel this bug?

thetman
thetman
5 months ago

round 25, pretty fun.

IRcodez
IRcodez
5 months ago

vefbzxcsfxcdb image

RogueBulbasaur
RogueBulbasaur
5 months ago

This doesnt make sense can you see your towers?

25revillh
25revillh
5 months ago

wave 23

GARFIELD1
GARFIELD1
5 months ago

How can you make it fullscreen?

OWEN5179980
OWEN5179980
5 months ago

wave 9 :(

The-Friendly-We
The-Friendly-We
5 months ago

Wave 16, definitely a fun game. Almost made me forget I was in class, lol.

OliverKopcik
OliverKopcik
5 months ago

yes

JuanKim
JuanKim
5 months ago

Wave 19... A very fun game i must say

Zihoudai
Zihoudai
5 months ago

yay i got farrrrr

Zihoudai
Zihoudai
5 months ago

AMAZIIINNNGGGGGG

Teddytang
Teddytang
5 months ago

woah

TextCoder
TextCoder
5 months ago

this is siiick

AliLikesJuice
AliLikesJuice
5 months ago

i made it to wave 8 and bought the guardian tower but then i lost so i guess maybe guardian tower isn't the best(which prob isn't the case cuz u can only have 1. i prob used it wrong lmao, cuz i didn't read the instructions or descriptions.)? or im just horrible at this game. well anyway great game.

Leshui
Leshui
5 months ago

woah for a text game that is amazing

CjNelson
CjNelson
5 months ago

no enemies

Technomancer111
Technomancer111
5 months ago

It's not doing anything

MasonFraserReal
MasonFraserReal
5 months ago

I think I found a bug. The second I said start it said GAME OVER!

Whippingdot
Whippingdot
5 months ago

Mindustry is an op tower defence...just saying

This however, is amazing for being a text game!

ADNOG
ADNOG
5 months ago

Wave 20, Awesome Game

heythere12
heythere12
5 months ago

wave 0 wth idk how to play this haha

terrencewilson
terrencewilson
5 months ago

Wave 19. That was cool.

ColoredHue
ColoredHue
5 months ago

bruh, i only made it to wave 8 (I suck at this) :(

Pranesh-REPL
Pranesh-REPL
5 months ago

i'm proud to be the eight thousandth person to run this

ggjh
ggjh
5 months ago

the script is broken at most

JBloves27
JBloves27
5 months ago

You should probably add a clearing function to clear the console :)

coltonjolly
coltonjolly
5 months ago

boooo

sojs
sojs
5 months ago

ahhh good old java. Havent seen a good project done in this language on repl for like 3 years

LucasBuonopane
LucasBuonopane
shared an update5 months ago
Fixed that error, sorry guysPost

I was trying to fix another error, and then apparently just forgot that there's an i in "int". Should be fixed now. Hopefully error free.

If any of you can still find any other errors, let me know!

Qwertyboi12
Qwertyboi12
5 months ago

throws an error

hujicklufu
hujicklufu
5 months ago

very sad error

glitchish
glitchish
5 months ago

@LucasBuonopane
error:

javac -classpath .:/run_dir/junit-4.12.jar:target/dependency/* -d . Coordinate.java Enemy.java GameManager.java Main.java Map.java Player.java Tower.java Map.java:524: error: cannot find symbol nt x = Integer.parseInt(input.substring(0,input.indexOf(","))); ^ symbol: class nt location: class Map 1 error exit status 1
TextCoder
TextCoder
5 months ago

I got this error:

javac -classpath .:/run_dir/junit-4.12.jar:target/dependency/* -d . Coordinate.java Enemy.java GameManager.java Main.java Map.java Player.java Tower.java Map.java:524: error: cannot find symbol nt x = Integer.parseInt(input.substring(0,input.indexOf(","))); ^ symbol: class nt location: class Map 1 error exit status 1

But i'm sure it was a cool game :)

classifiedclas1
classifiedclas1
5 months ago

kidz

BluWilliamWilli
BluWilliamWilli
5 months ago

An amazing game! I got to wave 30, but then the guardian tower charged and i set a coordinate. After that I could not write anymore:( Anyways, really cool game!

pretha809
pretha809
5 months ago

I love it!!!!!!!!!!!!!!!

jonathankimchi
jonathankimchi
5 months ago

I have no idea what is going on XDD

LoganKinzler
LoganKinzler
5 months ago

Made it to wave 23, very fun, amazing work.

KennethRivera
KennethRivera
5 months ago

early wow

LucasBuonopane
LucasBuonopane
shared an update5 months ago
NO MORE ERRORS!Post

I've updated the game in order to deal with the several runtime errors I know a lot of people were getting when entering in coordinates or trying to skip a large amount of time. Thanks for bearing with me, and thanks for all the positive feedback on the project.

I've never really posted any programming project I've made before anywhere, so it's nice to see people are enjoying the game.

I'm planning on a new update with a boss enemy and switching up when different enemies come out to make it more fun. If you have any other gameplay suggestions, let me know.