Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dyingIsMainstream
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gamejam-gpn15
dyingIsMainstream
Commits
6839a58c
Commit
6839a58c
authored
Jun 05, 2015
by
Tim Reiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed level exporter bug (children of children) + reverted ground prefab
parent
b37530c6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
22 deletions
+23
-22
Levels.xml
Assets/Resources/Levels.xml
+21
-20
ground.prefab
Assets/Resources/Prefabs/ground.prefab
+0
-0
DeserializedLevelsLoader.cs
Assets/Scripts/LevelManagement/DeserializedLevelsLoader.cs
+1
-1
DeserializedLevelsSaver.cs
Assets/Scripts/LevelManagement/DeserializedLevelsSaver.cs
+1
-1
game.unity
Assets/game.unity
+0
-0
No files found.
Assets/Resources/Levels.xml
View file @
6839a58c
...
@@ -2,29 +2,30 @@
...
@@ -2,29 +2,30 @@
<Levels>
<Levels>
<Developer
StartLevel=
"0"
/>
<Developer
StartLevel=
"0"
/>
<Level>
<Level>
<Item
prefab=
"Start_Position"
x=
"5"
/>
<Item
prefab=
"Start_Position"
x=
"5"
y=
"0.31"
/>
<Item
prefab=
"Start_Position"
x=
"-5"
/>
<Item
prefab=
"Start_Position"
x=
"-5"
y=
"0.31"
/>
<Item
prefab=
"Start_Position"
x=
"-2.5"
/>
<Item
prefab=
"Start_Position"
x=
"-2.5"
y=
"0.31"
/>
<Item
prefab=
"Start_Position"
x=
"2.5"
/>
<Item
prefab=
"Start_Position"
x=
"2.5"
y=
"0.31"
/>
<Item
prefab=
"ground"
y=
"-1.
5
"
scalex=
"22.78"
/>
<Item
prefab=
"ground"
y=
"-1.
19
"
scalex=
"22.78"
/>
<Item
prefab=
"ground"
x=
"-7.5"
y=
"-0.
38
"
rot=
"90"
scalex=
"30"
/>
<Item
prefab=
"ground"
x=
"-7.5"
y=
"-0.
07
"
rot=
"90"
scalex=
"30"
/>
<Item
prefab=
"ground"
x=
"7.5"
y=
"-0.
38
"
rot=
"90"
scalex=
"30"
/>
<Item
prefab=
"ground"
x=
"7.5"
y=
"-0.
07
"
rot=
"90"
scalex=
"30"
/>
<Item
prefab=
"ground"
x=
"4.69"
y=
"-2.
71
"
scalex=
"22.78"
/>
<Item
prefab=
"ground"
x=
"4.69"
y=
"-2.
4
"
scalex=
"22.78"
/>
<Item
prefab=
"ground"
x=
"-4.7"
y=
"-2.
7
"
scalex=
"22.78"
/>
<Item
prefab=
"ground"
x=
"-4.7"
y=
"-2.
39
"
scalex=
"22.78"
/>
<Item
prefab=
"ground"
y=
"-
4
"
scalex=
"60"
/>
<Item
prefab=
"ground"
y=
"-
3.69
"
scalex=
"60"
/>
<Item
prefab=
"Turret"
y=
"-0.
59
"
>
<Item
prefab=
"Turret"
y=
"-0.
28
"
>
<children
prefab=
"TurretBase"
y=
"3.11
"
rot=
"180"
/>
<children
prefab=
"TurretBase"
x=
"-0.72"
y=
"3.27
"
rot=
"180"
/>
<children
prefab=
"Cannon"
y=
"3.07
"
rot=
"180"
scaley=
"4.02"
/>
<children
prefab=
"Cannon"
x=
"-0.72"
y=
"3.23
"
rot=
"180"
scaley=
"4.02"
/>
<children
prefab=
"TurretButton"
x=
"0.1"
y=
"-3.
6
"
/>
<children
prefab=
"TurretButton"
x=
"0.1"
y=
"-3.
29
"
/>
</Item>
</Item>
<Item
prefab=
"ground"
x=
"-6.2"
y=
"1.
15
"
scalex=
"10"
/>
<Item
prefab=
"ground"
x=
"-6.2"
y=
"1.
46
"
scalex=
"10"
/>
<Item
prefab=
"ground"
x=
"6.2"
y=
"1.
15
"
scalex=
"10"
/>
<Item
prefab=
"ground"
x=
"6.2"
y=
"1.
46
"
scalex=
"10"
/>
<Item
prefab=
"PortableFire"
x=
"-6.84"
y=
"
1.96
"
scalex=
"0.2"
scaley=
"0.2"
>
<Item
prefab=
"PortableFire"
x=
"-6.84"
y=
"
2.27
"
scalex=
"0.2"
scaley=
"0.2"
>
<children
prefab=
"flame_a_0005"
x=
"-6.84"
y=
"
1.96
"
scalex=
"2"
scaley=
"2"
/>
<children
prefab=
"flame_a_0005"
x=
"-6.84"
y=
"
2.27
"
scalex=
"2"
scaley=
"2"
/>
</Item>
</Item>
<Item
prefab=
"PortableFire"
x=
"6.84"
y=
"
1.83
"
scalex=
"0.2"
scaley=
"0.2"
>
<Item
prefab=
"PortableFire"
x=
"6.84"
y=
"
2.14
"
scalex=
"0.2"
scaley=
"0.2"
>
<children
prefab=
"flame_a_0005"
x=
"6.84"
y=
"
1.83
"
scalex=
"2"
scaley=
"2"
/>
<children
prefab=
"flame_a_0005"
x=
"6.84"
y=
"
2.14
"
scalex=
"2"
scaley=
"2"
/>
</Item>
</Item>
<Item
prefab=
"ground"
y=
"3.56"
scalex=
"60"
/>
</Level>
</Level>
<Level>
<Level>
<Item
prefab=
"Start_Position"
x=
"5"
/>
<Item
prefab=
"Start_Position"
x=
"5"
/>
...
...
Assets/Resources/Prefabs/ground.prefab
View file @
6839a58c
No preview for this file type
Assets/Scripts/LevelManagement/DeserializedLevelsLoader.cs
View file @
6839a58c
...
@@ -144,7 +144,7 @@ public class DeserializedLevelsLoader
...
@@ -144,7 +144,7 @@ public class DeserializedLevelsLoader
foreach
(
Transform
t
in
newGameObject
.
GetComponentsInChildren
<
Transform
>())
foreach
(
Transform
t
in
newGameObject
.
GetComponentsInChildren
<
Transform
>())
{
{
if
(!(
t
.
parent
==
null
)
&&
(
!
t
.
parent
.
name
.
Equals
(
"XmlItems"
)))
if
(!(
t
.
parent
==
null
)
&&
(
t
.
parent
.
name
.
Equals
(
item
.
prefab
)))
{
{
foreach
(
ItemChildStruct
child
in
item
.
children
)
//Ja das ist wahrscheinlich Laufzeitmig nicht ideal, aber die Arrays haben eh nur eine Hand viele Elemente
foreach
(
ItemChildStruct
child
in
item
.
children
)
//Ja das ist wahrscheinlich Laufzeitmig nicht ideal, aber die Arrays haben eh nur eine Hand viele Elemente
{
{
...
...
Assets/Scripts/LevelManagement/DeserializedLevelsSaver.cs
View file @
6839a58c
...
@@ -55,7 +55,7 @@ public class DeserializedLevelsSaver
...
@@ -55,7 +55,7 @@ public class DeserializedLevelsSaver
int
k
=
0
;
int
k
=
0
;
foreach
(
Transform
t
in
item
.
GetComponentsInChildren
<
Transform
>())
foreach
(
Transform
t
in
item
.
GetComponentsInChildren
<
Transform
>())
{
{
if
(
!
t
.
parent
.
name
.
Equals
(
"XmlItemsToExport"
))
if
(
t
.
parent
.
name
.
Equals
(
item
.
name
))
{
{
//GetComponentsInChildren gibt auch die Komponente aus dem Parent (also dem Objekt selbst) zurck
//GetComponentsInChildren gibt auch die Komponente aus dem Parent (also dem Objekt selbst) zurck
DeserializedLevels
.
Item
child
=
new
DeserializedLevels
.
Item
();
DeserializedLevels
.
Item
child
=
new
DeserializedLevels
.
Item
();
...
...
Assets/game.unity
View file @
6839a58c
No preview for this file type
Write
Preview
Markdown
is supported
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