repl.it
Pygame

No description

fork
loading
Files
  • main.py
  • nohup.out
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#Texto


import random
from time import sleep as s

'''
How to use the classes:

Class of Class

Class of Weapon

Class of Food

Class of Crystal



'''
#Defines a class as in a race in the world
class Class:
  def __init__(self, health, mana, agility, sneak, defense, attack):
    self.t = [health, mana, agility, sneak, defense, attack]


  def add(self, ahealth, amana, aagility, asneak, adefense, aattack):
    self.t[0] = self.t[0] + ahealth
    self.t[1] = self.t[1] + amana
    self.t[2] = self.t[2] + aagility
    self.t[3] = self.t[3] + asneak
    self.t[4] = self.t[4] + adefense
    self.t[5] = self.t[5] + aatack


  def now(self, health, mana, agility, sneak, defense, attack):
    self.n = [health, mana, agility, sneak, defense, attack]



  def damage(self, health, mana, agility, sneak, defense, attack):
    self.n[0] = self.n[0] - health
    self.n[1] = self.n[1] - mana
    self.n[2] = self.n[2] - agility
    self.n[3] = self.n[3] - sneak
    self.n[4] = self.n[4] - defense
    self.n[5] = self.n[5] - attack


#all other classes are stand-ins. The real class doing the work is Class, which takes off health and adds health and does the busywork

class Weapon:
  def __init__(self, damage, mana, disabilitize, pain, strength, poison):

def intro():
  print("Welcome Texto...")
  s(2)
  print("Wake up...")
  s(1.5)
  print("You are our last hope...")
  s(1.5)
  print("...")
  s(1.5)
  print("Texto, wake up!")
  s(1.5)
  print("The world needs a new hero...")
  s(1.5)
  print("Only you can help us...")
  s(1.5)
  print("You are the only one left...")
  s(1.5)
  print("...who can hear me...")
  s(1.5)
  print("...your helper...")
  s(1.5)
  print("...you have become blind...")
  s(1.5)
  print("...because of the great sorcerer...")
  s(1.5)
  print("...who took over this world...")
  s(1.5)
  print("And I am your headset...")
  s(1.5)
  print("...so I can help you...")



commands = {

'help': 1,
'w': 2,
'a': 3,
's': 4,
'd': 5,
'f': 2,
'l': 3,
'b': 4,
'r': 5,
'forward': 2,
'left': 3,
'backward': 4,
'right': 5,
'fight': 6,
'use': 7,
'inventory': 8,
'i': 8,
'take': 9,
'q': 10,
'quit': 10
}


intro()

Fetching token
?