repl.it
@launcherman08/

Battle World

Python

No description

fork
loading
Files
  • main.py
  • gameN.py
  • saves.txt
  • Packager files
  • poetry.lock
  • pyproject.toml
  • requirements.txt
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
from termcolor import cprint
import time
from random import randint
from os import system, name
import sys
from gameN import game
def clear(): 

	# for windows 
	if name == 'nt': 
		_ = system('cls') 

	# for mac and linux(here, os.name is 'posix') 
	else: 
		_ = system('clear') 

clear()
cprint("Loading....", 'yellow', 'on_grey', attrs=['bold','underline'])
time.sleep(randint(1, 15))
clear()
#Generate Main Menu
cprint("""
                                             
            ***BATTLE WORLD***               
An RPG style game developed by Caleb Marshall
                                             
""", "white", "on_grey", attrs=['bold'])
cprint("1)Start New Game", "green", "on_grey")
cprint("2)Resume Game   ", "magenta", "on_grey")
cprint("3)Quit          ","red", "on_grey")
starting_desc = input("/")
#What happens after menu
if int(starting_desc) == 1:
  game()
if int(starting_desc) == 2:
  print("Resuming game.....")
if int(starting_desc) == 3:
  sys.exit()