Flash Car Racing Game Documentation
Flash Car Racing Game Documentation
The game displays the following as per the screens using the data stored in from XML(config.xml) 1. Intro Screen (screen one) a) Loading screen b) The Background image as listed in xml file. c) The Four buttons and their background. (Here only four buttons are used ,more can be added but they cant be given functionality through xml) 2. Track Selection Screen(screen two) a) All tracks as many as listed in xml will be listed even here . b) Previous and Next buttons with customization to change the background. The same is applicable to where ever these buttons appear. c) Track properties will appear as percentages and apply the same in Game Play mode. d) Two buttons Main screen and Car select Screen e) Heading through xml so that any language will be supported. 3. Car Selection Screen(screen three) a) All Cars as many as listed in xml will be listed here, their position can be set at once. b) Same Prev and Next Buttons as Above c) Car Properties will appear as percentages and will apply the same in Game Play. d) Two buttons one to go back to menu and other to Begin the Game. 4. Game Screen (screen four) a) Tracks load from External so need a load screen b) Cars load from images from screen three as selected there. c) Lap count, Score count(depends on time), minimap,
d) The Game content loads from an swf externally, which contains all elements including waypoints which make sure the car moves through whole track without cheating. For each track we have a specific swf built and placed in tracks folder.
THE TRACK SWF file (track/track01.fla) Edit this file for new tracks This file contains their receptive layers like FOREGROUND - can Hold Banners and all that display stuff which are to be displayed above. WAYPOINTS - These play a more vital role in avopiding the player from cheating, So place as many as necessary or remove as many as necessary to remove but maintain the same gap as it has been maintained. Although you place them they go invisible at runtime. CAR - HERE THE CAR LOADS SO LET IT BE AS IT IS FINISH - This has the finish line once the car covers all waypoints only on reaching this it concludes the race or counts the laps running over these and these only. So replace it where necessary ROAD - This holds the original track layer. SIDE This holds the Sideways on a road where the grass resides BACKGROUND - can Hold Banners and all that display stuff of anything possible
THE GUAGE SWF File (xml/guage.fla) This file has vector image design of a speedometer NEEDLE - This holds an Element Needle which works during game play while racing we can change the screen to our custom, but it should have the same technical name, just its design can change. VECTOR - This holds just vector Design , It should be a vector so it is low on size.
DISPLAYING TRACKS All the XML loaded tracks come from xml/tracks/*.png DISPLAYING CARS All the XML loaded tracks come from xml/cars/*.png
DISPLAYING OTHER SCREENS All the XML loaded tracks come from xml/images/ bg.jpg - first intro screen image
bg_Credits.jpg credits page image bg_exp.jpg Help screen bg_score.jpg Score screen OTHERS ALL are used as described in xml.
NOTE: To understand XML please read the commented part of the xml, or refer the attached image.