Hi everyone, First and foremost thank you for checking out my first sparrow extension! I wanted to inform you all that this project has been a learning experience. This is my first time working in objective-c, Sparrow, and Tiled. My code may not be the best implementation at points and there are some known issues that I am working on getting through. Please help me make this a great extension and help make me a better engineer by providing feedback and constructive criticism.
Thank you all, and without further ado…
You should be able to grab all the code files with the TMX prefix and add in the headers to your sparrow.h or just copy the one in the Classes directory.
To create a TileMap simply create one using Tiled and make sure to set the export to CSV. I will be adding in the other types later on, but for now I was looking at something quick to get it in there.
TMXMap* map = [[TMXMap alloc] initWithContentsOfFile:@"mymapname.tmx" width:width height:height]; [self addChild: map];
(it should look like)
If you get the inverted map try the BEScreen
The way my sample has the map in it is like this
BEScreen mScreen = [BEScreen screenWithOrientation:BEScreenOrientationLandscapeRight rotates:YES allowAllOrientations:NO]; TMXMap* map = [[TMXMap alloc]initWithContentsOfFile:@"mymapname.tmx" width:width height:height]; [mScreen addChild:map]; [self addChild:mScreen];
I figured there were a bunch of code files and that a gist might not be the right format. You can check out the github project here.
Good: very easy to include in your project and use Bad: Slows the system down really badly (10fps max), grid lines
Hopefully this extension will not be forgotten about, it just needs a little work!
Hi there, I fixed the gridline issue and also put in some framerate metrics. It seems as though I am getting a full 30/30 FPS. Could you please link me what you were trying to do so I can try to identify the problem areas? Thanks, Elliot