Changeset 27049 in project


Ignore:
Timestamp:
07/11/12 22:24:35 (9 years ago)
Author:
Christian Kellermann
Message:

doodle docs: wiki markup I do hate you

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/doodle

    r27048 r27049  
    214214* #:image
    215215
    216   A single image from a single file. It takes optional argumens
    217   ''x-offset'', ''y-offset'' and ''scale-factor'' to take just a
    218   fraction out of the given image file and to be able to scale it.
    219 
    220   The following example does this several times:
    221 
    222   <enscript language="scheme">
     216A single image from a single file. It takes optional argumens
     217''x-offset'', ''y-offset'' and ''scale-factor'' to take just a
     218fraction out of the given image file and to be able to scale it.
     219
     220The following example does this several times:
     221
     222<enscript language="scheme">
    223223(define-resource 'water #:image "Water Block.png" *terrain-xoffset* *terrain-yoffset*)
    224224(define-resource 'stone #:image "Stone Block.png" *terrain-xoffset* *terrain-yoffset*)
     
    228228(define-resource 'tree #:image "Tree Tall.png" 0 -80 )
    229229(define-resource 'heart #:image "Heart.png" 0 0 0.5)
    230   </enscript>
     230</enscript>
    231231
    232232* #:tileset
    233233
    234   This assumes the image to consist of one or more square tiles. Then
    235   several images are referenced out of a single image file. The
    236   ''data'' argument is expected to be a list of two elements: the
    237   tile-size and a list consisting of (name number) pairs (proper
    238   lists). The following examples makes three tiles accessible through
    239   their names: wall, floor and hero. They can be drawn with the
    240   {{blit-image}} procedure.
    241 
    242   <enscript language="scheme">
     234This assumes the image to consist of one or more square tiles. Then
     235several images are referenced out of a single image file. The ''data''
     236argument is expected to be a list of two elements: the tile-size and a
     237list consisting of (name number) pairs (proper lists). The following
     238examples makes three tiles accessible through their names: wall, floor
     239and hero. They can be drawn with the {{blit-image}} procedure.
     240
     241<enscript language="scheme">
    243242(define-resource 'tiles
    244243                  #:tileset
     
    248247                      (floor 30)
    249248                      (hero 486)))
    250   </enscript>
     249</enscript>
    251250
    252251<procedure>(blit-image name x y rotation: angle )</procedure>
Note: See TracChangeset for help on using the changeset viewer.