layouts or new projects for levels?

Discuss game development design and post your game ideas

Post » Thu Apr 23, 2015 8:06 pm

i'm curious what the best method for "level" or "zone" transfer. say a user is in one location, and needs to exit that, and go into another one, say airport to another city. is it better to use layouts, or separate projects. i don't want to risk load time by having a massive project with a hundred different layouts unless it doesn't effect the load speed when they first go to the game url.

An example of what i'm talking about is flash files, you would load one, then redirect to another swf when it's needed to run. and simply transfer cookies or whatever stored data between them.
B
4
Posts: 12
Reputation: 226

Post » Thu Apr 23, 2015 9:03 pm

I'm not sure you even can load different projects like that and even if you could it would be unbelievably slow.
B
20
S
8
G
4
Posts: 195
Reputation: 3,555

Post » Fri Apr 24, 2015 1:26 pm

Well, this is a matter of opinions without much details, but as far as I know:

C2 downloads every graphic assets on start, thus the initial loading time may be big, however it will only happen once since the entire game is cached (currently with offline.appcache, the way may change in the future), multiple projects is not something I would recommand but is doable technically with a browser go to URL, but then you have the same issue with each level when you wait for it to load (except that you can use a loader layout so it looks like a simple loading screen, which it is in that case.).

External files can be requested on demand with the ajax object, I did in the past had levels being just text files being interpreted (it was my own system for recreating the level from the text files), I downloaded them on demand when needed during the game itself.

Audio however can be set to not be downloaded and loaded at the start, so you just request manually the sounds.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 0 guests