-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBaseBuilding.py
117 lines (104 loc) · 3.55 KB
/
BaseBuilding.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
116
117
# testing
import Items
import main
import inventory
class Defences:
def __init__(self):
pass
class Power:
def __init__(self):
pass
class Objects:
def __init__(self):
pass
class Layout:
def __init__(self):
self.defult_layout('''
y xxxxxxxxxxx y
x x
x x
x x
x x
y xxxxxxxxxxx y
''')
# Test of what base building should look like
#
# Start with basic perimeter to define where you can build shit
#
# y xxxxxxxxxxx y
# x x
# x x
# x x
# x x
# y xxxxxxxxxxx y
#
# Then use resources collected in looting to build walls, doors and other defensive entities
# Walls represented by another text based message e.g [ { | \ / . ! : -
# -----------
# y xxxxxxxxxxx y
# |x x|
# |x x|
# |x x|
# |x x|
# |y xxxxxxxxxxx y|
# -------------
#
# As you continue to expand you will attract attention of zombies represented with a text based entity
# If you get to the point where your base is cramped and you need to expand your perimeter
# you will need to clear zombies from that area and make flatten the area out, this will cost ammo and building
# supplies. once you do that, the base perimeter will be expanded in one of two ways
# the first way will simply increase the area of the perimeter on all sides E.G
#
# y xxxxxxxxxxxxxxxxxxxxxx y
# x x
# x x
# x x
# x x
# x x
# x x
# x x
# y xxxxxxxxxxxxxxxxxxxxxx y
#
# The second way will make a new perimeter the same size of the first next to the current one on the side chosen
#
# y xxxxxxxxxxx y
# x x
# x x
# x x
# x x
# y xxxxxxxxxxx y
# x x
# x x
# x x
# x x
# y xxxxxxxxxxx y
#
# Any walls that were put in place before this will be kept as interior walls
#
#
# As we continue building this we will need to make is easy to replicate this code wise,
# I'm think we use the method but with white space double that in each direction plus the space between them
# This way we can display the zombies and surrounding areas in a basic form until we implement a UI and visuals
#
#
# #
# #
# #
#
# y xxxxxxxxxxx y
# # x x #
# x x #
# # x x #
# # x x #
# y xxxxxxxxxxx y
#
# #
# #
# #
#
#
# If possible, we can update the base in 2-3 second ticks that allow for zeds to be moved and for the player to
# update the base further.
# Now one challenge that will happen is that whenever something is entered the position of the already enter data will
# shift, somewhere in the code we will have to account for this to keep the shape / alignment of the base intact
#