This site is no longer active and is available for archival purposes only. Registration and login is disabled.

XML in EDGE?


XML in EDGE?

Postby Nic-Gun » Mar 10, 2006 @ 5:42am

Is it possible to use xml files in EDGE? or must i use structs? because i wanted to set the position of each enemy at each level and i don't want to hardcode them on my code.
User avatar
Nic-Gun
pm Member
 
Posts: 61
Joined: Apr 7, 2005 @ 6:50am
Location: Jakarta, Indonesia


Postby edge » Mar 10, 2006 @ 9:09am

You can use structures to save your game data and read/write them to and from files using ClassEFile.

For the upcoming Edge 2.50 release, a new class will be added to read and write ini-type files.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby Nic-Gun » Mar 10, 2006 @ 10:20am

okay, so can i write down the config file for ClassEFile using any text editor? or are there samples that using ClassEFile?
User avatar
Nic-Gun
pm Member
 
Posts: 61
Joined: Apr 7, 2005 @ 6:50am
Location: Jakarta, Indonesia


Postby edge » Mar 10, 2006 @ 12:01pm

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby Nic-Gun » Mar 14, 2006 @ 1:31pm

User avatar
Nic-Gun
pm Member
 
Posts: 61
Joined: Apr 7, 2005 @ 6:50am
Location: Jakarta, Indonesia


Postby edge » Mar 14, 2006 @ 1:51pm

It doesn't matter with which extension you save your file, although it is recommended to pick an extension which represents the type of your file.

When using your own extension, try to create an extension which isn't widely used (you can also use .dat or .bin as an extension, which are commonly used for all type of data files). However, the extension doesn't change the data within the file, only which program starts it when double clicking on it in Windows.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron