Playing an hosted game on android with chrome


#1

Hello,

As a new user of CoG games, I was asking me if I play a game on my android smartphone with chrome, is the game saved as I play or do I need to start the game at the begining when I restart my chrome or my smartphone ?

Regards.

Didier


#2

If you’re playing the games hosted on the CoG website, then yes, the game is saved as you play. The same is true if you’re playing one of the games available as apps through Google Play or the Amazon app store. It’s effectively the same as playing the games on your computer’s browser. I have an android with chrome as well, and it works just fine.

Now, if you’re talking about playing games hosted elsewhere, like a game in beta hosted on dropbox, then you’re out of luck. Again, it’s the same as playing the game on your computer’s browser; it doesn’t save there either. Of course, you’re at greater risk as smartphone browsers have a tendency to dump their cache more often, so if you use some other apps, then re-open chrome, it’ll refresh the website, losing your place in the game. Not much you can do about that, unfortunately.


#3

Thanks for your answer. I would like to create à game for my daughter who will have a tablet for kids tomorrow. So I will need to find how to create an apk (android application) to install it on its tablet.


#4

It’ll be easier to incorporate this save-system into your game: http://www.choiceofgames.com/forum/discussion/992/merry-christmas-cog-community-saving-system/p1

As long as your browsers supports local storage (most good android ones do, dolphin for e.g.).

Packaging HTML5 apps correctly can be difficult, particularly when you didn’t code the basis yourself - I can point you in the direction of PhoneGap or similar ‘bridging/porting’ software, but getting “choicescript” to port properly will probably require some large amount of trial and error, and CoG may or may not require you to license it for such use.

There may be additional configurations that need to be set to enable the device saving for example.


#5

Thanks a lot @CJW, I will try it soon !


#6

@didier69

You are new so go to this thread titled
“A Place For Everyone New”

http://www.choiceofgames.com/forum/discussion/1153/a-place-for-everyone-new/#Item_70http://www.choiceofgames.com/forum/discussion/1153/a-place-for-everyone-new/#Item_70


#7

@CJW I thought the PhoneGap had kind of like a free / basic one for their porting feature? I mean if we are to put the license issue to being irrelevant :stuck_out_tongue: Might mistake it for some other app… would you recommend using it for porting purpose in general, choice games aside? How do you like it so far?


#8

@FcA I can’t personally recommend phonegap, I’ve never really delved into the mobile app field, but it seems to hold a majority of the support at the moment (from forums, twitter etc…).

I’m also referring to a CoG license - Not a Phone Gap one - Whilst they let us make games for free, I’m not sure what their stance on us self-porting to the devices is… I can’t honestly imagine they’d want that, as we “could” put prices on them and/or give out a bad reputation for their line of games (people will notice the similarities, despite being uploaded separately).