-
-
Notifications
You must be signed in to change notification settings - Fork 174
project.kha
Robert Konrad edited this page Nov 2, 2013
·
9 revisions
Kha uses a JSON file called project.kha to organize the assets of your project and some essential project data. A basic project.kha looks like this:
{
"format": 1,
"game":
{
"name": "SML",
"width": 600,
"height": 520
},
"assets":
[
{
"id": "a057c5a0-43e7-11e3-8f96-0800200c9a66",
"type": "image",
"file": "blockcoin.png",
"name": "blockcoin"
},
{
"id": "abf4cb60-43e7-11e3-8f96-0800200c9a66",
"type": "sound",
"file": "coin",
"name": "coin"
},
{
"id": "b2db9c10-43e7-11e3-8f96-0800200c9a66",
"type": "music",
"file": "level1",
"name": "level1"
},
{
"id": "ba2b19a0-43e7-11e3-8f96-0800200c9a66",
"type": "blob",
"file": "level.map",
"name": "level.map"
}
],
"rooms":
[
{
"id" : "c06ef390-43e7-11e3-8f96-0800200c9a66",
"name": "level1",
"parent": null,
"neighbours": [],
"assets":
[
"a057c5a0-43e7-11e3-8f96-0800200c9a66",
"abf4cb60-43e7-11e3-8f96-0800200c9a66",
"b2db9c10-43e7-11e3-8f96-0800200c9a66",
"ba2b19a0-43e7-11e3-8f96-0800200c9a66"
]
}
]
}
Kha supports five different types of assets:
For all kinds of images. You can provide images in jpeg, png, tga, bmp or gif format. All images are currently converted to png before actual use.
For small sound files in wav format. This is converted to different formats dependent on the target system.
For large sound files in wav format which will be streamed at runtime. This is converted to different formats dependent on the target system.
For video files. These are currently not converted automatically.
For binary blobs / everything else - provides a byte array at runtime.
- Introduction
- Getting Started
- Breaking Changes
- FAQ
- System targets
- Graphics targets
- Documentation
- API package descriptions