#lua

24 posts · Last used 6d

Trying to gets back into programming. I just wrote a lua GTK app which logs "Hewwo World" to terminal when u presses the button that says "dog". This is useless, but should be the first step towards a graphical software center for alpine linux called "alpaca"(ALpine PACkage Administator). #lua #GTK #programming #linux
8
4
2
0
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
3
7
1
0
Finally finished writing the Pumpkin Push (Sokoban clone) game chapters of my Lua and Love2D programming tutorial. Progress has been so slow... but I'm happy to have at least wrapped up this chapter. :ameowbongo: I think part of my problem motivation wise has been that my target audience is hypothetical. When I've written tutorials in the past, they've usually been directed at solving specific problems I saw a community having, but that isn't the case this time around. I hope it's useful to somebody? I have vague ideas for what the next chapters might be, but I'm not sure if or when they'll ever be written. https://brookmiles.ca/game-programming-lua-love2d/part-ii/pumpkin-push-ii/ #lua #love2d #gamedev
19
8
10
0
I made a little Zettelkasten plugin for Neovim: https://codeberg.org/smeikx/zetka.nvim I’ve started a Zettelkasten to reflect on media I read, watch and listen to; I hope this will help me define, refine, explain and defend my core beliefs and opinions. I created the plugin myself to think about how I want to use my personal Zettelkasten and because it was fun. But I tried to make it useful for other people too, so give it a try if you like. #nvim #Neovim #lua #Zettelkasten #PIM
5
2
0
0
Replying to
@richardjh@phpc.social so am i right that #perl and #php and #lua and #lisp and #forth are the only ones left without bigtech dominating and deciding where languages go.
10
11
9
0
tiny lua compiler: a lua compiler in a single file, that's well-documented, that was hand-crafted over several years, and made to teach you compiler/tokenizer/parser/lexer design. this is a crazy impressive project, and in a time when people are haphazardly slopcoding projects, is a standard to live by. https://github.com/bytexenon/Tiny-Lua-Compiler #programming #lua
219
6
112
0