Inspiration: Welsh's Fruit Snacks; how can something be so inconsequential and small, yet, be so tasteful and amazing?

What it does: be a small game.

How we built it: 19 hours of hard coding.

Challenges we ran into: keeping ourselves focused.

Accomplishments that we're proud of: being able to put forth something of value.

What we learned: learn to code beforehand and also PICK ONE LANGUAGE TO CODE IN.

What's next for Java-Based Text RPG Demo: a hopeful release of the full game, Ric and Mort's Adventures

BTW, here is the code:

Game Code import java.util.Scanner; import java.util.concurrent.TimeUnit; public class Game { public static void main(String[] args) { Character player = new Character("", 0, 0, "", 1, 0);

  Scanner keyboard = new Scanner(System.in);

  System.out.println("Welcome to Rick and Morty Bootleg Chinese Store Game"); 
  System.out.println("To play just type in what the question asks, or if there are brackets, enter what is in them.");
  System.out.println("When on a text, to move forward press 1");
  System.out.println("What is your name?");
  player.setName(keyboard.nextLine());

  System.out.println("Hello " + player.getName() + ", Are you ready to begin your adventure?");
  System.out.println("[Yes] or [No]");
  String a = keyboard.nextLine();

  if(a.equals("Yes")||a.equals("YES")||a.equals("yes"))         
  {
     options();
     int choice = keyboard.nextInt();
     classchooser(choice, player);
     Chapter1(player);
     Chapter2(player);

  }         
  else
     System.out.println("Game Over (That's what you get for type soem random stuff, if you did)");
     System.exit(0);

}

public static void options() { System.out.println("Good!, Now you must choose your class!"); System.out.println("Meeseeks [1]: "); System.out.println("Attack: 50"); System.out.println("Health: 250"); System.out.println(" "); System.out.println("Gazorpazorpfield [2]: "); System.out.println("Attack: 20"); System.out.println("Health: 400"); System.out.println(" "); System.out.println("Cronenberg [3]: "); System.out.println("Attack: 90"); System.out.println("Health: 150"); System.out.println(" "); System.out.println("Bird Man [4]: "); System.out.println("Attack: 40"); System.out.println("Defense: 300"); System.out.println(" ");

}

public static void classchooser(int choice, Character player)
{
     if(choice == 1);
     {
        player.setClass("Meeseeks");
        player.setAttack(50);
        player.setHealth(250);

     }
     if(choice == 2)
     {
        player.setClass("Gazorpazorpfield");
        player.setAttack(20);
        player.setHealth(400);

     }
     if(choice == 3)
     {
        player.setClass("Cronenberg");
        player.setAttack(90);
        player.setHealth(150);

     }
     if(choice == 4)
     {
        player.setClass("Bird Person");
        player.setAttack(40);
        player.setHealth(300);

     }

}

  public static void Chapter1(Character player)
  {
     Scanner keyboard = new Scanner(System.in);
     System.out.println("You set foot into a universe, where everything is all wack. ");
     String w = keyboard.nextLine();
     System.out.println("Rick: What are you doing in this dimension, it’s full of the Kalaxian crystals and there are tons of enemies. \nI will give you 1 *burp* schmekel if you help me get the crystals. Nevermind you don’t have a choice. \nWhen attacked a prompt will show up, answer yes or no if you want to fight. \nYour stats are displayed as are your attackers, critical hits are also play a role in the altercation. \nMake sure you make the correct decision.");
     w = keyboard.nextLine();
     System.out.println("Morty: RICK! EVIL MORTY FOUND US! YOU HAVE TO FIGHT HIM!");
     w = keyboard.nextLine();
     System.out.println("Rick: " + player.getName() + ", now's your chance to test your skills!");
     w = keyboard.nextLine();
     System.out.println("Would you like to initiate a battle with evil Morty?");
     System.out.println("Initiate the battle (Attack: 10, Health: 200) [yes]");
     w = keyboard.nextLine();
     battle(player, 10, 200);
     System.out.println("Morty: Hey you got the hang of this!");
     w = keyboard.nextLine();
     System.out.println("Rick: All right, All right let's go!");
  }  

  public static void Chapter2(Character player)

  {
     Scanner keyboard = new Scanner(System.in);
     System.out.println("Rick: Hey, it's time for your first mission. \n Ye, sounds good right? \n You see those shiny crystals?");
     String w = keyboard.nextLine();
     System.out.println("Morty: Hey Rick, aren't those kalaxian crystals?");
     w = keyboard.nextLine();
     System.out.println("Rick: Uh... Ignore him " + player.getName() + ", Morty's just trying to scoop the dirt or whatever you kids say...");
     w = keyboard.nextLine();
     System.out.println("Morty: Oh No!, Is that Shleemypants?");
     System.out.println("Rick: You have to go talk to him for us...we've had some isssues with him...?\nI don't care if you beat him up, just get him out of the way?");
     System.out.println("What are you gonna do? [talk] or [fight]");
     if(keyboard.nextLine().equals("fight"))
     {
        System.out.println("Initiate the battle (Attack: 20, Health 220) [yes]");
           battle(player, 20, 220);
     }
     else
        System.out.println("Shleemypants: What do you want here?");
        System.out.println("[1][I'm looking for the kalaxian crystals]\n[2][What are YOU doing here?]\n[3][SuppppP]");
        int num = keyboard.nextInt();
        if(num == 1 || num == 2)
        {
           System.out.println("That's none of your business!, Now answer my question, WHY are you here?");
           System.out.println("[1][I looking to get some Kalaxian crystals]\n[2][How 'bout you answer to my fists?]");
           int choice = keyboard.nextInt();
           if(choice == 1)
           {
              System.out.println("Shleemypants: ");
           }
        }
        else
        {
           System.out.println("Shleemypants: Nothing much");
        }

  }

   public static boolean battle(Character player, int att, int hea)
  { 
     int health = player.getHealth();
     int opphth = hea;
     int i = 1;
     while(player.getHealth() > 0 && opphth > 0)
     {

               opphth = opphth - player.getAttack();
               System.out.println("\nRound " + i);
               System.out.println("Opponent health: " + opphth);
               health = health - att;
               System.out.println("Your health: " + health);
               i++;
     }
     if(health > 0 && health > opphth)
     {
        System.out.println("You win");
        return true;
     }
     else 
     {
        System.out.println("You lose, Game over");
        return false;
  }  }

}

Character Code public class Character { private String name; private int attack; private int health; private String type; private int level; private int numBattles;

public Character(String n, int att, int def, String c, int lvl, int b) { name = n; attack = att; health = def; level = lvl; numBattles = b; }

public String getName() { return name; }

public int getAttack() { return attack; }

public int getHealth() { return health; }

public String getType() { return type; }

public int getLvl() { return level; }

public int getbattles() { return numBattles; }

public void setName(String n) { name = n; }

public void setAttack(int att) { attack = att; }

public void setHealth(int hea) { health = hea; }

public void setClass(String t) { type = t; }

public void setlvl(int lvl) { level = lvl; }

public void upBattles() { numBattles += 1; }

}

Built With

Share this project:

Updates

Submission history