News for hackers. Stuff that matters.
Re:Show HN: I open sourced a game I just released on Steam, ... by wheybags on Sunday May 23, 2021 @08:09AM (#27254455)
Love2d (the lua engine used here) is really great. If I were teaching a newbie to programming, I'd probably have them start with love. It makes it super easy yo just get something on screen, and you're not screwing around with configuration, build systems and package managers etc (the death of productivity IMO, especially for a beginner). I used it on a recent jam game too (https://wheybags.itch.io/drilbert)
Re:Show HN: I open sourced a game I just released on Steam, ... by jmiskovic on Sunday May 23, 2021 @09:29AM (#27254871)
Been using Love2d for few years now, and you are right on point that it's great for education.

You can get fun things to happen with few lines of code. The whole API fits into your head, and together with Lua's simplicity this is a powerful combo. Any complexity in code comes from your side. With live reloading, development happens in tight loop with running environment, and this easily drags you into the zone.

At the same time the framework is low level. The included functions cover only interfacing HW and rendering graphical primitives. It's just a thin abstraction layer that greatly simplifies accessing OS features. Everything else like scene management, AI navigation, live code reloading, skeletal animation, common graphics shaders, tile maps, sound management, UI, that's all left out of the framework. Numerous Lua libraries were made to fill in the missing stuff.

You get to pick from different solutions and glue them together with script code. This is very consistent with general Lua mindset. Neither functional constructs nor OOP are not included in Lua, but both can easily be brought in with any of dozen libraries. It creates fractured space and it's kind of bazaar of different tech stacks that are same but different.

Other frameworks and engines (Defold, Solar2D, Roblox) that use Lua all take integrated approach where more of functionality is crammed into engine itself. This is a more closed solution where you aren't supposed to extend the engine much, just script inside it.

Re:Show HN: I open sourced a game I just released on Steam, ... by canadianfella on Sunday May 23, 2021 @01:21PM (#27256729)
> Neither functional constructs nor OOP are not included in Lua

That’s hard to read.

Re:Show HN: I open sourced a game I just released on Steam, ... by Banana699 on Sunday May 23, 2021 @07:24PM (#27259556)
I think they didn't mean the double negative, since they continue with "both can be brought with libraries" which implies they are not included in the core language, which is the opposite of this doubly negated statment.
Re:Show HN: I open sourced a game I just released on Steam, ... by samatman on Monday May 24, 2021 @12:00AM (#27260975)
It's very likely, given the occasional dropped article, that the poster in question is not a native English speaker, and probably from a language where 'double negative' is agreement, as in "we don't need no education".
Re:Show HN: I open sourced a game I just released on Steam, ... by jmiskovic on Monday May 24, 2021 @04:15AM (#27262093)
You are correct that I'm not a native speaker, and also that my language uses double negatives. Alas, this mistake was due to editing small part of sentence and neglecting to re-read the whole thing. I won't try to avoid not making this error never again.
Re:Show HN: I open sourced a game I just released on Steam, ... by jmiskovic on Monday May 24, 2021 @03:41PM (#27268793)
Also, thanks for pointing out the dropped articles. The gmail spell checker often wants to insert those into my texts. While in most cases it felt they were not necessary, obviously the omission gets noticed.
Re:Show HN: I open sourced a game I just released on Steam, ... by spicybright on Sunday May 23, 2021 @08:57AM (#27254698)
Another good beginner game dev framework is kaboom.js

https://kaboomjs.com/

Example project online: https://kaboomjs.com/examples#level

And just to add, if anyone has been using love2d or other frameworks like it, give GoDot a try.

I started using it a few weeks ago and it's amazing how much I'm getting done with my game.

Re:Show HN: I open sourced a game I just released on Steam, ... by yonifei on Sunday May 23, 2021 @11:13AM (#27255516)
Flash with ActionScript 2/3 was incredible for this sort of thing as well.
Re:Show HN: I open sourced a game I just released on Steam, ... by nicetryguy on Sunday May 23, 2021 @12:06PM (#27256056)
People argue that Flash has been completely replaced with HTML5, but, there is no GUI / interface for designing games / animations for the web that even comes close to what Flash had. I miss me some movieclips =(
Re:Show HN: I open sourced a game I just released on Steam, ... by derefr on Sunday May 23, 2021 @06:04PM (#27259049)
Flash-the-format is gone, but Flash-the-editor never went away. It's just called Adobe Animate now. It now exports projects (incl. arbitrarily-complex ActionScript-based games) to HTML5 rather than SWF, with literally no loss of functionality (and in fact gains in functionality instead) compared to the SWF days.

Animate also exports to Adobe's AIR runtime — which isn't just "that weird Adobe thing you had to install on your PC once to run a business presentation", but much more importantly translates to the ability to export a project to a native mobile app for iOS/Android, since these platforms have AIR-runtime implementation as libraries you can link into an app project.

Not sure why everyone seems to have forgotten it existed. It's not like it went unmaintained or anything, the way Fireworks was for a while before its death. Animate is still a great and modern tool, with new features being added all the time. It's become a first-in-class tool for animation studios to produce cartoons with — thus the updated name/branding. People just seem to have lost, in the process of that rebrand, all awareness of the fact that it can still be used to make games/interactive experiences. Which is a shame.

Re:Show HN: I open sourced a game I just released on Steam, ... by WorldMaker on Monday May 24, 2021 @05:33PM (#27269985)
I believe what went away was the ability to get Animate for cheap. Flash was extremely highly pirated and that served as an entryway for young would be web devs/game makers. In the Creative Cloud era, pirating Animate has become a lot harder to do. So fewer people know of what it can do after the easier to pirate eras, and in turn fewer people see it as an on ramp to web animation and/or game development.

Not that pirating is the right solution nor that Adobe doesn't have a right to make money from their software, but that Adobe is missing a possibly huge audience they could attract with more "middle options" than super locked down Creative Cloud accounts such as for kids without access to the family's purse strings, for lower income and education use, for try before you buy needs, etc.

Re:Show HN: I open sourced a game I just released on Steam, ... by VWWHFSfQ on Sunday May 23, 2021 @12:18PM (#27256173)
I learned to program with Flash MX 2004. I had no idea what I was doing but within a day or so I had made some pretty cool stuff that I was proud of. Was hooked from then on.
Re:Show HN: I open sourced a game I just released on Steam, ... by emehrkay on Sunday May 23, 2021 @02:53PM (#27257517)
The Flash IDE was top notch. And the fact that it made a one-file executable was pretty cool too. And their version of javascript with classes was damn cool (was it es6?).

Flash had a nice dev-to-executable experience, too bad it was soured by its browser inclusion. It could've been a great alternative to Java/Electron as the build once run anywhere lang. Adobe was a bit too early with Air

Re:Show HN: I open sourced a game I just released on Steam, ... by ronyeh on Sunday May 23, 2021 @03:03PM (#27257593)
AS 3.0 was ecmascript and similar to typescript! I loved actionscript 3.
Re:Show HN: I open sourced a game I just released on Steam, ... by fiddlerwoaroof on Sunday May 23, 2021 @04:45PM (#27258443)
AS 3.0 was the closest we got to an ECMAScript 4 implementation.
Re:Show HN: I open sourced a game I just released on Steam, ... by geswit2x on Sunday May 23, 2021 @02:01PM (#27257078)
HaxeFlixel + FlashDevelop
Re:Show HN: I open sourced a game I just released on Steam, ... by sumnole on Sunday May 23, 2021 @02:54PM (#27257534)
Flash Player can be emulated with https://ruffle.rs/ but there's still no viable replacement afaik for Flash IDE.
Re:Show HN: I open sourced a game I just released on Steam, ... by cmrdsprklpny on Sunday May 23, 2021 @04:35PM (#27258356)
wickeditor.com is trying to fill this niche, still pretty young but under active development.
Re:Show HN: I open sourced a game I just released on Steam, ... by lc9er on Sunday May 23, 2021 @11:04AM (#27255448)
I really enjoyed this set of tutorials for Tic-80, which also uses Lua (or Fennel/Moonscript/Wren/JS). The series was a really great intro not just the tic-80 engine, but programming concepts in general. A friend of mine was able to take some of the concepts he learned and was able to improve the bit of spreadsheet/data munching that he has to do for his otherwise non-technical work.

(https://m.youtube.com/playlist?list=PLvOT6zBnJyYF3FzmfXz2QXM...)

Re:Show HN: I open sourced a game I just released on Steam, ... by grawprog on Sunday May 23, 2021 @05:09PM (#27258607)
Love2d was the first 'real' game engine I ever played around with. I made a bunch of silly little games with it. My only real problem is not really to do with love2d but lua itself. Debugging lua is a pain. There was one debugging addon I remember finding for love2d that was sort of hacky and didn't work that well.

Otherwise, honestly it's a great little engine and like you say, if you're pretty new to programming and want to try making games for fun, lua and love2d is a great way to go.

Re:Show HN: I open sourced a game I just released on Steam, ... by mikepurvis on Sunday May 23, 2021 @08:39AM (#27254598)
Seems like it could be nice next step up from Pico-8, especially for users who’ve moved on to using external art tools and text editors anyway.
Re:Show HN: I open sourced a game I just released on Steam, ... by seany on Sunday May 23, 2021 @06:12PM (#27259106)
Solar2d is also quite good. https://solar2d.com/ its technically older than love, but it started as Corona (not opensource)