Advertisement
Mr-A

A-Engine load.a File Design

Oct 12th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #A-Engine @ http://www.a-superlab.com/category/a-engine/
  2.  
  3. # id= is the id you can use to call or load the file
  4. # dir= is the directory of the file you wish to load
  5. # require= is a comma (,) separated list of ids that needs to be loaded with the object or stage
  6. # lock= setting this to TRUE or anything that evaluates to that will not allow this file to be used. FALSE by default
  7. # size= the size of the font loaded
  8.  
  9. # reference objects. objects represent characters, energy balls, obstacles..etc
  10. {object}
  11. [id=500]
  12.    dir="obj\character.a" require=30,201 lock= ($P_10$ == 1)
  13. [/id]
  14. {/object}
  15.  
  16. # reference stages. stages represent a background, stage or a level
  17. {stage}
  18. [id=500]
  19.    dir="stages/stage.a" require=40
  20. [/id]
  21. {/stage}
  22.  
  23. # reference music files
  24. {music}
  25. [id=0] dir="msc/menumusic.mp3"[/id]
  26. {/music}
  27.  
  28. # reference true type font files
  29. {font}
  30. [id=0] dir="tff/hobo.tff" size=32[/id]
  31. {/font}
  32.  
  33. # reference GLSL shaders
  34. {shader}
  35. [id=1] dir="glsl/toon.frag" [/id]
  36. {/shader}
  37.  
  38. # reference AI files
  39. {ai}
  40. # .py script files for AI
  41. [id=30] dir="ai/character.py" [/id]
  42. {/ai}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement