neelthee-mansion 3.20.21__tar.gz → 3.21.2__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.2}/PKG-INFO +2 -21
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion/Mansion_of_Amnesia.py +65 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion.egg-info/PKG-INFO +3 -22
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion.egg-info/SOURCES.txt +0 -2
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/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.2}/LICENSE.md +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/README.md +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion/Books.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion/Quests.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion/Rooms.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion/__init__.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion/__main__.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion/all_game_utils.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion/creatures.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion/items.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion/utils.py +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion.egg-info/entry_points.txt +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion.egg-info/requires.txt +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/neelthee_mansion.egg-info/top_level.txt +0 -0
- {neelthee_mansion-3.20.21 → neelthee_mansion-3.21.2}/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.2
|
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,70 @@ 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 show_premade_characters():
|
1122
|
+
def select_character():
|
1123
|
+
selected_character = character_listbox.curselection()
|
1124
|
+
if selected_character:
|
1125
|
+
character_info = CHARACTERSLIST[selected_character[0]]
|
1126
|
+
name_entry.insert(0, character_info["name"])
|
1127
|
+
age_entry.insert(0, character_info["age"])
|
1128
|
+
height_entry.insert(0, character_info["height"])
|
1129
|
+
weight_entry.insert(0, character_info["weight(LBs)"])
|
1130
|
+
character_window.destroy()
|
1131
|
+
character_window = tk.Toplevel(root)
|
1132
|
+
character_window.title("Select Premade Character")
|
1133
|
+
character_listbox = tk.Listbox(character_window)
|
1134
|
+
for character in CHARACTERSLIST:
|
1135
|
+
character_info = f"Name: {character['name']}, Age: {character['age']}, Height: {character['height']}, Weight: {character['weight']} LBs"
|
1136
|
+
character_listbox.insert(tk.END, character_info)
|
1137
|
+
character_listbox.pack()
|
1138
|
+
select_button = tk.Button(character_window, text="Select", command=select_character)
|
1139
|
+
select_button.pack()
|
1140
|
+
|
1141
|
+
def custom_character():
|
1142
|
+
name_entry.delete(0, tk.END)
|
1143
|
+
age_entry.delete(0, tk.END)
|
1144
|
+
height_entry.delete(0, tk.END)
|
1145
|
+
weight_entry.delete(0, tk.END)
|
1146
|
+
|
1147
|
+
def exit_game():
|
1148
|
+
root.destroy()
|
1149
|
+
|
1150
|
+
root = tk.Tk()
|
1151
|
+
root.title("Character Creation")
|
1152
|
+
|
1153
|
+
tk.Label(root, text="Name:").pack()
|
1154
|
+
name_entry = tk.Entry(root)
|
1155
|
+
name_entry.pack()
|
1156
|
+
|
1157
|
+
tk.Label(root, text="Age:").pack()
|
1158
|
+
age_entry = tk.Entry(root)
|
1159
|
+
age_entry.pack()
|
1160
|
+
|
1161
|
+
tk.Label(root, text="Height:").pack()
|
1162
|
+
height_entry = tk.Entry(root)
|
1163
|
+
height_entry.pack()
|
1164
|
+
|
1165
|
+
tk.Label(root, text="Weight (LBs):").pack()
|
1166
|
+
weight_entry = tk.Entry(root)
|
1167
|
+
weight_entry.pack()
|
1168
|
+
|
1169
|
+
premade_button = tk.Button(root, text="Premade Character", command=show_premade_characters)
|
1170
|
+
premade_button.pack()
|
1171
|
+
|
1172
|
+
custom_button = tk.Button(root, text="Custom Character", command=custom_character)
|
1173
|
+
custom_button.pack()
|
1174
|
+
|
1175
|
+
exit_button = tk.Button(root, text="Exit Game", command=exit_game)
|
1176
|
+
exit_button.pack()
|
1177
|
+
|
1178
|
+
root.mainloop()
|
1179
|
+
|
1180
|
+
create_main_menu()
|
1181
|
+
|
1117
1182
|
Standord_Player = loop_til_valid_input(
|
1118
1183
|
"Do you want to use a premade character?", "you didn't answer Y or N.", Y_N
|
1119
1184
|
).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.2
|
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
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name="neelthee_mansion",
|
5
|
-
version="3.
|
5
|
+
version="3.21.2", # Update version number for each release
|
6
6
|
packages=find_packages(), # Automatically finds all packages and modules
|
7
7
|
install_requires=[
|
8
8
|
"wheel",
|