Search found 3444 matches

by zorg
Fri Dec 29, 2023 1:23 pm
Forum: General
Topic: I used ChatGPT
Replies: 16
Views: 221521

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: 249576

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: 252681

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: 19822

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: 39346

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: 13030

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: 12182

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: 39346

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.
by zorg
Wed Dec 13, 2023 8:42 pm
Forum: Support and Development
Topic: How to add window settings in main.lua file?
Replies: 1
Views: 8659

Re: How to add window settings in main.lua file?

Why do you want to move it into main.lua? Just leave it in conf.lua... also, it does not "belong to function love.load()" whatever that means. If you want to defer creation of the window, you still need a conf.lua file where you do... in your case, app.window = false, then in love.load, yo...
by zorg
Sun Dec 10, 2023 3:40 pm
Forum: Games and Creations
Topic: ModularLöve
Replies: 2
Views: 6466

Re: ModularLöve

Looks really interesting; always good to have fellow generative audio / audio synthesis afficionados who want to use löve for these kinds of stuff! :3