Live data from Hacker News

LÖVE 0.10 released with iOS and Android support

love2d.org

81–90 of 100 posts

Re: LÖVE 0.10 released with iOS and Android support

#81
post #63
post #12

Lack of native mobile support was one of the reasons I dropped LOVE for other frameworks. This is fantastic, and LOVE/Lua is really fun to work with, I highly recommend this framework.

What framework did you use instead?

Adobe AIR

Re: LÖVE 0.10 released with iOS and Android support

#82
post #10

Earlier quoted context omitted.

How's the performance compared to say Cocos2d-X in C++? For say something like large scale steering forces and Behavior agents?

LuaJIT is fast and Love is minimal. It has threads and can callout to C. So performance is good.

Turns out JIT is disabled on iOS and AppleTV. So might not get that boost.

Re: LÖVE 0.10 released with iOS and Android support

#84
post #55

Earlier quoted context omitted.

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.

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...

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

#86
post #59
post #46

Anyone got any games written using LÖVE to show HN?

There is this: https://projecthawkthorne.com/ which is based on an episode of the TV show Community. It is open-source and based on community effort. https://www.reddit.com/r/hawkthorne https://github.com/hawkthorne/hawkthorne-journey

Came here to say this.

Re: LÖVE 0.10 released with iOS and Android support

#88

I kind of wish someone would be inspired to write something like this in Elm ( http://elm-lang.org/ ), if only to help people get away from buggy OO-mutable languages

I just don't understand comments like these. Providing a blanket statement that doesn't provide any reasons whatsoever. It doesn't really help contribute to the post, and it just angers people. I hate the term troll, but that's what this feels like. If you actually feel this way then I feel bad that you restrict yourself to only one type of tool. Also I find it confusing when functional evangelicals talk bad about OO…

You don't understand comments like this because you probably don't speak from years (20+) of programming experience in OO languages, like I do, and because it is hard to show people certain better ways of doing things that unfortunately requires years of experience beating your head against the wall in other ways to really see it. But don't take my word for it, here is John Carmack (hardcore C++ developer) on the topic, from this link: http://gamasutra.com/view/news/169296/Indepth_Functional_pro...

"My pragmatic summary: A large fraction of the flaws in software development are due to programmers not fully understanding all the possible states their code may execute in. (Emphasis mine. That alone explains most of the bugs I've seen.) In a multithreaded environment, the lack of understanding and the resulting problems are greatly amplified, almost to the point of panic if you are paying attention. Programming in a functional style makes the state presented to your code explicit, which makes it much easier to reason about, and, in a completely pure system, makes thread race conditions impossible...

"No matter what language you work in, programming in a functional style provides benefits. You should do it whenever it is convenient, and you should think hard about the decision when it isn't convenient."

This is a man who has coded slightly longer than I have, and IMHO he is correct on all these points.

I merely believe he didn't go far enough (for example, immutable "variables", which are not available in OO languages without hairy workarounds, ENSURE that the state your code "sees" is not tampered with "from the outside," further reducing bugs), but statements like this are why I take the viewpoint I do.

Take the amount of time you debug as a percentage of your total programming time (and hell, we all enjoy debugging to a degree, don't we? But what's debugging, really? All it is, is trying to discover a state that wasn't conceived of when the code was designed, no? That's the whole point of your stack trace, right?). Now, chop that time in half. Would you want this? Who wouldn't?

Yes, FP is not appropriate for all realms where code lives. But it should most certainly fill all the spaces it currently does not, where its appropriateness is not out of the question.

I would also strongly recommend the "Are We There Yet?" talk by Rich Hickey http://www.infoq.com/presentations/Are-We-There-Yet-Rich-Hic... which pretty much destroys mutability as a language-level trait, pretty much rendering it the mother of all bugs (literally).

Again, don't take my word for it- here is MIT's core CS curriculum on mutability's dangers: http://web.mit.edu/6.005/www/fa15/classes/09-immutability/

Have I made a strong argument yet, now?

This is why I get upset whenever a new language comes out that does not feature FP/immutable paradigms. If you're new, you SHOULD be using these, otherwise you're just perpetuating more man-years of debugging hell for people. I am tired of watching new programmers make the same mistakes over and over and over again.

The very length of this comment alone indicates how hard it is to communicate this AND why it sounds like preaching/proselytizing/trolling.

Re: LÖVE 0.10 released with iOS and Android support

#89

I kind of wish someone would be inspired to write something like this in Elm ( http://elm-lang.org/ ), if only to help people get away from buggy OO-mutable languages

You got to be subtler than that for effective trolling.

Yeah, yeah. Read this, I responded: https://news.ycombinator.com/item?id=10783873

Re: LÖVE 0.10 released with iOS and Android support

#90

How does LÖVE users handle source being open when distributing games? I would guess not everyone will be okay with their artwork, sound files and other resources being available so easily.

HTML5 game development is much the same. Even with compiled applications someone can get your code and resources if they want them, so ...

I think if developers aren't okay with their resources being that available, they probably don't look at using frameworks like this.

Post reply on HN