Beta Updates

This thread will be updated with information about updates to the Beta. [import]uid: 5833 topic_id: 4422 reply_id: 304422[/import]

I have just added in some code that automatically splits up the world into smaller chunks, this way it makes it easier to hide things that aren’t on screen. Hopefully it will get some speed boosts when on the device.

The next stage of this is to have it so only a couple of these “chunks” are actually moving at a time which I’m hoping will get another big speed boost.

As my iPhone is currently dead it would be great if you guys could try out the latest code on your devices to see what speeds you get. If you try small, medium and large maps with differing amounts of layers and physics etc that’t be fantastic.

The latest code is here - http://dl.dropbox.com/u/571145/LimeBeta0.2.zip [import]uid: 5833 topic_id: 4422 reply_id: 13789[/import]

It looks like loading large maps causes the device to crash due to it taking too long, I am looking into ways of fixing this. [import]uid: 5833 topic_id: 4422 reply_id: 13838[/import]

To go along with the new tutorial - http://justaddli.me/tutorial.php?t=0&id=8 - I have also uploaded the new version of the main code to here - http://dl.dropbox.com/u/571145/LimeBeta0.3.zip

Hopefully I haven’t introduced any more bugs :slight_smile: [import]uid: 5833 topic_id: 4422 reply_id: 14174[/import]

New update up - http://dl.dropbox.com/u/571145/LimeBeta0.4.zip

Just a simple change to allow you to now use this:

  
map:move(x, y)  
  

Useful in an update function or whatever, as well as:

[code]

map:setPosition(x, y)

[/code] [import]uid: 5833 topic_id: 4422 reply_id: 14280[/import]

Just uploaded another version, just a small change though. You can now add propertyListeners as described here - http://justaddli.me/api.php?c=map&m=addPropertyListener

Fairly simple to use and similar to object listeners.

The type paramamter passed to the listener function can be either “tile”, “layer”, “map”, “objectLayer” or “object”

The object parameter is the actual item that has the property on it.

Also, while I’m here, how do people like the updates. Would you prefer I hold off on the Beta updates so I release something every couple of days or just stick with releasing it whenever I have added something new? [import]uid: 5833 topic_id: 4422 reply_id: 14292[/import]

Another small update, this one to go along with the first gameplay-specific tutorial.

The update is here - http://dl.dropbox.com/u/571145/LimeBeta0.6.zip

The new tutorial is here - http://justaddli.me/tutorial.php?t=0&id=9

Hopefully the new tutorial will come in useful, it is a pretty short one but I hope to create more soon. I think my next gameplay-specific one might be for moving platforms or pickups, unless anyone else has any suggestions?

To those that are interested, the main code addition to this update is mentioned at the end of the tutorial. Basically properties of Tiled Objects that are used to create Corona physics bodies (such as the terrain) are now copied over so that in a collision event you can get access to them. [import]uid: 5833 topic_id: 4422 reply_id: 14311[/import]

Nice [import]uid: 12267 topic_id: 4422 reply_id: 14325[/import]

New update in, all this does is temporarily disable the chunking stuff until I can find a way to deal with it better. I’m not sure the chunking really made a speed difference anyway.

http://dl.dropbox.com/u/571145/LimeBeta0.7.zip [import]uid: 5833 topic_id: 4422 reply_id: 14365[/import]

Graham,

I tried the new setPosition method in version 0.7:

map:setPosition(20, 20)

and I get the following error in the terminal:

Runtime error: /Users/robsta/code/spart_lua/lychee.lua:1309: attempt to call field ‘setCameraPosition’ (a nil value)
stack traceback:
[C]: in function ‘setCameraPosition’
/Users/robsta/code/spart_lua/lychee.lua:1309: in function ‘setPosition’
/Users/robsta/code/spart_lua/main.lua:7: in main chunk

Am I doing something wrong?

Cheers!

Rob
[import]uid: 12431 topic_id: 4422 reply_id: 14496[/import]

Nope it was me doing something wrong, new code here - http://dl.dropbox.com/u/571145/LimeBeta0.8.zip [import]uid: 5833 topic_id: 4422 reply_id: 14520[/import]

Thanks, that works now :wink: [import]uid: 12431 topic_id: 4422 reply_id: 14530[/import]

Awesome! [import]uid: 5833 topic_id: 4422 reply_id: 14576[/import]

New update is up, just a small one that should have gone up a couple of days ago. The main additions are that files are now sortof namespaced to go along with a feature request, you will want to delete your lime, lychee, mango etc files and replace them with the new ones lime-lychee.lua, lime-mango.lua etc

Oh and also, I have a bad feeling that iOS might not like hyphens in filenames, could someone please test on hardware just to see if it runs atall, simple change if it explodes.

I have also added in two new functions on the map object as documented here and here [import]uid: 5833 topic_id: 4422 reply_id: 14959[/import]

Can we have the link to the update please? Thanks [import]uid: 11904 topic_id: 4422 reply_id: 14967[/import]

duplicate post due to server error deleted. [import]uid: 11904 topic_id: 4422 reply_id: 14969[/import]

Oops. my bad - http://justaddli.me/downloads/builds/beta/LimeBeta0.9.zip [import]uid: 5833 topic_id: 4422 reply_id: 15003[/import]

Got it. Thanks [import]uid: 11904 topic_id: 4422 reply_id: 15016[/import]

A new update is in - http://justaddli.me/downloads/builds/beta/LimeBeta1.0.zip

The only addition is that there is now a new function in the utilities module, and also I had forgotten to document the utilities module before so the API will get updated soon with these functions.

The new function is this:

screenToWorldPosition(map, position)

map is your actual map object loaded through Lime.

position is a table with an X and Y position.

It will return a table with the new X and Y positions in world co-ordinates.

There is also screenToTilePosition and worldToTilePosition, I will update this thread when the API listing has been updated. [import]uid: 5833 topic_id: 4422 reply_id: 15204[/import]

Congratulations on reaching v1.0! That sounds like one step closer to release. Happy New Year. [import]uid: 11904 topic_id: 4422 reply_id: 15212[/import]