User Tools

Site Tools


en:spritepoly

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:spritepoly [2016/01/01 22:42]
127.0.0.1 external edit
en:spritepoly [2020/02/28 10:46] (current)
Line 1: Line 1:
 ===== Spritepoly (Statement) ===== ===== Spritepoly (Statement) =====
 ==== Format ==== ==== Format ====
-**spritepoly** //sprite_number//, {x1, y1, x2, y2, x3, y3 ...}\\ +**spritepoly** //sprite_number//, [[arrays|variable[]]]\\ 
-**spritepoly** ( //sprite_number//, {x1, y1, x2, y2, x3, y3 ...} ) \\ +**spritepoly** ( //sprite_number//, [[arrays|variable[]]] )\\ 
-**spritepoly** //sprite_number//, numeric array\\ +**spritepoly** //sprite_number//, [[Lists|{ x1, y1, x2, y2, x3, y3 ... }]]\\ 
-**spritepoly** ( //sprite_number//, numeric array )+**spritepoly** ( //sprite_number//, [[Lists|{ x1, y1, x2, y2, x3, y3 ... }]] )\\ 
 +**spritepoly** //sprite_number//, [[Lists|{ {x1, y1}, {x2, y2}, {x3, y3} ... }]]\\ 
 +**spritepoly** ( //sprite_number//, [[Lists|{ {x1, y1}, {x2, y2}, {x3, y3} ... }]] )
  
 ==== Description ==== ==== Description ====
 +Create a sprite from a list of points that represent a polygon.  The top left corner of the polygon should be (0,0).  The sides of the polygon are defined by the values stored in the array, which should be stored as x,y pairs, sequentially. The length of a one dimensional array/2 or the number of rows on a two dimensional array will define the number of points. 
  
-Create a sprite from a list of points that represent a polygon.  The top left corner of the ploygon should be (0,0).+One dimensional arrays and lists must have at least six values and an even number of values.  A two dimensional array may have 3 or more rows but must have two columns.
  
 ==== Example ==== ==== Example ====
Line 37: Line 40:
 ==== History ====  ==== History ==== 
 |0.9.9.70|New To Version| |0.9.9.70|New To Version|
 +|1.99.99.55|two dimensional list support was added|
 +|1.99.99.72|added required [] to passing variable array|
 +
  
en/spritepoly.1451713326.txt.gz · Last modified: 2020/02/28 10:46 (external edit)