home.social

#love2d — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #love2d, aggregated by home.social.

  1. Lua has many dialects, and I love them all ❤️
    But how to write one lua-file and target them all?
    Answer: metaprogramming

    Here's a small ~700 bytes gpp-ish metaprogramming awk script 🎉

    #lua #teal #nelua #redbean #esp32 #wasm #love2D #awk

    ps. its not limited to lua :coolcat:

    codeberg.org/coderofsalvation/

  2. Lua has many dialects, and I love them all ❤️
    But how to write one lua-file and target them all?
    Answer: metaprogramming

    Here's a small ~700 bytes gpp-ish metaprogramming awk script 🎉

    #lua #teal #nelua #redbean #esp32 #wasm #love2D #awk

    ps. its not limited to lua :coolcat:

    codeberg.org/coderofsalvation/

  3. Lua has many dialects, and I love them all ❤️
    But how to write one lua-file and target them all?
    Answer: metaprogramming

    Here's a small ~700 bytes gpp-ish metaprogramming awk script 🎉

    #lua #teal #nelua #redbean #esp32 #wasm #love2D #awk

    ps. its not limited to lua :coolcat:

    codeberg.org/coderofsalvation/

  4. Lua has many dialects, and I love them all ❤️
    But how to write one lua-file and target them all?
    Answer: metaprogramming

    Here's a small ~700 bytes gpp-ish metaprogramming awk script 🎉

    #lua #teal #nelua #redbean #esp32 #wasm #love2D #awk

    ps. its not limited to lua :coolcat:

    codeberg.org/coderofsalvation/

  5. Lua has many dialects, and I love them all ❤️
    But how to write one lua-file and target them all?
    Answer: metaprogramming

    Here's a small ~700 bytes gpp-ish metaprogramming awk script 🎉

    #lua #teal #nelua #redbean #esp32 #wasm #love2D #awk

    ps. its not limited to lua :coolcat:

    codeberg.org/coderofsalvation/

  6. Я сделал скоростной аналог скретча(12289+ скриптов)! История разработки новичка

    Я только начинаю писать код, он у меня не аккуратный и странный, я его нигде не публиковал никогда, проект писать на luaJIT love 2d, а заголовок правдивый, оно смогло запустить на одном ядре слабого ноутбука 12300 потоков в которых были блоки IF, ROTATE и WHILE TRUE и стабильные 30 fps. t.me/Turbo_Scratch/63 Топик в моём тгк с видео демонстрациями, там же если хотите можете протестировать мой проект, но в нём очень много багов особенно связанных с типами данных, lua не типизированный язык, в будущем эти баги я исправлю добавив разные проверки, и проект я выложил чтобы получить мнение общества. Движок я выбрал не случайно, мне понравился синтаксис lua, этот язык и библиотеку love 2d подсказала ии, на этой же библиотеке написан Pocket Up(аналог pocket code, тоже визуальное программирование), также этот язык использует байт-код и jit компиляцию что по словам ии должно сильно увеличивать скорость. Также love 2d собирается под многие платформы Windows, macos, вроде даже linux, android, ios. Читал офф сайт и нашёл упоминание игры Balatro, я эту игру до этого только раз слышал, но про что она не знаю. Писал я всё в VS Code, это очень удобный редактор кода, я на нём и другие свои проекты писал. С lua я уже был знаком, так как я уже делал игру на roblox studio, и не так давно, осенью 25 года. Я сразу хотел писать свой редактор так чтобы он работал на Windows, и собирал проекты в EXE(уже реализовано), apk и html. И чтобы отделить в будущем редактор и интерпретатор игры я разделил проект на части Main.lua - редактор, Micropaint.lua - редактор спрайтов, ну и по мелочи GameLoader.lua - загрузчик игр, BlockList.lua - список доступных блоков, не хотел его лепить в main.lua тк там 518 строк, + я туда ещё добавил функцию отрисовки блоков и удобнее когда функционал разделён на отдельные файлы.

    habr.com/ru/articles/1018684/

    #скрипты #scratch #lua #luajit #luaскриптинг #love2d #история_it #геймдев #история_создания

  7. Love2d gamejam starts Friday!

    itch.io/jam/love2d-jam-2026

    There are a couple tweaks I'm making to the default searcher and safe wrapper in the minimal love2d fennel setup, to give better tracebacks.

    codeberg.org/alexjgriffith/min

    #fennel #gamedev #love2d

  8. Last night I went down the mpd rabbit hole.

    I now have about 25% of its client API implemented in fennel with the only dependency being lua-socket.

    Guess what comes with lua-socket baked in!

    codeberg.org/alexjgriffith/fen

    #love2d #fennel

  9. I've been doing compatibility testing of my Lua5.4 builds and the official LuaJIT version of love2d across a bunch of projects.

    To make my life easier I've started adding "loveproject.json" files to the root of my projects, which contain information like the location of the love executable intended to be used with the project.

    I've also updated love2d-fennel.el to check for this file to see if there is a custom 'love2d-fennel-program'.

    codeberg.org/alexjgriffith/lov

    #love2d #emacs #fennel

  10. I'm putting together a collection of libraries I've implemented over the years for developing games in love2d with fennel.

    I've pulled out standalone libraries before. But in each I had to embed common data structures and could not rely on other libraries (either my own or third party).

    Complex libraries would live with the game code for each jam, making them difficult to port to new games, or develop/maintain independently.

    /1

    codeberg.org/alexjgriffith/alf

    #gamedev #love2d #fennel

  11. And the hardware will stay the same for a while, so optmizing for it makes sense. Instead of #qbasic or AMOS we now have #love2d with ZeroBaneStudio, for #allegro we have #raylib and deluxe paint now became aseprite/libresprite, etc. Plus it can run your favorite retro emulator/fantasy console.

  12. first time ever I use #luajit's #ffi library and I honestly don't know why did I do it with this

    #lua #love2d

  13. I'm finishing up the animatic (moving storyboard) for a 2D animated short film called 'Lazy Dog'.
    Now let's proceed with caution...

    #lazydog #animation #love2d #animatic #storyboard #movie #shortfilm #film

  14. I'm finishing up the animatic (moving storyboard) for a 2D animated short film called 'Lazy Dog'.
    Now let's proceed with caution...

    #lazydog #animation #love2d #animatic #storyboard #movie #shortfilm #film

  15. I'm finishing up the animatic (moving storyboard) for a 2D animated short film called 'Lazy Dog'.
    Now let's proceed with caution...

    #lazydog #animation #love2d #animatic #storyboard #movie #shortfilm #film

  16. This is awesome to use ngl. I think my player library is ready for me to toss some games at it.

    #GameDev #Flick #Love2D

  17. SHARK TURTLE releases tomorrow for Mac & Windows, with free DLC containing 320 additional tile sets! #sharkturtle #samegame #macigame #marchintosh #love2d #gamedev #indiedev

  18. Hundreds of classic tile sets have been recovered from vintage media and will be made available as an additional free download (with credits). #sharkturtle #samegame #macigame #marchintosh #love2d #gamedev #indiedev

  19. Sound and music are in, which I no doubt made more complicated than need be #love2d #sharkturtle #samegame

  20. Testing the three different types of tilesets (samegame, extended samegame, macigame) #marchintosh #macigame #samegame #sharkturtle #love2d

  21. Naturally, I’ve added support for “MaciGame” tilesets from the Classic Macintosh game. #macigame #love2d #samegame #sharkturtle

  22. Am I ready to inflict a loss of productivity this huge on the world? With puzzles comes great responsibility. 😅 #love2d #samegame #sharkturtle

  23. Playing around with a #love2d project to test some tech stuff:
    - A #box2d character controller
    - Creating and exporting maps from @tiled
    - A tile set with a normal map to create a day / night effect.
    - Reverb and echo effects

    #indiedev