Game Development Reference
In-Depth Information
Configuration of our chess game
Listing 3-14 shows the config.xml we used to make our chess game:
Listing 3-14. config.xml
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns=" http://www.w3.org/ns/widgets" xmlns:gap=" http://phonegap.com/ns/1.0"
id="fr.gaetanrenaudeau.chess" version="1.0.0">
<name>Chess</name>
<description>A Chess Game demo</description>
<author href=" http://greweb.fr" email=" renaudeau.gaetan@gmail.com ">
Gaetan Renaudeau
</author>
<icon src="icon.png" gap:role="default" />
<feature name="http://api.phonegap.com/1.0/network"/>
<preference name="orientation" value="portrait" />
</widget>
Figure 3-6. Simple interface of PhoneGap build
WebAppBuilder
This tool was created during the Same Game Gravity developmentā€”and does not claim to be a solution to
all problems of the world! It was born with the objective of automating a number of commands needed to
create multiple instances of an application. It's actually a mashup of many tools.
We could simply have the exact same source code inside all application instances (in assets/ for Android;
www/ for iOS; and / for the web versions) and it works in most simple cases, but you can also have very
specific code, which would not be used in other instances. You could also use different libraries for
different platforms like we did with jQuery and Zepto.
 
Search WWH ::




Custom Search