Skip to content
Adrián Arroyo Calle edited this page May 16, 2014 · 2 revisions

#Tutorial 2

Now we have the HTML part of the game. Of course you can hack it for better results, but no more than one ID gajse element on the page. IDs must be unique.

##Main GAJSE configuration file

We're talking about the file that you should put in the data-gajse attribute. It's a JSON file. Let's see an example configuration:

{
 "name" : "DEMO game",
 "author" : "Adrián Arroyo Calle",
 "description" : "A little description",
 "license" : "Public Domain",
 "resources" : {
	"images" : "game/images/",
	"audio" : "game/audio/",
	"video" : "game/video/",
	"hud" : "game/hud/",
	"scenes" : "game/scenes/",
	"characters" : "game/characters/",
	"items" : "game/items/"
 },
 "icon64" : "game/logo.png",
 "id" : "PUT A UUID",
 "features" : {
	"fullscreen" : true,
	"touch" : false
 },
 "minVersion" : "0.0.2",
 "maxVersion" : "1.5.0"

}

The fields are easy to understand. But you can read it here: main.json Please note the / after the folder name. This is required.


<- Tutorial-1 | Tutorial-3 ->

Clone this wiki locally