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  

https://codeberg.org/coderofsalvation/meta.awk

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

โ„‚๐•ฃ๐•ฆ๐•Ÿ๐•”๐•™๐•š๐•Ÿ๐•–๐•ค๐•ค & ๐“ฌ๐“ป๐“ฎ๐“ช๐“ถ๐“ฒ๐“ท๐“ฎ๐“ผ๐“ผ

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

Transition finally works!

(Art and animation made by Leonardo)

#gamedev #nelua #madewithnene

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

Now I need to save these settings  

(pixel-art made by Leonardo)

#gamedev #madewithnene #nelua

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

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

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

New attack patterns :)

The problem now is making this enemy actually doing something ๐Ÿค”.

#nelua #gamedev #indiedev

The trigonometrical "final" boss can't hurt you ๐Ÿ‘€

#nelua #gamedev #indiedev #screenshotsaturday