home.social

#nelua — Public Fediverse posts

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

fetched live
  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. 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

  4. 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

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

    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

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

    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

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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

  12. 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

  13. 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

  14. 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

  15. New attack patterns :)

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

    #nelua #gamedev #indiedev

  16. New attack patterns :)

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

    #nelua #gamedev #indiedev

  17. 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

  18. 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

  19. @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/

  20. 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.
  21. Whilst I work on learning #Nelua, finishing up #tasky. I am also teaching myself some #Ada!
  22. 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!
  23. Function pointers in #Nelua have a nicer syntax than that of C's if I am gonna be real
  24. 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
  25. @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.

  26. 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
  27. 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)