Jump to content

Saving local variables for level unlocking, etc


happy
 Share

Recommended Posts

Hey,

 

I've been playing a few of the games in the show case forum, and most of the games there have multiple levels that you need to unlock by achieving a certain score. They also mostly save the current level of the user so that the browser window can be closed, reopened and the unlocked level is still available.

 

Do you guys relay on your js framework or engine for this or do you use raw JavaScript for it? I'm using the limejs at the moment and they have nothing available for this sort of thing, I'm interested to how everyone tackles this.

 

Cheers,

h

Link to comment
Share on other sites

  • 2 weeks later...

Thanks for your addition, Lewis.

 

What do you guys do about cross device support? I'm assuming that Local Storage will only work when a browser is being used, so for native android applications etc, it falls over. Also looking at amplifyjs, I think a similar situation exists there to.

 

I've not ported anything to a mobile device yet, infact all I have this far is names of packages such as phonegap for me to explore when I'm ready to start porting. I'm trying to bare in mind that at some point I will port to mobile devices so I'm trying to be careful with incompatible elements I put into my game, such as HTML5 audio, Local Storage and so forth.

 

Cheers,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...