[ Index ] [ a / cr ] [ dev / lua ] [ meta ]

/lua/ - Lua programming

Metatables for president

[ ]

* required field

Please read the [Rules] and [FAQ] before posting.


Give your feedback on the board changes and suggest new ones at >>>/meta/30/


[Catalog] [Archive] [Refresh]
File: Love-game-logo-256x256.png (12 KB, 256x256)
Let's get this party started! Please read the rules before posting, etc.
File: 1452802415531.png (127 KB, 497x448)
>>1
>Services you should use
Throw your code on hastebin.com or gist.github.com or nobody will help you
Use GitHub for things that need to last more than a short while. No bitching.

>Useful (free!) programs
Blender - blender.org
Krita - krita.org
Atom - atom.io

>Chat!
#love on irc.oftc.net. If you aren't there, we're already laughing at you behind your back and talking shit about your waifu.
According to some, Zerobrane is also a pretty great Lua IDE. Check it out too!
/love/ -> /lua/

enjoy your newfound freedoms

File: 20210222_010941.jpg (16 KB, 559x423)
Like I look at the source code of this proj and oh wow I better start learning OOP so that my project isnt garbage. Ive heard metatables are hard. Is it true?
metatables aren't that hard really and you don't have to think about them for a pretty long time. most of the time even when you do need it you're just setting __call for a constructor and __index to another table though to give you a class prototype

oop is also kinda beside the point though (basic classes != oop) and not correlated with good code (it is correlated with over-engineered bullshit though)

most of the relevant stuff for organizing code is just basic lua syntax sugar, like being able to write function some_table:whatever() and it passes self automatically if you also call with :whatever()

File: 1 (1394).jpg (176 KB, 800x845)
Is this imageboard really made with Lua? based if true.
There seems to be no captcha? that screams botted spam
yup, made with Lua! check the GitHub link in the footer!

Bot spam stuff will come Soon(tm)!
>>95
Me again, 4 months later, how is the development going?
>>165
I've been slowly reworking the code to be much cleaner and run off an api so i can support other clients in the future~

File: 1513228265601.png (307 KB, 480x454)
Should I?
probably yes
Sure! I just updated it to run in Docker so it shoudl be WAY easier to set up now. I knwo the code is pretty messy, I am hoping to sit down and clean it up now that I have a better understanding of Lapis.

Short term wants is to make the code cleaner and less buggy, long term I want lapchan to run on a RESTful API.
test

File: Screenshot from 2017-10-1(...).png (10 KB, 284x121)
and i had never heard of this until doing a bit of research.

honestly, this place is pretty comfy.
what happend to lunaboards, it seems down

File: 1342947935779.png (1336 KB, 3779x4125)
s-s-so... how do i learn lua?!!

^~^
by making things in lua

i recommend the love2d wiki as a starting point they have a lot of good stuff https://love2d.org/wiki

File: Untitled.png (22 KB, 1914x1431)
56
1
3213
?

File: wxlualogo.png (27 KB, 128x128)
check out wxLua its p cool
http://wxlua.sourceforge.net/
>>26
I want to know why this damn thing isn't in luarocks, it makes life much more difficult than it should be.
I dunno maybe compatibility issues, its based on wx which is also stand alone so yeah
http://pastebin.com/dH8G633z
time clock I wrote :3
File: dj.gif (1006 KB, 303x216)
>>29
My clock doesn't tell time. BUT I DON'T NEED THAT SHIZZ!

File: tumblr_nw7xhlwJSJ1so2yzzo1_1280.png (154 KB, 640x1000)
FINALLY A LOVE BOARD <3
12 posts and 7 files omitted. Click here to view.
File: Love2d.png (540 KB, 2000x2000)
>>38
You mean like this?
>>43
flatter
>>43
this is awesome - where's her flat sidekick you promised! <3
>>43
doing god's work, son
File: !!!.png (91 KB, 949x698)
>>43

File: 5b6.jpg (31 KB, 600x480)
>love board
>no pico8 board
>wtfbro
who even uses pico8
>>24
indie retro tryhards
File: pico-8 gameplay.gif (171 KB, 269x173)
>pic related
>>41
nice, yours?

[1] [2] [Catalog] [Archive]
[ Index ] [ a / cr ] [ dev / lua ] [ meta ]