Character's main attributes definition.
Image description[]
- The tags are colored in emerald.
- The attributes are colored in violet.
- The tag texts (not the attributes) are colored in orange.
- [allows multiple] : The engine recognizes multiple tags declaration.
- [integer] : The attribute is a numeric integer value. (examples: "128", "24", "53")
- [string] : The attribute is a text string value. (example: "Basic bullet", "misc/winner/1.png", "Chuy")
- [yes/no] : The attribute is a boolean "yes" or "no" vaule. (example: "yes", "no").
- [mandatory] : The attribute is mandatory and has to be defined.
- [default=X] : If the attribute is not defined, it will take the X value as default.
Tags description[]
Bold represents the Tags.
Italic represents the attributes.
- <LifeBar/> - Character's life or health bar and the PNG image that contains the bar.
- x - Life bar position x.
- y - Life bar position y.
- color_r - Red color value from 0 to 255.
- color_g - Green color value from 0 to 255.
- color_b - Blue color value from 0 to 255.
- color_a - Alpha color value from 0 to 255.
- rect_offset_x - Rectangle's x position relative to the image.
- rect_offset_y - Rectangle's y position relative to the image.
- rect_width - Rectagle bar width when is full.
- rect_height - Rectangle bar height.
- <Attributes/> - Main attributes of the character.
- velocity - Amounts of pixels the character moves in each iteration.
- animation_velocity - Amounts of
- hp - Character hit points.
- initial_x - Position x of the character at the beginning of the stage.
- initial_y - Position y of the character at the beginning of the stage.
- <Sprites/> - Character's animations depending on the state.
- orientation - The state of the character. ("idle", "up","down","left", "right", "destroyed for the player) ("idle", "destroyed" for the enemy).
- sound - The sound played at the beginning of the state change. This sound is not looped.
- <Sprite/> - Single character's animation frame.
- path - Image file path.
- <Sprite/> - Single character's animation frame.
Cookbook[]
You can find quick XML recipes examples in the Cookbook.