Elektrine lite

← Feed

@ZanaGB@lgbtqia.space

2026-09-09 05:31 UTC

Hey. A question for the fediverse at large. Does anyone involved in game development know if there is any course-type stuff for building a whole game in Love2D? Or simply anything more involved than: "Here is Asteroids and/or Pang" Most resources out there focus on single screen games but hardly any touch on... How do you load a level? How do you load and unload the game state? If you invoke a sub-screen how do you resume gameplay from where it was instead of loading anew? [The following is kind of a tangential rant] We know a lot of this is essentially logic and algorithm work (in the purest sense) and you are kind of supposed to know what kind of systems does your game need. But this is like trying to describe a car to someone who has never never seen one. You kinda need to see a working implementation (regardless of how appropiate for the game it may be) to at least get the skeleton of _what an implementation could possibly like_ Sure, Love2D can have a lot of parallels with an old 8 bit console but in one of those you can get away with clearing RAM, load a whole subsystem and then go back. And you usually don't need to worry with things like: _the enemy you just killed respawned after pausing_ because old games like that did it all the time. Or loading level data. You just held a pointer to a thing and all the level chunks load as the PC crawls through the table for that level. The parallelisms begin and end at the loaf, draw, update functions that resemble init, racing the bean, and vertical blank stages of drawing a single frame. Or perhaps our issue comes from seeing the three functions as a virtual console loading the gamestate, drawing every frame and updating the playfield and gamestate between frames. Anyhoo. That is our current predicament. #gamedev #lua #love2d

Replies (1)

  • @ZanaGB@lgbtqia.space I've been trying to work on something that focuses on single game concepts rather than a "path to a project". It does have a "lua edition" but sadly it doesn't have a Love2D-specific version (I wish I could make it, but there are only so many hours in a day). Hopefully it can give some tips on what to search around: https://therealpenaz91.itch.io/2dgd-f0th That's the most I can do to help currently!

    Open ##4655312