This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
extensions:sx_compiled_tilemap [2011/06/16 16:06] – [Usage] daniel | extensions:sx_compiled_tilemap [2015/09/14 11:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOTOC~~ | ||
+ | ====== SXCompiledTileMap ====== | ||
+ | |||
+ | ---- dataentry extension ---- | ||
+ | type : extension #or ' | ||
+ | author_mail | ||
+ | description | ||
+ | lastupdate_dt : #the date you created the extension | ||
+ | compatible | ||
+ | depends | ||
+ | tags : tilemap, sparrow, 8bit #enter a few tags, separated by commas | ||
+ | homepage_url | ||
+ | download_url | ||
+ | ---- | ||
+ | |||
+ | ===== Usage ===== | ||
+ | You create a tilemap with CSV data and an image strip, then use the camera to scroll. | ||
+ | |||
+ | <code objc> | ||
+ | NSString *mapPath = [[NSBundle mainBundle] pathForResource: | ||
+ | NSString *csvData = [[NSString alloc] initWithContentsOfFile: | ||
+ | encoding: | ||
+ | SXCompiledTileMap *tm = [[SXCompiledTileMap alloc] | ||
+ | initWithViewportSize: | ||
+ | CSVData: | ||
+ | andTileImage: | ||
+ | [self addChild: | ||
+ | </ | ||
+ | |||
+ | ===== Changelog ===== | ||
+ | |||
+ | * // | ||
+ | |||
+ | ===== Source Code ===== | ||
+ | |||
+ | %gist(896866)% | ||
+ | |||
+ | ===== Discussion ===== | ||
+ | |||
+ | //No comments so far. Feel free to edit this part of the page.// |