Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package javaapplication124;
- import java.io.*;
- public class JavaApplication124 {
- public static void main(String[] args) throws IOException {
- BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
- displayStartMenu();
- System.out.print("Enter your choice: ");
- int choice = Integer.parseInt(br.readLine());
- Player player;
- if (choice == 1){
- player = new Player();
- player.hp = 100;
- player.baseAtk = 5;
- player.baseDef = 5;
- player.weapon = "";
- player.armor = "";
- while(true){
- System.out.println("Battle Start Enemy 1");
- }
- }
- else if (choice == 5)
- System.exit (0);
- }
- public static void displayStartMenu (){
- System.out.println("Welcome to Battle System Prototype v1\n"
- + "[1] Start Game\n"
- + "[5] Exit");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement