Intel XDK - Cordova platform updates.

Discussion and feedback on Construct 2

Post » Fri Oct 17, 2014 1:31 pm

Hi guys,

I plan to find out how well the Cordova builds work in the XDK and writing up a "How to..." tutorial when I'm done.

The reason for this is I really like the Intel XDK. It allows you to edit, emulate, test, debug, profile and build all in the same place. The majority of people will just be using it for Crosswalk, because at present it has the best performance on android devices. However, with the release of Android Lollipop this should change to Phonegap/Cordova being the fastest, with caveat that devices will need to be running iOS8 or Lollipop. So for a while Crosswalk will still bridge the gap until we reach the point where the majority of android devices are running lollipop+.

What is Cordova? Well it's basically the non-adobe version of PhoneGap. It does exactly the same stuff bar offer the customer service that PhoneGap offer. Also PhoneGap plugins should work on Cordova, and vice versa. So essentially I'm looking at the XDK to fill the role of PhoneGap without having to pay a monthly subscription for their build service as well as not having to install a load of IDE's and libraries. Yeah, I know, I'm cheap and want things on a platter! ;)

I'm also doing this as I want a wrapper that does everything I need as a professional developer. This includes the following highest priority/core plugins:
  • Full screen and banner ads - Developers often have to make their games free as their product is unknown to consumers. Therefore advertising allows developers to make money on their games without the player reaching for their pocket.
  • Cross platform IAP - Developers often have a full and free version of the game. The free version will normally have advertising in and it is common to allow users to use an IAP to remove the advertising as well as provide more gameplay. I say 'cross platform' as it would be better for C2 users to have a general set of events rather than specific events for each platform. However, It's better to have something than nothing. ;)
  • Post/invite from Facebook / Twitter - Marketing is very important factor of a games success and most indie developers cannot afford to do it in a big way i.e. TV adverts. Therefore, the rest of the indie developers have to use the cheap strategy of viral advertising through social networks. This is done by incentivising people to use and share game notifications through their social network i.e. Get a free in game pink hat for inviting your friend to the game.
  • Game Center / Google Play Games Service leaderboards - Users need a reason to come back to a game and in addition to your game goals a shared leaderboard among friends encourages one-upmanship rivalry.

As well as the secondary priority plugins:
  • Local notifications - Users need to be reminded to come back to a game and local notifications fill that purpose i.e. You have completed mining for rubies! Your goblins have no jobs to do!
  • Prompt to rate - The higher the rating the better the perceived quality of your game. The amount of people playing the game but don't rate it will be incredibly high. So players have to be reminded.
  • Analytics - Most people don't realise the value in game analytics. However, they can be incredibly powerful tool to allow developer to refine the game experience. i.e. 50% of users stop playing the game at level 3, which could mean the level is too difficult and a more gradual difficulty curve is required.

I want to hear from people that have done it or are trying to do it. So far I have built an Cordova APK and installed it on my Nexus 4 relatively easily. The frame rate was not great BUT I don't have lollipop yet ;). So I'll looking into getting the above plugins working next. Has anybody already done this? Would the procedures be the same as getting Crosswalk plugins to work?

Any information would be great and really appreciated.

Kind regards,
TheWyrm

P.S Once I get to a good point I'll write up a tutorial so everybody can replicate my findings.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Fri Oct 17, 2014 1:57 pm

@RenatoB I would be interested to hear your experiences since I see a forum thread specifically about iOS.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Fri Oct 17, 2014 1:59 pm

Great idea, as I believe in the XDK +C2 combo to an extend, hope you have good results


Also I think crosswalk is sort of like cordova but using the chrome engine instead of the webview, so the plugins may be compatible.
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

Post » Fri Oct 17, 2014 2:43 pm

@Aphrodite Thanks. Yes, I think from what I've heard the plugins are compatible. If I don't hear back from people I will perform some experiments and find out.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Fri Oct 17, 2014 4:16 pm

TheWyrm wrote:@RenatoB I would be interested to hear your experiences since I see a forum thread specifically about iOS.


Hi @TheWyrm

My pleasure. I'm still solving the problem of application that was generated on the Intel XDK. I'll wait for the conclusion and return then with more informations.
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060

Post » Fri Oct 17, 2014 4:19 pm

@RenatoB Cheers, I'll continue on the Cordova android side of things in the meantime.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Sat Oct 18, 2014 8:35 am

Note to self: Always keep the exported android build in its own directory. As all things within that directory are scoped into the build. I made a sub directory and placed all my builds in it. Of course each build got larger and larger until I exceeded the Google Play limit of 50mb. Doh! :)
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Sat Oct 18, 2014 10:04 am

I can confirm I have got AdMob adverts working in the android Cordova build.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Sat Oct 18, 2014 7:14 pm

Just waiting to confirm that IAP is working. Hurry up Google! :)
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Sat Oct 18, 2014 10:39 pm

Ran into a speed bump with either IAP or WebStorage. IAP did work. However, now the app just loads a black screen after the splash screen on the second+ time it's run. You have to delete both the Play store cache and your app cache to get it to run again.

So it's either:
  • Something messed up with IAP when I upgrade the app to remove adverts.
  • Something messed up with local WebStorage when I set highscore or a full version bool.

So I'll look into it tomorrow. If anybody has any pointers then please let me know in the meantime.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests