Search found 174 matches

by Andlac028
Wed Aug 24, 2022 10:34 am
Forum: Support and Development
Topic: How to run both love2d and lua
Replies: 13
Views: 4428

Re: How to run both love2d and lua

I don't know, if I understand correctly, but in love2d, you can use both build-in lua and love2d functions. For example:

Code: Select all

text = "e"

function love.draw()
	print(text)
	love.graphics.print(text)
end
EDIT: fixed bad variable name in print()
by Andlac028
Tue Aug 16, 2022 4:54 pm
Forum: General
Topic: Love2D logo
Replies: 27
Views: 8580

Re: Love2D logo

darkfrei wrote: Mon Aug 15, 2022 8:43 pm
BrotSagtMist wrote: Mon Aug 15, 2022 8:40 pm The bubble should spell OBEY instead.
ÖBEY
Here you go (letters B and Y are hand-drawn by me, so they are not as good as Ö and E):
love2d logo obey.png
love2d logo obey.png (82.28 KiB) Viewed 2651 times
And here is SVG (thanks pgimeno for suggestion to zip it)
love2d logo obey.zip
(3.64 KiB) Downloaded 112 times
by Andlac028
Mon Aug 15, 2022 3:28 pm
Forum: General
Topic: Love2D logo
Replies: 27
Views: 8580

Re: Love2D logo

So I used Trace Bitmap option in Inkscape to create path by color differences and edge detection and then I just done some little tweaks (as there were some holes between colors) and there is the result preview (as forums does not allow uploading svg): love2d logo.png SVG available here: https://gis...
by Andlac028
Thu Aug 04, 2022 7:13 pm
Forum: Support and Development
Topic: linux server that supports love 2D lua
Replies: 6
Views: 2445

Re: linux server that supports love 2D lua

If your only problem is that you can not expose port to public (you can not forward ports), but you can run your .love server at home (for example on an old computer), you can use something like ngrok. It has free version (with some limitations), but for small usage or testing, it may bet enough
by Andlac028
Thu Aug 04, 2022 6:24 pm
Forum: General
Topic: Efficient way of distributing items
Replies: 11
Views: 3793

Re: Efficient way of distributing items

... milon's rarity version works though I think the list of items should be shuffled to avoid picking the same thing if there's more than one item with the same rarity. I suppose you could shuffle it, but it's really not necessary. You're picking a random number which is linearly distributed betwee...
by Andlac028
Sat Jul 09, 2022 8:49 am
Forum: Support and Development
Topic: I am so sorry
Replies: 4
Views: 1558

Re: I am so sorry

How to detect if there is a save or if you are playing for the first time???? There is it handling in slib.lua: function slib.load(filename, defaults, enc) filename = filename or slib.defaultFilename enc = enc or slib.defaultEncryption local tab = defaults local str = nil -- There is check, if file...
by Andlac028
Fri Jul 08, 2022 9:43 am
Forum: Support and Development
Topic: I am so sorry
Replies: 4
Views: 1558

Re: I am so sorry

Okay, so I fixed few things in your code: - you were loading g from file after you defined g, so if file doesn't exist, then it is empty table and Clicks become nil (I added defaults argument to Slib.load, so it only replaces default values with new values = if value is not found, default is still h...
by Andlac028
Sat Jul 02, 2022 8:20 am
Forum: Games and Creations
Topic: Balloon Adventure
Replies: 10
Views: 4810

Re: Balloon Adventure

BoonyBuny wrote: Sat Jul 02, 2022 1:00 am I used the old love.filesystem.exists() tho
It seems like it will be re-added in Love 12.0, as it is faster then getInfo if you only want to know, if it exists. See this commit
by Andlac028
Fri Jul 01, 2022 6:00 pm
Forum: Support and Development
Topic: Android App Keeps Stopping
Replies: 5
Views: 2591

Re: Android App Keeps Stopping

I found same error reported in the issue tracker and there seems to be some patch and solution
See https://github.com/love2d/love-android/issues/208
by Andlac028
Wed Jun 29, 2022 8:27 pm
Forum: Support and Development
Topic: Android App Keeps Stopping
Replies: 5
Views: 2591

Re: Android App Keeps Stopping

It seems like you do not have Python installed (so Python script is not able to run and thus is not able to detect love)...

Install Python (or if you have python3 installed, alias it to python)