Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Felix Huther
Programmieren2
Commits
cccb4e58
Commit
cccb4e58
authored
Jun 20, 2022
by
Felix Huther
Browse files
some coding
parent
7daefb54
Changes
1
Hide whitespace changes
Inline
Side-by-side
DungeonCrawler/DungeonGame/level.cpp
View file @
cccb4e58
...
...
@@ -74,7 +74,17 @@ void Level::setStructure() {
Tile
*
wallpointer
=
new
Wall
(
stwall
,
nullptr
,
pos
);
mLevel
.
at
(
i
).
push_back
(
wallpointer
);
}
//fills field with floor
}
else
if
(
j
==
6
)
{
Tile
*
wallpointer
=
new
Wall
(
stwall
,
nullptr
,
pos
);
mLevel
.
at
(
i
).
push_back
(
wallpointer
);
}
// creates the portals
else
if
((
i
==
4
&&
j
==
4
)
||
(
i
==
8
&&
j
==
8
))
{
Tile
*
portalOne
;
...
...
@@ -95,7 +105,7 @@ void Level::setStructure() {
}
}
else
else
//fills field with floor
{
Tile
*
floorPointer
=
new
Floor
(
stfloor
,
nullptr
,
pos
);
mLevel
.
at
(
i
).
push_back
(
floorPointer
);
...
...
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