Search found 3444 matches
- Fri Dec 29, 2023 1:23 pm
- Forum: General
- Topic: I used ChatGPT
- Replies: 16
- Views: 230893
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...
- Fri Dec 29, 2023 11:22 am
- Forum: General
- Topic: [Just for fun] Roast my code.
- Replies: 14
- Views: 260556
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...
- 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: 263631
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...
- Fri Dec 29, 2023 11:18 am
- Forum: Support and Development
- Topic: Print not printing.[Sloved]
- Replies: 4
- Views: 20655
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")
io:setvbuf("no")
- Thu Dec 28, 2023 8:48 am
- Forum: Support and Development
- Topic: Can I create an engine on top of Love?
- Replies: 7
- Views: 40552
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...
- Sun Dec 24, 2023 5:55 pm
- Forum: General
- Topic: Best usecases for love.keypressed/keyreleased vs love.keyboard.isDown
- Replies: 6
- Views: 13581
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...
- Sun Dec 17, 2023 2:09 am
- Forum: General
- Topic: Error message when opening game in Love.exe
- Replies: 6
- Views: 12248
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.
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.
- Fri Dec 15, 2023 12:31 pm
- Forum: Support and Development
- Topic: Can I create an engine on top of Love?
- Replies: 7
- Views: 40552
- Wed Dec 13, 2023 8:42 pm
- Forum: Support and Development
- Topic: How to add window settings in main.lua file?
- Replies: 1
- Views: 8697
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...
- Sun Dec 10, 2023 3:40 pm
- Forum: Games and Creations
- Topic: ModularLöve
- Replies: 2
- Views: 6551
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!