Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tgw3ff
2021-SP-CS4096-97-TDG
Commits
e8f9adba
Commit
e8f9adba
authored
May 05, 2021
by
Adam Gausmann
Browse files
Cleanup
parent
a7949d04
Changes
3
Hide whitespace changes
Inline
Side-by-side
CS 4096-97 Top Down Game/OrderManager.gd
View file @
e8f9adba
...
...
@@ -170,7 +170,7 @@ func _ready():
#Add enitites to list
refresh
()
#
tick_loop()
tick_loop
()
return
...
...
CS 4096-97 Top Down Game/src/MapGenerator.gd
View file @
e8f9adba
...
...
@@ -478,11 +478,10 @@ func spawn_chests():
grid
[
spawn
.
y
][
spawn
.
x
]
.
elligible_hole
=
false
# Generates a new map
func
generate_map
(
fill_percent
,
width
,
height
,
mutex
):
func
generate_map
(
fill_percent
,
width
,
height
):
rooms
.
clear
()
enemy_spawns
.
clear
()
print
(
"init"
)
initialize_grid
(
fill_percent
,
width
,
height
)
for
i
in
range
(
0
,
3
):
...
...
CS 4096-97 Top Down Game/src/Tilemap.gd
View file @
e8f9adba
...
...
@@ -262,7 +262,7 @@ func _update_map_inner(userdata):
if
line
!=
null
:
line
.
free
()
map_gen
.
generate_map
(
fill_percent
,
width
,
height
,
mutex
)
map_gen
.
generate_map
(
fill_percent
,
width
,
height
)
# Make sure enemies do not spawn inside a collidable tile
for
coord
in
map_gen
.
enemy_spawns
:
break_obstacle
(
coord
.
x
,
coord
.
y
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment