News for hackers. Stuff that matters.
Re:LÖVE 0.10 released with iOS and Android support by shuzchen on Tuesday December 22, 2015 @09:15PM (#10781634)
When I had spare time I was working on a Terraria-inspired game. Here's a sample video of how far I got: https://www.youtube.com/watch?v=clxX8QZonL4 with the code here: https://bitbucket.org/sirpengi/lua_lovestory/src/tip?at=defa...

I ended up using luajit FFI to call into C to calculate lighting. I wonder what the FFI support is on the android/ios ports.

Re:LÖVE 0.10 released with iOS and Android support by talles on Tuesday December 22, 2015 @09:24PM (#10781656)
I love pet projects, specially little games (have made some with SDL in the past).

I don't know how Terraria does it (never played) but I suggest you that you only moved the camera when it's necessary (instead of keeping the character in the center literally always). The camera jumping along with the character might even let the player dizzy...

Re:LÖVE 0.10 released with iOS and Android support by coldpie on Wednesday December 23, 2015 @08:55AM (#10783240)
For entirely too many words about the various types of camera systems used in 2D games, see: https://docs.google.com/document/d/1iNSQIyNpVGHeak6isbP6AHdH...
Re:LÖVE 0.10 released with iOS and Android support by talles on Wednesday December 23, 2015 @12:44PM (#10784481)
That's some invaluable info. Thanks!
Re:LÖVE 0.10 released with iOS and Android support by pwiecz on Wednesday December 23, 2015 @04:41AM (#10782651)
https://youtu.be/pdvCO97jOQk around 7:30 shows how camera in terraria works :)