Giter Club home page Giter Club logo

text-fighter's Issues

NPC's

Read info from a datebase
Make NPC file using Random Name Generator

File Save/Load system error

Hi,my name is Mathew.

To reproduce:

  1. create a new user profile
  2. exit the program
  3. use the user name to enter the save game
  4. Cannot find save file.

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 :)

Selling items, being able to find/buy mutliple items (For example, 2 pistols), dual wield?

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!"

Cheats.java errors fix

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

Add constant arraylist access modifiers

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.

Loans

  • Access loans from the bank
  • Starting loan of 100 coins, and goes up 100 by each level
  • Needs to pay back full loan + (10%:EASY)(15%:HARD) interest

*Until loan is fully paid back, player cannot deposit coins into the bank

Add cheat to get rid of loan

Better save files

Make better names for save files, and make able to have multiple save files.
[USERNAME].tfsav

Food

Heals player
Maybe able to make gardens by buying land and seeds, go fishing, etc

Fix crashing issue when entering an invalid number on certain menus

The equip weapon menu,
the equip armour menu.
the eat food menu,
the equip weapon menu.

For example, the equip weapon menu:

  1. Fists
  2. Baseball Bat
  3. Knife
  4. Pipe
  5. Pistol
  6. Smg
  7. Shotgun
  8. Rifle
  9. 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.