Search found 3436 matches

by zorg
Mon Jan 01, 2024 9:03 am
Forum: Support and Development
Topic: I need help with loading lua files (my brain cannot comprehend the wiki)
Replies: 1
Views: 5698

Re: I need help with loading lua files (my brain cannot comprehend the wiki)

Hi and welcome to the forums. So, first off, löve uses a virtual filesystem where the root '/' points to two places; one being the save directory, and one being the place where main.lua is in. - You can run a folder containing main.lua with löve, and it'll run your project. - You can put the *conten...
by zorg
Sun Dec 31, 2023 11:41 am
Forum: Support and Development
Topic: Can I create an engine on top of Love?
Replies: 7
Views: 37546

Re: Can I create an engine on top of Love?

Thankfully you are not other people. :3
by zorg
Fri Dec 29, 2023 1:23 pm
Forum: General
Topic: I used ChatGPT
Replies: 16
Views: 207271

Re: I used ChatGPT

Also might have had to do with marketing departments trying to push the term because it was *the* current hot thing. And it'd probably be wise to use different terms if one would want to implement multiple types of NPC behaviour in games... "behaviour" being one term, but it could have mul...
by zorg
Fri Dec 29, 2023 11:22 am
Forum: General
Topic: [Just for fun] Roast my code.
Replies: 14
Views: 233719

Re: [Just for fun] Roast my code.

Why is 'tmp' a global??? Local variables have far better performance! Also, try to structure your game to not need love.load() at all - it'll help you improve your code structure. First one is minuscule on most real life examples, but it does help code structuring; The second one is up to preferenc...
by zorg
Fri Dec 29, 2023 11:21 am
Forum: Support and Development
Topic: PlayerSprite stutter and eventually is artifacted if drawn on canvas else not
Replies: 20
Views: 236365

Re: PlayerSprite stutter and eventually is artifacted if drawn on canvas else not

You could also consider not killing your performance by recreating everything graphics related every time you resize your project by just having a virtual resolution that's constant, and tied to a canvas, then you only need to position and scale that canvas to fit the actual window/screen resolution...
by zorg
Fri Dec 29, 2023 11:18 am
Forum: Support and Development
Topic: Print not printing.[Sloved]
Replies: 4
Views: 18582

Re: Print not printing.

Try doing this at the top of your main.lua, because sometimes writes to console get buffered and it might not print in time or some sillyness like that:

io:setvbuf("no")
by zorg
Thu Dec 28, 2023 8:48 am
Forum: Support and Development
Topic: Can I create an engine on top of Love?
Replies: 7
Views: 37546

Re: Can I create an engine on top of Love?

I think yes but for a commercial one where this me to risky(but im just beginner coder) eventually some other's here will answer aswell ? and i personally would eventually recommend opengl or c++ + opengl or lua + opengl and write your engine from scratch not with a already somewhat overblown and p...
by zorg
Sun Dec 24, 2023 5:55 pm
Forum: General
Topic: Best usecases for love.keypressed/keyreleased vs love.keyboard.isDown
Replies: 6
Views: 12180

Re: Best usecases for love.keypressed/keyreleased vs love.keyboard.isDown

You can also smartly combine these to create a system where you can tell whether a key is in a specific state out of 4: - pressed this frame, - held this frame (press happened earlier), - released this frame, - not being held Also, probably better to use the scancode parameters and love.keyboard.isS...
by zorg
Sun Dec 17, 2023 2:09 am
Forum: General
Topic: Error message when opening game in Love.exe
Replies: 6
Views: 12107

Re: Error message when opening game in Love.exe

Hi,

First of all, stop using rar, and compress your project with regular zip instead, that's the only format supported in most places.

Second, dll and other libraries that aren't lua files won't ever work from compressed archives, you'd need to copy them out to the save folder for them to work.
by zorg
Fri Dec 15, 2023 12:31 pm
Forum: Support and Development
Topic: Can I create an engine on top of Love?
Replies: 7
Views: 37546

Re: Can I create an engine on top of Love?

What do you mean exactly by generating graphics and sounds? Procedural stuff? Sure, you can programmatically make both graphics and sounds with ImageData and SoundData objects, for starters.