LÖVE: 2D Game Framework for Lua

(github.com)

313 points | by cl3misch 2 days ago

27 comments

  • patapong
    14 hours ago
    One of the biggest recent indie hits, Balatro, was made in Löve!

    I really like it, the developer experience is so smooth for beginners, just drag a zip onto the exe and it starts. And the APIs are simple enough to memorize while allowing pretty cool rendering stuff.

    • KeplerBoy
      14 hours ago
      Balatro ships with the entire unobfuscated Lua source by the way.

      I once checked if the odds stated on a card were implemented wrong. Turns out no, the code checks out, I'm just that unlucky.

      • __s
        14 hours ago
        too bad universe doesn't ship with unobfuscated source so that you could see whether you're unlucky, or just skill issue
        • Tepix
          14 hours ago
          The source is right there, you just have to grok it.
          • m_mueller
            25 minutes ago
            that's great, could read the source code on how to unify gravity and quantum mechanics for all energy levels? vibeing to a nobel price will be cool...
          • Sardtok
            11 hours ago
            Well, it's kind of a machine code for a self-modifying compiler, so there's that.
          • RobotToaster
            4 hours ago
            I'm still waiting for the slackers at CERN to finish decompiling it.
      • brooke2k
        14 hours ago
        hahaha, I did the exact same thing after the game came out to see if wheel of fortune was really a 1/4 chance
        • mh-
          13 hours ago
          lol, love seeing that I'm not the only one who did this. Being suspicious of WoF was the first and last time I peeked at the Balatro source.
          • QuantumNomad_
            12 hours ago
            Game developers sometimes make the “randomness” favor the player, because of how we perceive randomness and chance.

            For example in Sid Meier’s Memoir, this is mentioned.

            Quoting from a review of said book:

            > People hate randomness: To placate people's busted sense of randomness and overdeveloped sense of fairness, Civ Revolutions had to implement some interesting decisions: any 3:1 battle in favor of human became a guaranteed win. Too many randomly bad outcomes in a row were mitigated.

            https://smus.com/books/sid-meiers-memoir/

            Some threads on randomness and perceived fairness in video games can be found here on HN too, for example https://news.ycombinator.com/item?id=19399044

            The original link being discussed in that thread is 404 now, but archived copies of the original link exist such as for example https://archive.is/8eVqt

            • bajsejohannes
              1 hour ago
              I worked on a game where we added a "fairness" factor to randomness. If you were unlucky in one battle, you were lucky in the next, and vice versa. Mathematically you ended up completely fair. (The game designer hated it, though, and it wasn't shipped like that)
            • renewiltord
              6 hours ago
              Games like Battle for Wesnoth which have it implemented right, you’ll look at a 90-10 scenario with 2 attacks and end up with the 1% scenario. Enough to make a man rage. I have degrees in Mathematics, I am aware of statistics, and all that. And yet when I played that game I would still have an instant “wait what, that’s super unlikely” before I had to mentally control for the fact that so many battles happen in a single map.

              Was good because it identified a personal mental flaw.

            • bsimpson
              9 hours ago
              Dispatch too. If your odds are above a certain threshold, the mission is a gimme.
            • addandsubtract
              10 hours ago
              I think XCOM does this as well.
          • lovehashbrowns
            12 hours ago
            The 8-ball joker is even more BS. I think I’ve only seen it trigger once ever.
            • mh-
              12 hours ago
              I've read the source a few years back. It's all implemented fairly as it says on the tin.

              I've long been suspicious of the RNG/seed implementation.. but not curious enough to automate testing of it, though.

              • StilesCrisis
                8 hours ago
                It's been done, it's a valid RNG. It's somewhere on Reddit if you want to try and search for it.
                • mh-
                  8 hours ago
                  I figured it had been tested by someone more motivated than me, haha, thanks! Will look for it when I'm back at a computer.
        • andrepd
          11 hours ago
          Neat example of cognitive bias, the brain perceives the Nope as being much more prevalent than it actually is!
          • tertle950
            10 hours ago
            For a small while I've had the idea of a [game engine/fantasy console/Scratch clone?] that comes packed with a bunch of example games. The example games should be good enough that people download it just to play them, but they are also encouraged to peek into their source code. I'd hope for it to be a sneaky gateway into programming.

            For that, I'll keep this in mind: "Unlucky players may look at the source code of a chance-based effect to check if the odds are actually as stated."

        • sfn42
          11 hours ago
          I didn't know I could check but after losing like 20 times in a row I just stopped taking WoF. Never saw the good outcome.
      • Levitating
        12 hours ago
        Not on steam does it? I can only see the exe and dlls.
        • jared0x90
          12 hours ago
          extract the exe like a zip file, that's how love packages itself. last i looked at the source myself it had comments in still from the dev
          • bsimpson
            9 hours ago
            I'm really curious how they do version control.

            The Steam version was created by one guy, but the platform ports have a couple different authors. The Google Play and Xbox PC versions, for instance, have divergences.

            I wonder how the ports influence the upstream and each other. How do they keep the codebases in sync, while also accounting for platform differences?

          • Levitating
            11 hours ago
            yep that works
      • PufPufPuf
        2 hours ago
        I know which card. We were all there. Are the odds wrong? "Nope!"
    • bsimpson
      13 hours ago
      In case you're curious, here's a Nix derivation to make Balatro for any other system playable on Linux:

      https://github.com/NixOS/nixpkgs/tree/master/pkgs/by-name/ba...

      I wrote half a blog post when I did the derivation. One day, I should finish it and post it here.

    • eek2121
      10 hours ago
      A lot of indie devs actually are fine with decompiling/viewing source. Even the STS2 devs have no issue with this. I think it is great and helps the indie dev community. Seeing this has actually made me excited about game dev to the point where I'm beginning to dig in myself.
    • Neywiny
      11 hours ago
      Haven't used it in almost 10 years but at least back then one sticky point was that unlike unity and the like, opening the exe didn't open an IDE. Just kind of a dummy window. Also building for Mac from Windows was a nightmare since my end user was not technically literate and it didn't just run on their end. But that's likely just a Mac issue
  • PufPufPuf
    2 hours ago
    I used LÖVE to build a simple Kodi alternative for my home media center setup. My first attempt was using Electron but rewriting to LÖVE meant much simpler code (turns out manually calculating coordinates is simpler than fighting CSS) and less resource consumption (not a high bar, yes). It works so well I might clean it up and open source it...
    • aktau
      1 hour ago
      What were your (main) problems with Kodi? AFAIK it is written in C++ with Python plugins. Electron would be (on the face) a downgrade yes. But how is a Lua app much smoother?

      (My personal pet peeve is that Kodi still doesn't know how to minimize CPU consumption when one is doing nothing on the UI. It should just stop rendering. This means I have to turn Kodi off on my HTPC+server setup to stop it from pushing my CPU in a higher power consumption mode.)

      • PufPufPuf
        35 minutes ago
        Kodi is super complex. The last straw was me wanting to launch Dolphin games from the UI and not being able to figure it out.

        My custom media center is basically just a glorified 10ft-UI file browser. Opens media files in mpv (with some extra GUI to download subtitles and select audio tracks), Wii games in Dolphin, runs shell scripts (I have ones launch Steam Link etc.)

        I realize that this might be a case of "simplify by limiting use cases" but I made it for me so it's fine.

  • miellaby
    4 minutes ago
    Still think Gideros SDK had more potential
  • nebula8804
    9 hours ago
    Anyone who is a fan of the TV Show Community MUST try out the recreation of the 8 bit video game episode(Digital Estate Planning) called Journey to the Center of Hawkthorne.

    [1]: https://projecthawkthorne.com/

    It is now available to play straight in the browser(I guess using LÖVE Web Builder?).

    [1]:https://schellingb.github.io/LoveWebBuilder/

    This engine has really come a long way and enabled such a memorable game for me.

  • wwarren
    14 hours ago
    I love LÖVE. For me it sits at the perfect intersection between high and low level abstraction. Unfortunately the latest released version is getting pretty long in the tooth now and a lot of devs use the latest HEAD from the repo since it has better performance and compatibility. One day the mythical 12.0 will get released for real…..
    • Gigachad
      5 hours ago
      It’s been a recurring issue I’ve seen in open source where there is active development but no releases. I don’t get why you’d put all the work in to fixing bugs and building features but not hit the button to build a release.
    • hu3
      10 hours ago
      You might like MonoGame. Same level of abstraction, but in C#.

      https://monogame.net

      • tertle950
        10 hours ago
        Since we've stepped from interpreted language (Lua) to compiled-to-VM language (C#), let's go all the way down to compiled, low-level language (C) with Raylib!

        https://www.raylib.com/

        • andersmurphy
          4 hours ago
          Or use raylib from luajit FFI and blow C# out of the water. Luajit can be faster than C, truly alien tech from Mike Pall.
  • PacificSpecific
    13 hours ago
    I generally very much dislike dynamic languages but for some reason I've always really liked Lua. I'm not exactly sure why to be honest.

    Maybe because you can fit the whole language spec on a single sheet of paper and adding more advanced features is pretty easy.

    Love looks really cool. I never got into it personally but I still might

    • turtledragonfly
      12 hours ago
      The Lua source code is also a masterclass in C, I recommend it to anyone learning that language. It's big enough to be an involved implementation, but small and focused and well-organized enough to (at least roughly) understand what's going on at the various layers. It's a very solidly-written mass of portable C, with only minor exceptions.
      • PacificSpecific
        12 hours ago
        Oh I hadn't considered looking at the source but considering how minimal and clean Lua is I should have assumed so :)

        Thanks for the tip. That should make for a fun weekend

    • sph
      1 hour ago
      I know it’s bikeshedding and leads to pointless discussions, but in my opinion Lua would be the perfect scripting language if it had 0-based indexing.

      “It makes more sense this way” is not a good enough reason to break convention.

      • rigonkulous
        1 hour ago
        There is nothing stopping you from doing someArray[0] = "the first item", you know.

        For me, the table is extremely powerful. I like it that it can be used as a sparse array, a hash, a vector, whatever. Of course one must know, at heart, the difference between pairs() and ipairs() and what it means for your data, though ..

    • Kaliboy
      11 hours ago
      Lua will forever hold a special place in my heart. It was the first programming language that I actually managed to learn, instead of just attempting to learn it.

      It was chosen around 2008 or so to be the scripting language in Multi Theft Auto: San Andreas.

      We build entire worlds in Lua, there were many gamemodes, but my favorite was Roleplay.

      Good old carefree times.

    • Iridescent_
      4 hours ago
      It has a very lego-like feeling, with simple, orthogonal design that lets you build the language and constructs you need. Very elegant.
    • linzhangrun
      2 hours ago
      Because Lua is simple and elegant — like the moon, isn’t it?
    • dgb23
      3 hours ago
      Lua is a scripting language done right.

      It doesn’t pretend to be more than it is. Anyone can learn it a couple of sessions. It has all the stuff you need to write a program.

      Imagine if we had Lua instead of JS in the browser.

      In fact the latter was once closer to Lua, but didn’t have the same philosophy of wanting to stay minimal.

  • yehoshuapw
    14 hours ago
    my favorite game in love: mario, with portals

    https://stabyourself.net/mari0/

    • seqizz
      14 hours ago
      I looove stabyourself. ortho robot was amazing. you know what, let me install again.. here goes my night.
      • jgtrosh
        12 hours ago
        I like the Trosh game
    • antisol
      3 hours ago
      Agreed, mari0 is awesome.

      Pity it's not playable in even mildly current versions of love because being backwards compatible takes some slight effort on behalf of framework maintainers.

    • ranger_danger
      12 hours ago
      How have they not been sued by Nintendo yet?
      • mid-kid
        11 hours ago
        Same reason all the other mario flash games haven't, not a critical enough mass.
  • 0xCAP
    14 hours ago
    My2c. Fintech tech lead who has only a far memory of hand coding games ages ago. Community makes tech awesome. Love2D discord changed my life. Never met a more awesome and welcoming community in my whole life.
  • marknote
    1 hour ago
    For anyone looking to code LÖVE2D games directly on an iOS device, I’ve created an app called love2d-studio: https://marknoteapp.com/love2d-studio
  • raincole
    14 hours ago
    Btw, Love2D is based on SDL2. If you hate Lua but needs the same cross-platform capabilities, you can use an SDL2 binding in other languages or make your own.
    • Levitating
      11 hours ago
      SDL3 should get more love in general.

      The SDL3 GPU API[1] provided a cross-platform GPU API even before WebGPU.

      In Rust it's a good alternative for winit/wgpu. For that reason I added it to areweguiyet.com[2] last week, where apparently it wasn't even listed before.

      I am currently using it to develop a space game[3] inspired by the original BBC Elite. Using emscripten to get on the web and QUIC/Webtransport for networking.

      [1]: https://wiki.libsdl.org/SDL3/CategoryGPU

      [2]: https://areweguiyet.com/#ecosystem

      [3]: https://git.levitati.ng/LevitatingBusinessMan/elite/src/bran...

      • runevault
        8 hours ago
        SDL3 is something I've been keeping an eye on, but at least one thing that held me back from diving into it was SDL_Mixer (audio library) was not updated to a release version for SDL3 until I think a month ago? I need to get back to it but lately I've been messing with SDL2 + wasm stuff using emscripten.
      • hresvelgr
        10 hours ago
        SDL3 doesn't support bindless resources and the plans to do so in the future are very loose[1].

        [1] https://github.com/libsdl-org/SDL/issues/11148#issuecomment-...

    • onehair
      12 hours ago
      Now why would you hate lua of all things?
      • xigoi
        1 hour ago
        In many aspects, Lua is more verbose and awkward than other similar languages. Compare

          local alive_enemies = {}
          for _, enemy in ipairs(enemies) do
            if not enemy.dead then
              table.insert(alive_enemies, enemy)
            end
          end
          enemies = alive_enemies
        
        with

          enemies = enemies.filter(enemy => enemy.alive)
        • onehair
          2 minutes ago
          well, it is true that the second one is more concise.

          The only difference is that one of the language is embedded and barely takes any place. it's just a few C files :-D It offers just enough functionality while not making it overly complicated to make basic things.

          The other one is way way bigger. and even Array.filter didn't exist from the start

        • widdershins
          15 minutes ago
          It's more minimalistic, that's true. But there's nothing stopping you writing or downloading an array library so you can do this:

            enemies = array.filter(enemies, function(e) return e.alive end)
          
          Or even setting a metatable so you can do:

            enemies = enemies.filter(function(e) return e.alive end)
      • raincole
        11 hours ago
        For all the reasons, but the 1-based index alone makes me uncomfortable.
        • WolfeReader
          9 hours ago
          1-based indexing is great. It's just _different_ - from C, where the array index is just sugar for pointer arithmetic, and from other languages which borrowed the practice without reasoning.
          • bajsejohannes
            1 hour ago
            There are arguments for why 0-based indexing is _better_, unrelated to pointer arithmetic. https://www.cs.utexas.edu/~EWD/transcriptions/EWD08xx/EWD831...

            > we had better regard —after all those centuries!— zero as a most natural number

            Of course, a counter argument is that we've already made the mistake of indexing with 1 in natural language (first, second, ...). That decision is not free of annoyances, though: the 19th century are year numbers 18xx, floors below the first have a varying names when they could have been negative numbers, etc.

            • ufo
              48 minutes ago
              That EWD is one if my pet peeves. Dijkstra makes an unfair comparison because he lists plenty of examples where 0-based indexing is more convenient but ignores the equally numerous situations where 1-based is more convenient. For example, iterating backwards over an array is much better in an 1-based world.

              I like the argument that 1-based is better for indexing and 0-based is better for offsets: https://hisham.hm/2021/01/18/again-on-0-based-vs-1-based-ind...

          • raincole
            6 hours ago
            The reasoning is to be consistent with C and it's more than enough reasoning for me. I don't know if 1-based indexing is fundamentally better. However, I know the probability that I will need to use other languages in the future is 100%, and they'll use 0-based index.

            It's like right-click-to-select.

      • bowsamic
        4 hours ago
        Small stdlib, “implement it yourself” philosophy to even things like classes, diverging language versions and fragmentation (a lot of people don’t like any of the post 5.1 changes), bad tooling and editor support, dynamic duck typed language with no type hints
      • onsclom
        11 hours ago
        I don't necessarily hate Lua, but I prefer C and Raylib for game dev. Lua is garbage collected, dynamically typed, strays far from standard syntax patterns, and has less existing tooling than C.

        I see why people might hate Lua. Especially for game dev!

        • andersmurphy
          4 hours ago
          Luajit is often faster than C. The qualities you described above actually make it great for game dev.
          • WhereIsTheTruth
            3 hours ago
            A JIT is a double edged sword, it _can_ make your code faster, i remember in the early days of smartphone gaming, developers often had to manually "warm up" the JIT to prevent stutters during gameplay

            It still is an issue nowadays https://discussions.unity.com/t/app-needs-warmup-first-slow-...

            Similar story with the GC, it's nice to have, until it causes you problems (wich it will), so you end up having to avoid using it and instead rely on manual techniques

            JIT and GC aren't the panacea people make them out to be

            • andersmurphy
              19 minutes ago
              True using a JIT without understanding it is not a panacea. Same as a GC. Same as malloc and free (you're often much better off with arena allocators).

              Most JITs let you tune when and how they inline. It's also worth knowing how they works and what they can/can't inline.

              You linked to monojit. Luajit is a whole other beast. I'd argue it's superior to anything in JS/JAVA/C# land (and I say that as someone with a reasonable understanding of the JVMs C2 JIT).

              As an aside with low latency GCs like the JVM's ZGC trading manual memory management for no memory related security vulnerabilities is pretty appealing.

              Like everything in programming it's a trade off.

        • krapp
          11 hours ago
          Lua is extremely popular for game dev though?
    • CyberDildonics
      11 hours ago
      There is a lot more that goes into Love2D than just SDL. It uses many other libraries for sound, image loading, etc as well as using luajit so that the lua runs very fast and has a super easy C FFI.
      • Levitating
        10 hours ago
        But SDL already provides an API for all the things you listed. So I am assuming the libraries in Love2D still call those underlying SDL APIs right?
        • CyberDildonics
          10 hours ago
          Love2D uses openAL for audio, FreeType 2 for fonts, DevIL for image loading and Box2D for physics. It can also use image fonts. It uses luasocket for networking and has a compression API built in.

          On top of that there are love2d specific libraries people have written to deal with 2D games like GUIs and tile libraries.

          Then there is the ease of debugging, where you can use lua to have runtime access to the table of variables and can print them on screen if you need to, not to mention dynamically loading new update and draw and input functions.

          This is all to say that just downloading SDL is not going to get anywhere close to what love2d has included.

    • newobj
      13 hours ago
      SDL3
      • jasonjmcghee
        13 hours ago
        Definitely SDL2.

        Author is currently building version 12 which will be using SDL3. But it's been in development for quite some time with no clear end date afaik.

        • dannyfritz07
          5 hours ago
          Who is "the author" these days? Is it Slime? I wonder what Rude and Bartbes and vrld are up to these days. Are releases still done on holidays? Are all libraries still named after sex themes? I was active for versions 0.4 - 0.6.
        • newobj
          9 hours ago
          I stand corrected!
        • krapp
          13 hours ago
          It is easy to get Lua (with LuaJIT) working with SDL3, though.

          That obviously isn't a replacement for the framework but it is perfectly doable if someone just wants to write a game in Lua with minimal overhead.

          Edit: I mention LuaJIT specifically because it lets you create metaclasses around C objects, which is much easier than messing with the Lua stack from C, and it's easy to make a 2d vector class from an SDL Point or a spritesheet or what have you. There are a few rough edges like dealing with pointers and gc but to me it's the best of both worlds (the speed of C, and some implicit type checking, and the flexibility of Lua.)

          Obviously you could do it the hard way and the other way around with normal modern Lua but it's such a pain in the ass.

      • raincole
        13 hours ago
        As far as I know only the latest (unstable) version uses SDL3.
  • K0IN
    13 hours ago
    I love löve I did some projects in it, lua was one of my fist programming language, i think it's a great fit for game dev.

    Also move or die is running on love2d, which is an awesome game.

    Also I love that trick that you can just zip your files and binary Comcast them to the love2d binary and it will load it.

  • JSR_FDED
    9 hours ago
    Lua is very fast - even without the JIT it makes Python feel like wading through molasses.

    Lua is so small and simple (but not simplistic) that you can keep it completely in your head. Even if you only get to work on your project once every weekend you won’t have to relearn half of it every time.

  • rwbt
    2 hours ago
    I use this framework to build prototype applications and it's always a delight. Something about Lua just feels right. Once I'm satisfied with a demo or prototype, I later on port it to native C/C++ implementation.
  • chunqiuyiyu
    5 hours ago
    I’m a big fan of Love2D as well. it’s simple, efficient, and really easy to get productive with. After just a short learning period, I was able to ship my first indie game on Steam, a small Chinese‑character puzzle game built entirely with Love2D. https://store.steampowered.com/app/4218330/WordJoy/
  • kelvinjps10
    5 hours ago
    The website might have been better, in the submission https://love2d.org
  • nout
    13 hours ago
    Am I really the first one to mention pico8 in this thread? Anyway, pico8 is another option that has a bit different spin, but you also implement the games in Lua :)
    • rigonkulous
      52 minutes ago
      antirez' LOAD81 never gets enough love in these discussions even though it is simply awesome:

      https://github.com/antirez/load81

      Anyone looking at Lua/SDL/game engines would learn a lot from antirez' fun little afternoon project ..

    • opan
      12 hours ago
      TIC-80 is a nice free as in freedom alternative to PICO-8, and it allows more inputs, which makes for better Tetris games (gotta have that hold piece).
      • Vedor
        1 hour ago
        TIC-80 is great indeed, I had even ore fu with it than with PICO-8 and that's a high bar.

        But there is one gripe -- when packaging apps into executable, TIC-80 pulls templates from the Internet.

        On one hand, it's not that big deal, we are online basically all time nowadays. But on the other hand, I would expect that kind of software to be self-contained.

        I found a quite simple (but definitely not frictionless) workaround though - you can build the templates yourself, edit source code to work with localhost instead of TIC website, and host the templates on local webserver.

        As I said, it's not a frictionless solution, but I don't know C well enough to make more substantial changes to this behaviour.

      • emptybits
        6 hours ago
        TIC-80 is wonderful to play in. Besides being free/open, another advantage over PICO-8 is TIC-80 has native support for Fennel. i.e. you can code within the system editor in Lua OR Fennel (or half a dozen other languages!) You don't have to edit and transpile to Lua on the desktop as you would with PICO-8. This has some value in debugging with error messages and line numbers.

        It's also just plain cool to rock the TIC-80 editor fullscreen with narrow font, coding natively in Lisp and publishing the result to a webpage you can share.

        I wish the iOS (app) deployment story was a little smoother for TIC-80.

      • tertle950
        10 hours ago
        Is this about Master of Blocks?

        There are a lot of free-as-in-freedom alternatives to (and clones of) PICO-8, but TIC-80 is indeed the most popular one, by far. And popularity is important for any software ecosystem. I really like that it supports other languages, even if that kinda inhibits its ability to be embedded into small hardware.

        Apparently the nightly release supports DCPM samples now. Dunno why.

      • nout
        8 hours ago
        It's just that pico8 has much larger ecosystem. There's a new great game almost every day. It is sort of annoying that it's not FOSS, but on the other hand the team/author has sustainable business.
  • p2detar
    14 hours ago
    As someone that used to write 2D games with things like phaserjs, sdl and even directx7, I always regret I never tried Löve2d. I think Android and iOS packaging was also supported. Is this still the case? What if one wants to integrate IAP?
    • 1313ed01
      10 hours ago
      Pretty sure there is still app packaging documented somewhere. There is also, at least for Android, an official Löve2D Launcher app that can open any love-file saved to the phone and execute it. I use that all the time.

      The Launcher is available also for old Android versions, which means that old obsolete Android devices (I have some tablets and phones) can be used for whatever it can be fun to still write some GUI for on some spare touchscreen device.

  • chadpaulson
    10 hours ago
    I love this framework, pun intended. I made a clone of Atari's Missile Command with it many years ago when the Portal / Mario mashup game made with LÖVE was popular. https://github.com/chadpaulson/missile-command
  • 1313ed01
    10 hours ago
    Was going to post a link to the minimal template for setting up Löve2D with Fennel, that I can really recommend, and found this recent article describing that...

    https://itch.io/jam/love2d-jam-2026/topic/6082771/how-to-get...

    ... posted in the site of the 2026 Löve2D Game Jam, that sounds like something also worth mentioning: https://itch.io/jam/love2d-jam-2026

    Too late to enter. Jam was last month. But there are 47 games to check out there, plus many from previous years.

  • marcomezzavilla
    13 hours ago
    LÖVE seems amazing, I’ve always looked at it with curiosity. There’s also the legendary Harvard CS50’s Introduction to 2D Game Development, which now uses it in its latest version.

    But I’m wondering: why do mature tools like this sometimes end up on Hacker News’ front page without any particular news (like new releases or updates)? It’s just a curiosity, not a critique.

  • herczegzsolt
    14 hours ago
    I've used this for many projects that are still working to this day.

    That said, i'm not impressed. A web-based solution is usually better performing, despite all the bloatware necessary. This says a lot about the state of software development unfortunately.

    • tertle950
      10 hours ago
      I'm curious as to how you came to that conclusion. Did you run any tests, or is it just a general observation? What's your computer hardware like? This isn't an accusation of anything, I promise I'm genuinely curious.
      • herczegzsolt
        4 hours ago
        I've not done proper scientific comparisons, but had to reimplement some games as websites to make them reliably perform on Raspberry Pi's we used embedded.

        This is a bit of an apples to oranges scenario, because the algorithm and architecture is not exactly the same, despite the game functioning identical.

        The main weak points of LÖVE that we hit were mainly around embedded video playback though, which is probably very well optimized in chromium.

    • actuallyalys
      11 hours ago
      I don’t usually push LÖVE to its limits because I tend to make simple games as a hobby but I do keep an eye on its framerate and often it‘s in the 100s of frames per second. So it may not be impressive (in sense of winning benchmarks) but it’s rarely perceivably slow.
    • small_scombrus
      14 hours ago
      It isn't web based? It's a set of Lua scripts that run locally
      • squeaky-clean
        14 hours ago
        They are saying web based solutions often out perform LÖVE, even though you would expect the opposite because LÖVE doesn't have the bloat of a browser engine.
        • usrnm
          13 hours ago
          Browser engines are probably some of the most optimized pieces of software in existence, so it doesn't surprise me at all.
          • sph
            1 hour ago
            Optimized abstraction layer is still an abstraction layer. The web is like two or three of those.
          • wiseowise
            11 hours ago
            Explain this to electron haters.
            • QuadmasterXLII
              10 hours ago
              step 1 htop

              there isnt step 2, explain is over

            • krapp
              11 hours ago
              Browser engines are optimized for displaying web pages, not for applications.

              60MB+ for a calculator is not optimal.

              • hu3
                10 hours ago
                explain that to my webgl TypeScript browser game running at 180+ FPS while rendering a large RPG tiled world with infinite procedurally JIT generated biomes, with heavy processing delegated to webworkers.
                • sph
                  1 hour ago
                  Meanwhile that same computer could probably run Counter Strike at 400 FPS.
                • krapp
                  10 hours ago
                  As you aren't posting code or stats I can't say much, but I'd bet a native app would still be smaller and more efficient, since you have to wrap what you're doing in an entire Chromium instance and deal with a web stack designed for documents, which is definitionally less efficient than a native alternative. Tiles aren't exactly cutting edge technology.

                  "Heavy processing delegated to webworkers?" That just sounds like threads but worse.

                  • wiseowise
                    43 minutes ago
                    Nobody ever said in the thread that web is the most efficient platform, stop with your “designed for documents” trauma already.
                  • hu3
                    3 hours ago
                    yep, native is faster for sure.

                    but webgl + web workers is good enough these days.

                    I can't share code sorry, the project got big and I have commercial plans.

                    But you can tell Gemini 3.1, Opus 4.6 or GPT 5.4 High to generate a demo and they do a decent job most of the times.

                    that's how I got started, seeing how it was possible to have good game performance with multi threaded workloads on a browser.

          • CyberDildonics
            10 hours ago
            Love2D uses Luajit and directly calls established game libraries. The CPU usage should be far better for 2D games, luajit is faster than a browser's javascript jit. You can also create single exe games that are a few megabytes and not a few hundred megabytes.
    • andrewmcwatters
      10 hours ago
      [dead]
  • alprado50
    12 hours ago
    Is Love2D a decent option for gamedev compared to Godot? I finished a really simple game using Unity3D and it was fun, but it sucks to use a closed source engine.
    • onehair
      12 hours ago
      Godot will be familiar to you if you then.

      Löve on the other hand is 100% just code. You'll not have the gui things and the pletora of different components that go with them. Still gives you freedom. Just too much freedom and not as much helpful preset tools.

    • jtolmar
      11 hours ago
      Yeah, Love2d is a great option for gamedev. It doesn't have the same built-in tools as Godot so you'll need something else for putting together maps (use Tiled [1]), and you'll need to write your own main/render loops (these are just two for loops, nothing fancy).

      [1] https://www.mapeditor.org/

    • CJefferson
      9 hours ago
      It’s very different, and it depends what you are targeting. I love love2d.

      I think love2d is better if what you love is coding, everything is code, love2d just executes Lua.

      If what someone wants to do is make (for example) a 2d platformer, or definately for 3d, and the coding is something you need to do to make your game, goody is better, it includes so many batteries, have a built in gui level editor, etc.

      One big advantage of love2d (although ironically not loved by many in its audience) is it is the AI friendly engine, as AIs love text and hate GUIs.

  • pmarreck
    9 hours ago
    I need something like this but for cross platform utilities
    • vslira
      9 hours ago
      I haven't done it myself, using game engines as UI frameworks is not unheard of :)
  • anthk
    11 hours ago
    UXN can be interesting for 2D games too.
    • tertle950
      10 hours ago
      The fantasy computer by 100 rabbits? I love their philosophy, I'm glad Varvara exists, but I'm personally not up to program assembly for a 4-color screen, and I'm sure many others are the same.
  • VorpalWay
    12 hours ago
    How is it supposed to be pronounced? Is it just gratuitous diacritics? Or should I pronounce it in my native Swedish (where the names makes me think of leaves rather than love)?

    (Throwing diacritics on English words look extremely silly to me, since I know how åäö are supposed to be pronounced. It makes something like Motorhead just sound laughable rather than metal.)

    • Sardtok
      11 hours ago
      The project was started by Norwegians. So I feel like you should apply juuuust the right amount of cheesiness and sort of push that Ø-vowel looong. Not sure if Ruud would agree, though.
    • xigoi
      1 hour ago
      I instinctively pronounce it [løv].
  • SilentM68
    7 hours ago
    Interesting framework :)
  • davidkunz
    13 hours ago
    I haven't tried Löve, but I somehow enjoyed reading through the README.md, no AI slop, just a natural writing style with tiny indictors showing the authors' enthusiasm in creating software.
    • Sardtok
      10 hours ago
      The project predates Github, although the first official release came out about a month prior. So, yeah, not a lot of AI slop 20 years ago.