Live data from Hacker News

Grid – A Lua Game Engine

planimeter.org

41–50 of 79 posts

Re: Grid – A Lua Game Engine

#41
post #27

Earlier quoted context omitted.

Ignoring metatable weirdness, I think "you need to throw out most of what you know" is quite wrong. The main thing you need to know is that Lua's table type can be numerically iterated between index 1 and the first gap where numeric index has nil value using the ipairs iterator in addition to the non-exclusively-numeric unordered pairs iterator. A common pitfall with sparse tables is that the length shortcut # return…

Lua's lack of integer support caused me some issues. Using floor() around everything wasn't really an ideal solution and I ended up changing languages for that project. Metatables are cool, but have some weirdness to them. For OOP i ended up using metatables to make a simple prototype(rather than class) based system, but it was hacky at best. Tables themselves are pretty awesome and powerful, but I have to admit, wor…

Integer support was added in Lua 5.3 (released in January 2015). It also added binary operators, rendering the bitop module obsolete.

One thing I never understood is the mania for OO programming---I regularly see people announce Yet Another OO Module for Lua on the mailing list, and I have to ask myself, "Why?" Is OO the only thing taught these days in school? There are other ways of organizing code than OO.

Re: Grid – A Lua Game Engine

#42

Thank you for posting this, Bambo! I was curious why we were seeing 10s of new stars all of a sudden and trying to figure out where the GitHubbers were coming from. Grid Engine 9 is now the largest pure-Lua game engine on GitHub. As s_y_n_t_a_x has mentioned in this thread, I built the Grid Engine on top of LÖVE. I came from the hlcoders world, having used the Source Engine for several years, and was upset the 2D wor…

Would you happen to know of any games that use Grid? If so, it would be nice to list them on the homepage.

Unfortunately not. I'm always looking to feature game developers on Grid's site, though!

Re: Grid – A Lua Game Engine

#44
Apparently the developers are reading this thread, so I have a request: Please reduce your website's dependence on javascript. Doesn't leave a great impression when I need to fiddle with noscript before seeing static text.

Re: Grid – A Lua Game Engine

#46

any examples of games made with this?

I'm making a mobile mmorpg using this engine. We're currently in the early spriting & game mechanic planning phases but Grid has been a perfect starting point. It's the sweet spot in-between LÖVE (Grid extends LÖVE) and a heavier engine like Defold, the multiplayer features are killer. If you're wanting to make a tile-based multiplayer game, I highly recommend it.

Are you posting anything on GitHub publicly? I'd be interested in seeing some sample code!

Re: Grid – A Lua Game Engine

#49
post #17

Earlier quoted context omitted.

To be clear: Python does have embeddability, but it is orders of magnitude more complicated to integrate.

Hehe, hence the word "embeddability" instead of "embeddable".

Oh yes. I used that word very precisely :D

Re: Grid – A Lua Game Engine

#50
post #44

Apparently the developers are reading this thread, so I have a request: Please reduce your website's dependence on javascript. Doesn't leave a great impression when I need to fiddle with noscript before seeing static text.

I would do more of this if I had a simpler way of pulling documentation from the GitHub Wiki repo.

I’m sorry the experience was poor, and I’ll consider this feedback as I make improvements to our documentation and marketing collateral to make it nicer to use. My apologies. I work hard to win over developers, many times one at a time, and so your feedback isn’t lost on me.

Post reply on HN