hhaslam11 / text-fighter Goto Github PK
View Code? Open in Web Editor NEWA text-based RPG written in Java
License: MIT License
A text-based RPG written in Java
License: MIT License
Use println
instead of print
Read info from a datebase
Make NPC file using Random Name Generator
Harder enemies with progress
Something way cleaner. Current one is a pain to add things to.. (Use XML?)
Just use an enum.
Most weapons do less damage than nothing
Instead of "(Weapon): true/false"
There's virtually none.
Hi,my name is Mathew.
To reproduce:
Solution:
Resource: SaveAndLoad.java
Line: 171
{
path = path.replace(".jar", User.name());
}
-> path = path.replace(".jar","_"+User.name());
Hope it help.
I love this game :)
Bullets only, 10 times more damage, 0.01% chance
Rare drops, sold or collected
Potions, how to get more health, etc.
More legit. Printing a bunch of blank lines is bad coding, and inefficient.
The player should be able to purchase, or find (Currently, finding weapons isn't implemented) more than one of each weapon. (Or body-armor type).
With that, player should also be able to sell items (including first-aid items) for half the price of what its worth.
With multiple weapons would also come with dual wielding, and maybe trading with NPC's? Could be part of quests too. "Find [NPC] a [WEAPON] and bring it back to him!"
Line: 58
{
for(int i = 0; i <= Weapon.arrayWeapon.size(); i++){
}
-> for(int i = 0; i < Weapon.arrayWeapon.size(); i++){
Line: 59
{
Weapon.get().setAmmo(5000, false);
}
-> Weapon.arrayWeapon.get(i).setAmmo(5000, false);
Line:63
{
for(int i = 0; i <= Weapon.arrayWeapon.size(); i++){
}
-> for(int i = 0; i < Weapon.arrayWeapon.size(); i++){
Line: 78
{
case "givemeachallange":
}
-> case "givemeachallenge":
Line:85
First:
import javax.swing.JOptionPane;
Second:
case "suicide":
Ui.popup("You have died! You lost half of your coins. ", "You've died!", JOptionPane.WARNING_MESSAGE);
Coins.set(-(Coins.get() / 2), true);
Stats.kills = 0;
Enemy.get().setHealth(Enemy.get().getHealthMax(), Enemy.get().getHealthMax());
Health.timesDied++;
Stats.timesCheated++;
break;
I like this game
For example, Ach.checkLearning():
for (int i = 0; i < Weapon.arrayWeapon.size(); i++) {
if (!Weapon.arrayWeapon.get(i).viewedAbout()) return;
}
for (int i = 0; i < Enemy.arrayEnemy.size(); i++) {
if (!Enemy.arrayEnemy.get(i).viewedAbout()) return;
}
for (int i = 0; i < Armour.getArmours().size(); i++) {
if (!Armour.getArmours().get(i).getViewed()) return;
}
for (int i = 0; i < Food.arrayFood.size(); i++) {
if (!Food.arrayFood.get(i).viewedAbout()) return;
}
Compare the third for loop (armour) to the rest.
*Until loan is fully paid back, player cannot deposit coins into the bank
Add cheat to get rid of loan
Make better names for save files, and make able to have multiple save files.
[USERNAME].tfsav
Using only one system.out.print call.
To reproduce:
givemeitall
Heals player
Maybe able to make gardens by buying land and seeds, go fishing, etc
Basically potions/powerups
The equip weapon menu,
the equip armour menu.
the eat food menu,
the equip weapon menu.
For example, the equip weapon
menu:
- Fists
- Baseball Bat
- Knife
- Pipe
- Pistol
- Smg
- Shotgun
- Rifle
- Sniper
10
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 9, Size: 9
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at com.hotmail.kalebmarc.textfighter.main.Weapon.choose(Weapon.java:141)
at com.hotmail.kalebmarc.textfighter.main.Game.home(Game.java:282)
at com.hotmail.kalebmarc.textfighter.main.Game.start(Game.java:146)
at com.hotmail.kalebmarc.textfighter.main.Menu.load(Menu.java:29)
at com.hotmail.kalebmarc.textfighter.main.Start.main(Start.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)Process finished with exit code 1
Accuracy, stamina, etc
I forgot to mention these menus in the other Issue .-.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.