-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
91 lines (74 loc) · 2.34 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
'''
DUNGEON MAN 1.5 - 2024 ver
Author: Gustavo Mello
Description: RPG Experimental Backend Game
'''
# Etapas e Funcionalidades do Jogo:
# Etapa 1 - Criar personagem -- OK
# Sistema de Classes -- OK
# Sistema de Atributos -- OK
# Etapa 2 - Lutar contra um inimigo
# Sistema de Spawn de Inimigos -- OK
# Sistema de Luta -> em estágio inicial
# Sistema de especiais
# Sistema de fuga
# Etapa 3 - Subir de nível
# Funcionalidades interativas com Sis. de Atributos
# Multiplicador de dificuldade
# Etapa 4 - Comprar items
# Sistema de loja
# Sistema de economia
# Sistema de troca
#from spawner import Mob
import market
from interations import Interface as Ui
from interations import Game
from interations import Player
#import random
import time
# PARTE 1 --- START!
Ui.play() # -- Dá play no jogo
time.sleep(3)
playername = Player.setPlayerName() # -- recebe nome para personagem
time.sleep(2)
playerclass = Player.setPlayerClass() # -- recebe classe para personagem
jogador = Player(playername, playerclass) # -- inicia personagem
level = 0
inventario = []
time.sleep(1)
jogador.summarize(level, inventario) # -- Resume personagem - Aqui tentei usar os conceitos de POO novos que aprendi, mas prevejo que não vou usar muita coisa
time.sleep(7)
## menu principal ##
def mainMenu():
global level
print('''
--MENU PRINCIPAL--
''')
menuString = f'''
#######[ LEVEL {level} ]########
(SELECIONE UMA AÇÃO):
- (D) DESCER NA DUNGEON
- (L) LOJA DE ITENS
- (S) SAIR DO JOGO
--> '''
time.sleep(2)
playerChoice = input(menuString).upper()
time.sleep(2)
if (playerChoice == "D"):
level = Game.descerDungeon(level, playername, jogador)
elif (playerChoice == "L"):
print('loja ainda não foi construída')
pass
elif (playerChoice == "S"):
print("------------------------------\n*** [encerrando jogo...] ***\n------------------------------")
exit()
# PARTE 2 --- História
# aqui vai ser criado uma função que exibe trechos do texto da história conforme o nível do jogador (Loop)
#
# PARTE 3 --- Pausa / Loja
# aqui vai ser criado uma função onde o jogador pode comprar, trocar e vender itens do seu inventário
#
# PARTE 4 --- Looping de Dungeon
# Aqui vai loop que spawna e cria sistema de combate com mobs
while level < 10:
mainMenu()