Question about how to design levels

Get help using Construct 2

Post » Thu May 23, 2013 11:21 am

Hi,

Im doing a game that will have a lot of levels. Im thinking in 2 options:

-Take coordinates from a file/array and use the same layout for every level. Pros: performance Cons: level design is harder

-Make a layout for every level and put the tiles in the layout: Pros: level design is very visual and easy Cons: performance???


So my question is, if i choose the second option, and i use the same objects in every level (4 or 5 diferent objects, 20-30 instances total) i will have any problem with load times?

I think that load times are the same because i simply have more instances but im not sure so thats why i ask :D
B
31
S
7
G
2
Posts: 157
Reputation: 3,735

Post » Thu May 23, 2013 12:15 pm

You know something about Level Design with .xml files ?
B
15
S
6
G
6
Posts: 512
Reputation: 5,550

Post » Thu May 23, 2013 1:46 pm

Yes, but i prefer the second method, if performance its not a problem.

B
31
S
7
G
2
Posts: 157
Reputation: 3,735

Post » Thu May 23, 2013 2:02 pm

Well, i tested it:

5 diferent objects, about 50 instances per layout.

Tested in a nexus 7 tablet

3 levels/layouts -> cocoon screen during 5 secs
110 levels/layouts ->cocoon screen during 12,7 secs.

60fps in both cases.

So i should use xml then :PByR2013-05-23 14:03:21
B
31
S
7
G
2
Posts: 157
Reputation: 3,735

Post » Thu May 23, 2013 2:03 pm

[QUOTE=ByR] Yes, but i prefer the second method, if performance its not a problem.

[/QUOTE]

It's not, no worries. Recycling the objects multiple times is actually the 'good practice' of building levels. :)
B
24
S
8
G
7
Posts: 756
Reputation: 7,202

Post » Thu May 23, 2013 2:23 pm

in another device with 2gb ram (nexus7 have 1gb) the diference is 4 secs vs 7 secs in the cocoon screen.
B
31
S
7
G
2
Posts: 157
Reputation: 3,735

Post » Thu May 23, 2013 2:31 pm

[QUOTE=ByR]
3 levels/layouts -> cocoon screen during 5 secs
110 levels/layouts ->cocoon screen during 12,7 secs.
[/QUOTE]


Sounds totally ok, or how many levels do you want to create ?
B
15
S
6
G
6
Posts: 512
Reputation: 5,550

Post » Thu May 23, 2013 2:41 pm

Well, my idea is 100 minimum, because its a fast puzzle game and some levels, will be solved in less than 20 seconds, maybe 150-250 levels will be fine.
B
31
S
7
G
2
Posts: 157
Reputation: 3,735


Return to How do I....?

Who is online

Users browsing this forum: linkman2004, R0J0hound, SpartCrafter and 24 guests