Text Attack!

I am currently developing a text game called Text Attack! (that’s the name)
Here is a screenshot (from eclipse :P)

It is currently in stage Alpha 0.1.1!
Here are some things I am going to do:
Working on: 5 Going to do: 4 Done: 0Not happening: 0
More enemies
Being able to battle more than once.
Boss battle
Saving
Medals for defeating enemies
Checking if it works.
Accounting to your suggestions
General debugging
Special attacks
EDIT: New jar that works!!
My jar is here.
It’s still pretty bad though.
UPDATE ALPHA 0.1.1!
Added two special attacks!

Couldn’t find main class error

That happens with me too. :-*

There is no “Main-Class” entry in META-INF/MANIFEST.MF

That’s probably because Eclipse did not provide one damn you Eclipse! Ill try to get one.

O and :smiley: please post a screenshot (it is in the WIP rules :slight_smile: )

If I can get a manifest file on my project. :stuck_out_tongue:

Couldn’t you just create a folder in your .jar called META-INF and put a file called MANIFEST.MF inside with the text


Manifest-Version: 1.0
Main-Class: textPack.Battle

Or just add in Main-Class: textPack.Battle into the existing one?

EDIT: Nope

IT WORKS!! ;D

It seems to hang whenever I try to attack the goblin. :slight_smile:

Nothing happens when I enter a or d when I first play.

You should still have a GUI component, even if it’s a text game (use JTextArea/JTextField or whatnot)
running from the command line is pretty clusmy.

Same.

It may be his first game, so the GUI component could be done when the game is completed instead of when it is in development.

Yeah, but basic GUI is very easy, very few lines of code.

masteryoom,

  • Your code is not formatted. If you are using Eclipse simply enter ctrl + shift + f to format/organize your code.
  • I feel like you are using way too many while loops, it makes me nervous.

// From your code.

// You need to use .equals with Strings like so.
if (input.equals("a")) {
	EnDamage = 50;
	key = 1;
}
// This if statement will never be executed.
if (input == "d") {
	PlayerDamage = (PlayerDamage - 25);
	key = 2;
}
// At this point, even with the modified code, the game will either
// exit or run forever, the logic needs adjusting.
/*
 * This is how I would set up the following code, notice
 * variable names start with a lower case letter.
 */
if (input.equals("a") || input.equals("A")) {
	enDamage = 50;
	key = 1;
} else if (input.equals("d") || input.equals("D")) {
	playerDamage -= 25;
	key = 2;
}

When I have more time I can try and help point you in the right direction for your game logic. Otherwise keep at it, text games are great first games to make, good luck.

EDIT: Both Screem’s and actual’s posts are better ways of comparing the input (I find actual’s the most effective though).

I’m changing it. ;D

I’ve changed it! :smiley: and I’ve tested it! ;D All other problems you have had should be fine.

[quote]Congratulations! You beat the goblin! Press enter to end the game
[/quote]
Now when your game is famous, I can be like, “I played Text Attack before it was cool. I was actually the FIRST person to beat it!”

Now when your game is famous, I can be like, “I played Text Attack before it was cool. I was actually the FIRST person to beat it!”
[/quote]
That is a very realistic assumption ;D