Guest User

Untitled

a guest
Aug 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Design ini features 2 kind of properties:
  2. #1. Static properties. They are mandratory(unless stated otherwise), can't be removed or have
  3. #other value type. For example:
  4.  
  5. #---------- EXAMPLE START --------
  6. #Image for top left logo on step 1
  7. some_static_something=my_image.png
  8. #---------- EXAMPLE END --------
  9.  
  10. #That properties regulary have description near them of what they do
  11. #Static property can influence one or many objects or whole game itself
  12.  
  13. #2. Dynamic properties. They feature some object, that could be styles with
  14. #a big property list. Each property can be deleted or commented without
  15. #breaking the game. Such objects are declared with @ sign like:
  16. #(This declaration is placed near property group, so you can easily see what properties are dynamic and what are not)
  17. some_object=@I'm object
  18.  
  19. #Dynamic property usually influence one object or group of similar objects, like buttons
  20.  
  21. #Text after @ is object description, not influencing the game
  22. #This declaration can not be removed or commented (same as static property) but
  23. #all `child` properties can be added or removed any time.
  24.  
  25. #Child dynamic property looks like:
  26.  
  27. some_object_some_property=Property valye
  28.  
  29. #Please note that @ declaration is ONLY for information of editor. You can't convert properties
  30. #to static/dynamic by removing or adding this
  31. #Below we list all properties that are supported for objects, declared with @
  32.  
  33. #---------- EXAMPLE START --------
  34. some_object=@I'm object
  35.  
  36.  
  37. #---------------- DIMENSIONS POSITION FORM ------------
  38. #`X & Y` should be declared both at same time. They make object absolutelly
  39. #positioned at X pixels from left, Y pixels from top of the screen
  40. some_object_X=10
  41. some_object_Y=20
  42.  
  43. #Object pixel width
  44. some_object_width=200
  45.  
  46. #Object pixel height
  47. some_object_height=200
  48.  
  49. #Horizontal internal padding in pixels.
  50. some_object_paddingX=10
  51.  
  52. #Vertical internal padding in pixels.
  53. some_object_paddingY=3
  54.  
  55. #Both paddings at same time, if same. X & Y padding properties have higher priority
  56. some_object_padding=10
  57.  
  58. #Border radius in pixels
  59. some_object_radius=10
  60.  
  61. #---------------- COLORS ------------
  62. #Background can be declared with lot of properties. Not all of them can be combined.
  63. #You can't use background image & background gradient at the same time, but you can
  64. #put image over a plain color
  65. #background gradient also overrides backround flat color
  66. #Any color can be declared as HEX value like #FF9922, as RGB value like rgba(100,255,200,1.0) where 1.0 is alpha opacity
  67. #or 'transparent' for no background color
  68. #Also `sprite` and `image` properties can't be used together
  69.  
  70. #Background plain color.
  71. some_object_background_color=#FF0000
  72.  
  73. #Text plain color, if element contains text
  74. some_object_text_color=#FF0000
  75.  
  76. #Background image with auto-scale. Auto-scale tries to fix object dimensions
  77. #but it should be same aspect ratio as object
  78. #`sprite` and `background_image` properties can't be used together
  79. some_object_background_image=some_image.png
  80.  
  81. #CSS equivalent for background-size. Valid values "contain" (proportionally fit in box, leaving empty areas if ratio inequivalent), "cover" (default, proportionally fit in box, NOT leaving empty areas if ratio inequivalent), "fill" (breaks aspect ratio and fills all box)
  82. some_object_backgroundSize=cover
  83.  
  84. #Background image without auto-scale. This is usefull for making sprites
  85. #for buttons. See sample in /documentation/game.html
  86. #`sprite` and `background_image` properties can't be used together
  87. some_object_sprite=some_image.png
  88. #shift image by pixels
  89. some_object_spriteShift=10
  90.  
  91. #Vertical gradient can be set by setting BOTH top & bottom color properties
  92. some_object_gradient_top=#FF0000
  93. some_object_gradient_bottom=#000000
  94.  
  95. #Horizontal gradient can be set by setting BOTH left & right color properties
  96. some_object_gradient_left=#FF0000
  97. some_object_gradient_right=#000000
  98.  
  99. #Radial gradient can be set by setting ALL center, edge color properties and gradientRadius property
  100. some_object_gradient_center=#FF0000
  101. some_object_gradient_edge=#000000
  102. some_object_gradient_radius=100
  103. #Gradient radius is required for OLD Safari, which can't calculate object dimensions itself. Most new browsers ignore this property
  104. #Set it to ~ object width or height
  105.  
  106. #---------------- TEXT ------------
  107.  
  108. #Set font family. Supported font list is under discussion
  109. some_object_fontFamily=Helvetica
  110. #Set font size in px,em,%
  111. some_object_fontSize=10px
  112.  
  113. #Some more advanced properties:
  114. #Line height in px
  115. some_object_lineHeight=10
  116. #font-weight CSS equivalent
  117. some_object_fontWeight=bold
  118. #font-style CSS equivalent
  119. some_object_fontStyle=italic
  120.  
  121. #---------------- Boolean (true/false) values ------------
  122.  
  123. #make text in object to be centered. Usefull for buttons
  124. some_object_centerText=true
  125.  
  126. #Turn shadow on/off
  127. some_object_shadow=true
  128.  
  129. #Turn gloss on/off
  130. some_object_gloss=true
  131.  
  132. #Turn glow on/off (wont work with gloss or shadow)
  133. some_object_glow=true
  134.  
  135. #------------------ ADVANCED ----------------
  136. #If one knows how to use CSS, he can use `style` property to attach any style
  137. some_object_style=opacity: 0.2; text-decoration: underline;
  138.  
  139. #CSS equivalent for border property
  140. some_object_border=5px solid gray
  141.  
  142. #---------- EXAMPLE END --------
Add Comment
Please, Sign In to add comment