This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
extensions:sx_point_sprite_group [2011/04/12 07:41] – [Data entry] pixelrevision | extensions:sx_point_sprite_group [2015/09/14 11:14] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOTOC~~ | ||
+ | ====== SXPointSpriteGroup ====== | ||
+ | |||
+ | ---- dataentry extension ---- | ||
+ | type : extension #or ' | ||
+ | author_mail | ||
+ | description | ||
+ | lastupdate_dt : 2011-04-11 #the date you created the extension | ||
+ | compatible | ||
+ | depends | ||
+ | tags : point sprites, particles #enter a few tags, separated by commas | ||
+ | homepage_url | ||
+ | download_url | ||
+ | ---- | ||
+ | |||
+ | ===== Usage ===== | ||
+ | Subclass the class and override the update method to mess with particles: | ||
+ | < | ||
+ | - (void)update: | ||
+ | for(int i=0; i< | ||
+ | SXPSData *ps = & | ||
+ | ps->x += i * .1; | ||
+ | ps->y += i * .1; | ||
+ | } | ||
+ | [super update: | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Changelog ===== | ||
+ | |||
+ | * // | ||
+ | |||
+ | ===== Source Code ===== | ||
+ | |||
+ | |||
+ | %gist(912119)% | ||
+ | |||
+ | ===== Discussion ===== | ||
+ | |||
+ | //No comments so far. Feel free to edit this part of the page.// |