Search found 125 matches

by Darlex
Sat Jun 29, 2019 8:15 pm
Forum: Libraries and Tools
Topic: Slab - An Immediate Mode GUI Library In Lua
Replies: 48
Views: 65303

Re: Slab - An Immediate Mode GUI Library In Lua

I love this project! I'm using it on my project to create a working love2d ide! Could you please add a highlight option for text inputs, please? like: Slab.Input("code_input", { Text = examplecode, MultiLine = true, H=500, W=500, Highlight = {"here","goes","the","highlighted","words"}} And some func...
by Darlex
Fri May 17, 2019 11:25 am
Forum: Support and Development
Topic: Send stuff via lan [solved]
Replies: 2
Views: 1552

Re: Send stuff via lan

bobbyjones wrote:
Fri May 17, 2019 4:28 am
https://coronalabs.com/blog/2014/09/23/ ... th-udptcp/

That tutorial was written for CoronaSDK but the library it uses, Luasocket, is available in Love. You should be able to get inspiration from the tutorial.
Thanks
by Darlex
Fri May 17, 2019 4:16 am
Forum: Support and Development
Topic: Send stuff via lan [solved]
Replies: 2
Views: 1552

Send stuff via lan [solved]

How i can send stuff like text trough wifi/lan connection?
There is a simple way or is it just complicated?
by Darlex
Sun May 12, 2019 11:05 pm
Forum: Support and Development
Topic: How to divide a multiline string into another strings? [Solved]
Replies: 3
Views: 1223

Re: How to divide a multiline string into another strings?

raidho36 wrote:
Sun May 12, 2019 10:09 pm

Code: Select all

for line in string.gmatch ( str, "(.-)[\n\r]" ) do ...
That's useful! THX
by Darlex
Sun May 12, 2019 8:52 pm
Forum: Support and Development
Topic: question about tables [SOLVED]
Replies: 3
Views: 1349

Re: question about tables

raidho36 wrote:
Thu May 09, 2019 10:08 am
You should do these each on their own line, use as little of syntax sugar as possible. It's more verbose but it's easier to read which will be very important when you'll be editing it.
And it can look really good. (Not like mine, that is spaghetti)
by Darlex
Sun May 12, 2019 8:50 pm
Forum: Support and Development
Topic: How to divide a multiline string into another strings? [Solved]
Replies: 3
Views: 1223

How to divide a multiline string into another strings? [Solved]

Something like:

Code: Select all

	input = [[
	Im a cool dude
	doesnt it?
	]]
	table = divide(input)
	printtable(table)
OUTPUT:
{"Im a cool dude","doesnt it?"}
by Darlex
Sun May 12, 2019 7:24 pm
Forum: Support and Development
Topic: Creating a image from zero? [SOLVED]
Replies: 2
Views: 1082

Re: Creating a image from zero?

zorg wrote:
Sun May 12, 2019 6:48 pm
That is exactly the way, except you use love.image.newImageData.
You can also use mapPixel on ImageDatas... also read through the wiki, it helps.
wtf really?. Thanks!
by Darlex
Sun May 12, 2019 6:38 pm
Forum: Support and Development
Topic: Creating a image from zero? [SOLVED]
Replies: 2
Views: 1082

Creating a image from zero? [SOLVED]

There is some way of creating a image from zero and saving it to a local file? like:

Code: Select all

img = love.graphics.createImage(200,200) --200x200 image
img:setPixel(1,1,0.5,0.7,0.87) --Sets the pixel x:1,y:1 to color 0.5, 0.7, 0.87
img:encode("poop.png")
by Darlex
Wed May 08, 2019 4:31 pm
Forum: Games and Creations
Topic: Mario Kart: Extreme Drift
Replies: 18
Views: 21759

Re: Mario Kart: Extreme Drift

So here I am again, years later, with another Mario Kart thing. This time it's a bit more playable, though. 2 years ago, hatninja PM'd me about my Mario Kart shader demo, asking for a bit of help to make this https://love2d.org/forums/viewtopic.php?f=5&t=83309 and that helped me get sprites working...