neelthee-mansion 3.20.21__tar.gz → 3.21.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/PKG-INFO +2 -21
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion/Mansion_of_Amnesia.py +66 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion.egg-info/PKG-INFO +3 -22
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion.egg-info/SOURCES.txt +0 -2
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/setup.py +1 -1
- neelthee_mansion-3.20.21/neelthee_mansion/Mansion_of_Amnesia-win2.py +0 -1345
- neelthee_mansion-3.20.21/neelthee_mansion/Rooms-win2.py +0 -1937
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/LICENSE.md +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/README.md +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion/Books.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion/Quests.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion/Rooms.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion/__init__.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion/__main__.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion/all_game_utils.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion/creatures.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion/items.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion/utils.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion.egg-info/entry_points.txt +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion.egg-info/requires.txt +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/neelthee_mansion.egg-info/top_level.txt +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.1
|
2
2
|
Name: neelthee_mansion
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.21.1
|
4
4
|
Summary: A text-based adventure game set in Neel-thee’s mansion.
|
5
5
|
Home-page: https://github.com/Flameblade375/neelthee_mansion
|
6
6
|
Author: Alexander.E.F
|
@@ -18,25 +18,6 @@ Classifier: Operating System :: OS Independent
|
|
18
18
|
Requires-Python: >=3.6
|
19
19
|
Description-Content-Type: text/markdown
|
20
20
|
License-File: LICENSE.md
|
21
|
-
Requires-Dist: wheel
|
22
|
-
Requires-Dist: psutil
|
23
|
-
Requires-Dist: playsound
|
24
|
-
Requires-Dist: requests
|
25
|
-
Requires-Dist: keyboard
|
26
|
-
Requires-Dist: pandas
|
27
|
-
Requires-Dist: validators
|
28
|
-
Requires-Dist: dicttoxml
|
29
|
-
Requires-Dist: pytz
|
30
|
-
Dynamic: author
|
31
|
-
Dynamic: author-email
|
32
|
-
Dynamic: classifier
|
33
|
-
Dynamic: description
|
34
|
-
Dynamic: description-content-type
|
35
|
-
Dynamic: home-page
|
36
|
-
Dynamic: license
|
37
|
-
Dynamic: requires-dist
|
38
|
-
Dynamic: requires-python
|
39
|
-
Dynamic: summary
|
40
21
|
|
41
22
|
# Neel-thee's Mansion of Amnesia
|
42
23
|
|
@@ -3,6 +3,7 @@ from .creatures import *
|
|
3
3
|
from .items import *
|
4
4
|
from .Quests import *
|
5
5
|
from .all_game_utils import *
|
6
|
+
import tkinter as tk
|
6
7
|
|
7
8
|
|
8
9
|
GameState = {
|
@@ -1114,6 +1115,71 @@ def handle_guard_action(guard):
|
|
1114
1115
|
def initializer():
|
1115
1116
|
global color_coding, player, CHARACTERSLIST
|
1116
1117
|
df = pd.DataFrame(CHARACTERSLIST)
|
1118
|
+
|
1119
|
+
# A tkinter window that asks these questions, instead of the console.Include a button that says "Exit Game". When the button is clicked, the game exits. Include a button that says "premade character". When the button is clicked, a new window opens that lets you choose one of the premade characters from teh CHARACTERSLIST var. Include a button that says "custom character". When the button is clicked, a new window opens that asks them for a name, age, hight, and waight(LBs).
|
1120
|
+
def create_main_menu():
|
1121
|
+
def exit_game():
|
1122
|
+
root.destroy()
|
1123
|
+
quit()
|
1124
|
+
|
1125
|
+
def premade_character():
|
1126
|
+
def select_character():
|
1127
|
+
selected_character = character_listbox.curselection()
|
1128
|
+
if selected_character:
|
1129
|
+
character_info = CHARACTERSLIST[selected_character[0]]
|
1130
|
+
name_entry.insert(0, character_info["name"])
|
1131
|
+
age_entry.insert(0, character_info["age"])
|
1132
|
+
height_entry.insert(0, character_info["height"])
|
1133
|
+
weight_entry.insert(0, character_info["weight(LBs)"])
|
1134
|
+
character_window.destroy()
|
1135
|
+
|
1136
|
+
character_window = tk.Toplevel(root)
|
1137
|
+
character_window.title("Select Premade Character")
|
1138
|
+
character_listbox = tk.Listbox(character_window)
|
1139
|
+
for character in CHARACTERSLIST:
|
1140
|
+
character_listbox.insert(tk.END, character["name"])
|
1141
|
+
character_listbox.pack()
|
1142
|
+
select_button = tk.Button(character_window, text="Select", command=select_character)
|
1143
|
+
select_button.pack()
|
1144
|
+
|
1145
|
+
def custom_character():
|
1146
|
+
name_entry.delete(0, tk.END)
|
1147
|
+
age_entry.delete(0, tk.END)
|
1148
|
+
height_entry.delete(0, tk.END)
|
1149
|
+
weight_entry.delete(0, tk.END)
|
1150
|
+
|
1151
|
+
root = tk.Tk()
|
1152
|
+
root.title("Character Creation")
|
1153
|
+
|
1154
|
+
tk.Label(root, text="Name:").pack()
|
1155
|
+
name_entry = tk.Entry(root)
|
1156
|
+
name_entry.pack()
|
1157
|
+
|
1158
|
+
tk.Label(root, text="Age:").pack()
|
1159
|
+
age_entry = tk.Entry(root)
|
1160
|
+
age_entry.pack()
|
1161
|
+
|
1162
|
+
tk.Label(root, text="Height:").pack()
|
1163
|
+
height_entry = tk.Entry(root)
|
1164
|
+
height_entry.pack()
|
1165
|
+
|
1166
|
+
tk.Label(root, text="Weight (LBs):").pack()
|
1167
|
+
weight_entry = tk.Entry(root)
|
1168
|
+
weight_entry.pack()
|
1169
|
+
|
1170
|
+
premade_button = tk.Button(root, text="Premade Character", command=premade_character)
|
1171
|
+
premade_button.pack()
|
1172
|
+
|
1173
|
+
custom_button = tk.Button(root, text="Custom Character", command=custom_character)
|
1174
|
+
custom_button.pack()
|
1175
|
+
|
1176
|
+
exit_button = tk.Button(root, text="Exit Game", command=exit_game)
|
1177
|
+
exit_button.pack()
|
1178
|
+
|
1179
|
+
root.mainloop()
|
1180
|
+
|
1181
|
+
create_main_menu()
|
1182
|
+
|
1117
1183
|
Standord_Player = loop_til_valid_input(
|
1118
1184
|
"Do you want to use a premade character?", "you didn't answer Y or N.", Y_N
|
1119
1185
|
).value
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
2
|
-
Name:
|
3
|
-
Version: 3.
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: neelthee-mansion
|
3
|
+
Version: 3.21.1
|
4
4
|
Summary: A text-based adventure game set in Neel-thee’s mansion.
|
5
5
|
Home-page: https://github.com/Flameblade375/neelthee_mansion
|
6
6
|
Author: Alexander.E.F
|
@@ -18,25 +18,6 @@ Classifier: Operating System :: OS Independent
|
|
18
18
|
Requires-Python: >=3.6
|
19
19
|
Description-Content-Type: text/markdown
|
20
20
|
License-File: LICENSE.md
|
21
|
-
Requires-Dist: wheel
|
22
|
-
Requires-Dist: psutil
|
23
|
-
Requires-Dist: playsound
|
24
|
-
Requires-Dist: requests
|
25
|
-
Requires-Dist: keyboard
|
26
|
-
Requires-Dist: pandas
|
27
|
-
Requires-Dist: validators
|
28
|
-
Requires-Dist: dicttoxml
|
29
|
-
Requires-Dist: pytz
|
30
|
-
Dynamic: author
|
31
|
-
Dynamic: author-email
|
32
|
-
Dynamic: classifier
|
33
|
-
Dynamic: description
|
34
|
-
Dynamic: description-content-type
|
35
|
-
Dynamic: home-page
|
36
|
-
Dynamic: license
|
37
|
-
Dynamic: requires-dist
|
38
|
-
Dynamic: requires-python
|
39
|
-
Dynamic: summary
|
40
21
|
|
41
22
|
# Neel-thee's Mansion of Amnesia
|
42
23
|
|
@@ -2,10 +2,8 @@ LICENSE.md
|
|
2
2
|
README.md
|
3
3
|
setup.py
|
4
4
|
neelthee_mansion/Books.py
|
5
|
-
neelthee_mansion/Mansion_of_Amnesia-win2.py
|
6
5
|
neelthee_mansion/Mansion_of_Amnesia.py
|
7
6
|
neelthee_mansion/Quests.py
|
8
|
-
neelthee_mansion/Rooms-win2.py
|
9
7
|
neelthee_mansion/Rooms.py
|
10
8
|
neelthee_mansion/__init__.py
|
11
9
|
neelthee_mansion/__main__.py
|