|
For All You Game Developers |
|
|
Example Java Application This is an example desktop application using the MoiDev API. It uses Java's own XML functionality to parse the XML data returned from server. The application is split into three classes. MoiDevApp is the main application class and contains user interface which simply prompts the user for pal name and player key. It also handles key events and takes care of drawing the application. PalData class (common with all Java examples) is a simple container class that holds pal's properties. The MoiDev functionality is mainly within the PalLoaderExample class (which is mostly shared with other Java examples). Once constructed with the MoiDev API URL and inited with pal name and player key the class connects to the API, reads and parses the provided pal data and stores it into the given PalData object. The loader also automatically downloads the character animation images automatically as soon as the XML parsing has completed. DownloadsMoiDevApp application binary jar MoiDevApp source code zip. |
|