Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by dungeonmaster

Hi,

I'm developing a game for android and I've chosen cocoonjs. This is my typical 'run' cycle:

1 - Make some changes on the code(with Komodo edit).
2 - Test it on browser (with XAMMP installed)
3 - bake
4 - zip html, media and game-min.js
5 - upload zip to an ftp server (with Filezilla)
6 - On cocoons launcher app in android, type the zips adress and download
7 - Run (Finally!)

Do you have any solutions to automate 3..5 ?

1 decade ago by Datamosh

Create a batch file to bake, zip and copy to FTP.
Copy http://stahlworks.com/dev/zip.exe to your tools folder.

Example for C:\MyProject\tools\batch.bat (untested):
@echo off
bake.bat
zip -r "C:\MyProject\game.zip" "C:\MyProject"
ftp -s:ftp.txt


Example for C:\MyProject\tools\ftp.txt (untested):
ftp www.domainhere.com

useridhere

passwordhere

put C:\MyProject\game.zip

bye


More info:
http://support.microsoft.com/kb/96269

1 decade ago by tkorkalainen

My workflow was like this:

1 - Make code changes.
2 - Test on browser (XAMMP installed on dev computer).
3 - Run index.html on CocoonJS launcher on Android device (my dev computer and Android devices are on same wireless network).

1 decade ago by dungeonmaster

@Datamosh: Thanks a lot. However I recently changed to Mac. Any ideas on how to do it on OSX? Sorry for not mentioning it in the post.

@tkokalainen: That sounds simple enough. How can you load index.html from your xammp? With IP address?

1 decade ago by tkorkalainen

@dungeonmaster: My operating system was Windows 8 but maybe principles are same on OSX. IP address is one option but I used computer name because it was shorter to type :) If I remember correctly I did not make changes to XAMPP config, I just created a gamename directory under xampp/htdocs directory and used URL "http://computername/gamename/index.html" in CocoonJS launcher.
Page 1 of 1
« first « previous next › last »