Tudo Feito
This commit is contained in:
@@ -6,7 +6,6 @@ import java.io.*;
|
||||
|
||||
public class TIC_Projeto_Final {
|
||||
|
||||
// Jogador
|
||||
static String nome;
|
||||
static int vida = 100;
|
||||
static int fome = 100;
|
||||
@@ -16,23 +15,19 @@ public class TIC_Projeto_Final {
|
||||
static int nivel = 1;
|
||||
static int dias = 1;
|
||||
|
||||
// Inventário
|
||||
static int comida = 2;
|
||||
static int garrafas = 2;
|
||||
static int kits = 1;
|
||||
|
||||
// Armas
|
||||
static String arma = "Paus";
|
||||
static int danoArma = 10;
|
||||
|
||||
// Armadura
|
||||
static String armadura = "Nenhuma";
|
||||
static int defesa = 0;
|
||||
|
||||
static Scanner ler = new Scanner(System.in);
|
||||
static Random random = new Random();
|
||||
|
||||
// ===================== ESTADO =====================
|
||||
public static void estado() {
|
||||
System.out.println("\n===== ESTADO =====");
|
||||
System.out.println("Jogador: " + nome);
|
||||
@@ -54,7 +49,6 @@ public class TIC_Projeto_Final {
|
||||
System.out.println("Kits: " + kits);
|
||||
}
|
||||
|
||||
// ===================== XP =====================
|
||||
public static void ganharXP(int valor) {
|
||||
xp += valor;
|
||||
|
||||
@@ -65,7 +59,6 @@ public class TIC_Projeto_Final {
|
||||
}
|
||||
}
|
||||
|
||||
// ===================== TEMPO =====================
|
||||
public static void passarTempo() {
|
||||
dias++;
|
||||
fome -= 5;
|
||||
@@ -84,7 +77,6 @@ public class TIC_Projeto_Final {
|
||||
}
|
||||
}
|
||||
|
||||
// ===================== EVENTOS =====================
|
||||
public static void eventoAleatorio() {
|
||||
|
||||
int evento = random.nextInt(10);
|
||||
@@ -112,7 +104,6 @@ public class TIC_Projeto_Final {
|
||||
}
|
||||
}
|
||||
|
||||
// ===================== PROCURAR =====================
|
||||
public static void procurar() {
|
||||
|
||||
int sorte = random.nextInt(4);
|
||||
@@ -139,7 +130,6 @@ public class TIC_Projeto_Final {
|
||||
passarTempo();
|
||||
}
|
||||
|
||||
// ===================== LUTA =====================
|
||||
public static void lutar() {
|
||||
|
||||
String[] inimigos = {"Lobo", "Urso", "Javali"};
|
||||
@@ -174,7 +164,6 @@ public class TIC_Projeto_Final {
|
||||
passarTempo();
|
||||
}
|
||||
|
||||
// ===================== CONSUMO =====================
|
||||
public static void comer() {
|
||||
if (comida > 0) {
|
||||
comida--;
|
||||
@@ -205,7 +194,6 @@ public class TIC_Projeto_Final {
|
||||
}
|
||||
}
|
||||
|
||||
// ===================== LOJA =====================
|
||||
public static void loja() {
|
||||
|
||||
System.out.println("\n===== LOJA =====");
|
||||
@@ -277,7 +265,6 @@ public class TIC_Projeto_Final {
|
||||
}
|
||||
}
|
||||
|
||||
// ===================== MAIN =====================
|
||||
public static void main(String[] args) {
|
||||
|
||||
System.out.println("🏕️ JOGO DE SOBREVIVÊNCIA");
|
||||
|
||||
Reference in New Issue
Block a user