1 decade ago
by CaueCR
Hello! Sorry to bother everyone, but I need to know something about ImpactJS and appMobi. I've been experimenting with ImpactJS lately, and I've tried to port the project to mobile platforms.
Everything went smoothly, BUT there's this problem with the "plugins.dc.dc" require. I don't have that file here, and I can't find it anywhere. Even though in the tutorial video about converting an ImpactJS game to appMobi, he requires the file and it works.
If anyone can help me out I would appreciate a lot!
Thanks for your time!
appMobi's development tools were purchased by Intel about year ago. You can use the Intel XDK to create games still though
http://xdk-software.intel.com/.
With this specific issue, that file you're looking for is included when you build so you only need to have the dc folder present and the needed file is injected.
I am trying to re-create some of our old docs to reflect the new tools so it's not as confusing.
1 decade ago
by CaueCR
Oh sorry I forgot to mention I was using XDK (my bad). So I just need to create a plugins/dc directory in the project? It's way more simple than I thought. Thanks a lot!
I'll try to port it again and see if the performance gets better in Android, thanks again Tyler!
Thanks for your time and sorry to bother!
1 decade ago
by CaueCR
Now that I've fixed the plugins problem (thanks again Tyler!), another one have appeared. Involving canvas tag (which I've even tried to remove) and the directCanvas. Here's what Chrome's console told me:
"Uncaught directCanvas error: canvas.style is not a valid property in directCanvas "
Any suggestions? If needed I can upload the code.
Thanks again for the attention!
1 decade ago
by CaueCR
OBS.: Chrome says the error is in the index.js, line 450. (Maybe this info can help a little bit)
directCanvas or AGI is odd in that you can't access the DOM from the canvas layer. It sounds like you're trying to change the style of the canvas element from the canvas layer, resulting in an error. So make sure you're only manipulating div elements, and CSS styles in the index.html file, or any file that isn't included in the index.js
Here's a tutorial on how to use AGI and how it works, should probably help you in understanding the concept:
http://software.intel.com/en-us/html5/articles/app-game-interface-implementation-guide
1 decade ago
by CaueCR
I searched my code and it was all normal, nothing strange in it, then I started looking in the XDK forum.
I wandered a little bit in the XDK foruns and found out that the impact.js file I was using was the wrong version. It's quite strange but it looks like XDK does not support the latest version of impact, I had to use the impact.min.js from one of the examples to make it work (apparently version 1.19). But I found a problem way worse.
The XDK now can emulate the game normally, but the performance is bad in the XDK and even worse in the mobile device.
In this game I'm using a image for the background, one image for the player, one image for the enemy (I generate 8 enemies, so it is 8 images) and one mp3 file for the BGM. Maybe I'm doing something wrong here?
Thanks again for your time Tyler!
Page 1 of 1
« first
« previous
next ›
last »