home.social

#nelua — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #nelua, 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. In today's ℂ𝕣𝕦𝕟𝕔𝕙𝕚𝕟𝕖𝕤𝕤 & 𝓬𝓻𝓮𝓪𝓶𝓲𝓷𝓮𝓼𝓼: squash and stretch.

    There's no change in animation, just in code.

    With that said, be sure to make your sprite drawing frame customizable, I had to re-implement a framework function to extend this functionality.

    #gamedev #MadeWithNene #nelua

  7. In today's ℂ𝕣𝕦𝕟𝕔𝕙𝕚𝕟𝕖𝕤𝕤 & 𝓬𝓻𝓮𝓪𝓶𝓲𝓷𝓮𝓼𝓼: squash and stretch.

    There's no change in animation, just in code.

    With that said, be sure to make your sprite drawing frame customizable, I had to re-implement a framework function to extend this functionality.

    #gamedev #MadeWithNene #nelua

  8. In today's ℂ𝕣𝕦𝕟𝕔𝕙𝕚𝕟𝕖𝕤𝕤 & 𝓬𝓻𝓮𝓪𝓶𝓲𝓷𝓮𝓼𝓼: squash and stretch.

    There's no change in animation, just in code.

    With that said, be sure to make your sprite drawing frame customizable, I had to re-implement a framework function to extend this functionality.

    #gamedev #MadeWithNene #nelua

  9. In today's ℂ𝕣𝕦𝕟𝕔𝕙𝕚𝕟𝕖𝕤𝕤 & 𝓬𝓻𝓮𝓪𝓶𝓲𝓷𝓮𝓼𝓼: squash and stretch.

    There's no change in animation, just in code.

    With that said, be sure to make your sprite drawing frame customizable, I had to re-implement a framework function to extend this functionality.

    #gamedev #MadeWithNene #nelua

  10. In today's ℂ𝕣𝕦𝕟𝕔𝕙𝕚𝕟𝕖𝕤𝕤 & 𝓬𝓻𝓮𝓪𝓶𝓲𝓷𝓮𝓼𝓼: squash and stretch.

    There's no change in animation, just in code.

    With that said, be sure to make your sprite drawing frame customizable, I had to re-implement a framework function to extend this functionality.

    #gamedev #MadeWithNene #nelua

  11. ℂ𝕣𝕦𝕟𝕔𝕙𝕚𝕟𝕖𝕤𝕤 & 𝓬𝓻𝓮𝓪𝓶𝓲𝓷𝓮𝓼𝓼

    We (the team) were a bit bothered with the amount of time consumed by restart transition.

    Now is faster by identifying that it was a level restart.

    (art and animation by Leonardo)

    #GameDev #MadeWithNene #nelua

  12. ℂ𝕣𝕦𝕟𝕔𝕙𝕚𝕟𝕖𝕤𝕤 & 𝓬𝓻𝓮𝓪𝓶𝓲𝓷𝓮𝓼𝓼

    We (the team) were a bit bothered with the amount of time consumed by restart transition.

    Now is faster by identifying that it was a level restart.

    (art and animation by Leonardo)

    #GameDev #MadeWithNene #nelua

  13. ℂ𝕣𝕦𝕟𝕔𝕙𝕚𝕟𝕖𝕤𝕤 & 𝓬𝓻𝓮𝓪𝓶𝓲𝓷𝓮𝓼𝓼

    We (the team) were a bit bothered with the amount of time consumed by restart transition.

    Now is faster by identifying that it was a level restart.

    (art and animation by Leonardo)

    #GameDev #MadeWithNene #nelua

  14. ℂ𝕣𝕦𝕟𝕔𝕙𝕚𝕟𝕖𝕤𝕤 & 𝓬𝓻𝓮𝓪𝓶𝓲𝓷𝓮𝓼𝓼

    We (the team) were a bit bothered with the amount of time consumed by restart transition.

    Now is faster by identifying that it was a level restart.

    (art and animation by Leonardo)

    #GameDev #MadeWithNene #nelua

  15. ℂ𝕣𝕦𝕟𝕔𝕙𝕚𝕟𝕖𝕤𝕤 & 𝓬𝓻𝓮𝓪𝓶𝓲𝓷𝓮𝓼𝓼

    We (the team) were a bit bothered with the amount of time consumed by restart transition.

    Now is faster by identifying that it was a level restart.

    (art and animation by Leonardo)

    #GameDev #MadeWithNene #nelua

  16. Working again on my game, the GUI it's probably finished (thanks Polyglot project for translations!)

    Now I need to save these settings :gamedev:

    (pixel-art made by Leonardo)

    #gamedev #madewithnene #nelua

  17. Working again on my game, the GUI it's probably finished (thanks Polyglot project for translations!)

    Now I need to save these settings :gamedev:

    (pixel-art made by Leonardo)

    #gamedev #madewithnene #nelua

  18. Working again on my game, the GUI it's probably finished (thanks Polyglot project for translations!)

    Now I need to save these settings :gamedev:

    (pixel-art made by Leonardo)

    #gamedev #madewithnene #nelua

  19. Working again on my game, the GUI it's probably finished (thanks Polyglot project for translations!)

    Now I need to save these settings :gamedev:

    (pixel-art made by Leonardo)

    #gamedev #madewithnene #nelua

  20. Working again on my game, the GUI it's probably finished (thanks Polyglot project for translations!)

    Now I need to save these settings :gamedev:

    (pixel-art made by Leonardo)

    #gamedev #madewithnene #nelua

  21. So, I implemented some sort of "Rust-ish traits" for Nelua, and seems to match very well with Entity-Components patttern...

    Maybe that's why ECS it's so popular on Rust gamedev scene.

    #nelua

  22. That was hard, but I finally did it 😶

    On LDtk, I only had support for number properties (like Money = 20), now properties of any type can be obtained.

    Seems simple, but I had to write a json parser for this 😶.

    Now, with this, I probably can resume the development of the game I was making hehe.

    #nelua #gamedev #ldtk

  23. It works, finally 🥲, if I complete the Object, Array and union bits, it'll be finally near to resume game development by actually developing a game 😅.

    #nelua

  24. New attack patterns :)

    The problem now is making this enemy actually doing something 🤔.

    #nelua #gamedev #indiedev

  25. Just optimized the collision boxes of the tilemap, thus making it lighter to traverse on them.

    Now, the next part it's new to me: stop being a simple prototype, and start being an actual "game" prototype.

    #gamedev #nelua

  26. @phryk I have some personal reasons for not heavily investing in Nim but found something similar with #nelua that looks promising for me (but isn't widely adopted).

    nelua.io/

  27. Perl, god I want to puke now.

    Perhaps scripts should just be written in something like #nelua. As much native as we can get we should strive for.
  28. Whilst I work on learning #Nelua, finishing up #tasky. I am also teaching myself some #Ada!
  29. So I am continuing with my work on learning #nelua!

    After I finish this tutorial I should write something in it, that will only come later probably though!
  30. Function pointers in #Nelua have a nicer syntax than that of C's if I am gonna be real
  31. Also messed around more with #nelua, hopefully I will be done learning ti and have a great grasp with it by end of this month. Luckily the C-ness of it makes a lot of it easy.

    It reminds me a lot, syntacially, of #crystal but it is nowhere near the same seeing as that language oopifies everything, from what I recall, or well most things
  32. @deavmi I knew about it but haven't used it. Please do keep us informed on how you like it.

    My vision for the #RetroEdgeTechStack includes #lua as a preferred development and configuration language so I ran across #nelua while searching for things based on Lua.

    I'm not really a programmer, but I dabble in it and one of my sons is quite good at it.

  33. @deavmi I knew about it but haven't used it. Please do keep us informed on how you like it.

    My vision for the #RetroEdgeTechStack includes #lua as a preferred development and configuration language so I ran across #nelua while searching for things based on Lua.

    I'm not really a programmer, but I dabble in it and one of my sons is quite good at it.

  34. Found a new little language called #nelua that is native! Learning it now, going to add it to my arsenal of languages, this is great!

    http://nelua.io
  35. my #raylib #nelua binding generator is almost done ;-;

    PR: libregit.org/Andre-LA/raylib-n
    PR on github mirror: github.com/Andre-LA/raylib-nel

    (simplified raylib header on the left, generated binding on the right)