Anything I post is free to use, I dont want crediting or anything like that.
Corona is missing a few things in my opinion, not the fault of Ansca, but as its so new there are very few references and examples out there to follow and thats how I usually learn a new platform / language.
Anscas examples were enough for me to program Alien Horde but I think I can now add a bit back to the community. The joystick being the first example, it would be right at home in the “Interface” folder of the sample code and its designed to save people time in setting up their games and it also works for anyone needed in method of getting user input into their code for testing purposes. Thats why I did a zero config option
joystick = joystickClass.newJoystick{}
will setup a new joystick and position it bottom left, you dont even need graphics.
As for the tile engine, I will setup a new topic once ive looked into it. Im not too sure how to proceed.
I could either have it draw the whole world at once, from a table of values / co-ordinates, or have it look at a table every “load point” and have it draw the new textures while clearing the old ones. Both would work from a sprite sheet and the textures would be 160px x 160px in size as that gets 6 squares on screen at once, enough definition in my opinion to work well of a sprite sheet.
The other issues is collision detection. I would see this concept being suitable for a top down racer so I would need to be able to define collision areas for each tile and have it set them up as well.
I need to look into the best way to accomplish this… [import]uid: 5354 topic_id: 1632 reply_id: 4948[/import]