HTML5

用 HTML5 来开发一款 Android 本地化 App 游戏 --- 宝石碰碰

本次来说一说如何利用lufylegend.js引擎制作一款HTML5游戏后,将其转换为android本地化的App应用,转换过程其实很简单,下面一步步来做说明。

首先来开发一个类似于对对碰的游戏,不过此游戏玩法为在下原创,如有雷同,纯属巧合,游戏界面如下

游戏操作:上下左右划动屏幕,来操作宝石向不同的方向移动。

游戏规则:当有三个一样的宝石相邻则消除,被消除过一次的宝石会变成半透明,当所有宝石都被消除一次后,则进入下一关。

游戏测试连接:

http://lufylegend.com/demo/GemGem

制作开始

[HTML5游戏开发] 简单的《找不同汉字版》,来考考你的眼力吧

本文首发自我的csdn博客:http://blog.csdn.net/yorhomwang/article/details/8627830

一,准备工作

本次游戏开发需要用到lufylegend.js开源游戏引擎,版本我用的是1.5.2(现在最新的版本是1.6.0)。

引擎下载的位置:http://lufylegend.googlecode.com/files/lufylegend-1.5.2.rar

Android and Android Crosswalk Builds Crash during the startup

Hello everybody,

I have developed a mobile app with XDK, using KendoUI and AngularJS.

At the emulator as well as IOS devices my app works perfect. However, Android and Android Crosswalks builds crash often. This crash happens usually when the user opens the tool by clicking an incoming push notification. Alternatively, if the user has not opened the application for a long time (for instance after 8 hours) at the first call it crashes again. If the user restarts the application manually, usually it opens.

Intel XDK update: problems with sudo and root authentication

Hi, i'm using Intel XDK in Ubuntu Gnome 15, for some reason when i try the latest update of Intel XDK when it ask me for reload the IDE and then it gives me three options: install in my user folder, in /opt/intel/xdk using sudo and the last but using root account or sudo option the updater/installer tell me that my password are wrong but i'm sure is the right because i'm the root user, i have my intel XDK installed already in /opt/intel/xdk.

Thanks for any help.

How to connect MySQL database in Java ?

I am coding a module in java that need a database connection with MySQL. I heard about DriverManager but I think it is pretty old method for database connection. Is there any newer and efficient way of doing the same. This Java questions and answers forum comprises of large number of tech and coding expert, So I expect quick and satisfactory solution or full set of instruction/ code require for this.

Ajax fail on iOS

Hi everyone, i have a problem with iOS. My app work very well on Android but, when i try i build for iOS AdHoc everytime that i open the application an error message will shown. Http://localhost.it is the error, i specified in iOS' Whitelist that the app will have all permission to retrieve information of other site. Nothing, still doesn't working. Don't know how to do!

 

Thx for the reply,

Matteo

Trying to force Landscape only mode.

Testing on a Nexus 7

I have set Orientation in the project build-settings to "Landscape"
Have added "device" to the plugins.
Have added intel.xdk.device.setRotateOrientation("landscape"); to my code.

This works to force the emulator to be in landscape.

But when I use debug on the Nexus 7 it loads in whatever orientation the tablet is being held.

How to deal with app too large to build

My app contains a large amount of video (roughly 5gb) and because of that the upload to the build server is failing. Its all working fine in the emulator, and its builds fine if I remove the video folder.

Is it possible to somehow build the app without the videos in, download the build and then add the videos back locally? I wanted to try this, but the unzipped build package  (for a windows build) is just a  .ps1 file, several  .psd1 and an .appx file. So there is nowhere obvious to put my video assets.

Any suggestions?

 

Suscribirse a HTML5