Search found 2886 matches

by slime
Thu Aug 26, 2021 12:43 pm
Forum: Support and Development
Topic: [11.3] Decoding sound data from the byte string
Replies: 2
Views: 2710

Re: [11.3] Decoding sound data from the byte string

You can put the string into a FileData via the love.filesystem.newFileData variant which accepts a string + (fake) filename combination. The filename can be anything as long as it has .ogg extension at the end.
by slime
Mon Jul 05, 2021 10:00 pm
Forum: Support and Development
Topic: Text not printed properly in android version
Replies: 7
Views: 3302

Re: Text not printed properly in android version

I wonder if this is yet another auto-batcher bug. Too bad it can't be disabled. It's much more likely to be a graphics driver bug than a problem in love's higher level batching code, given how platform- and device-specific it is. love started using more "modern" (8-12+ year old) OpenGL AP...
by slime
Fri Jul 02, 2021 5:11 pm
Forum: Support and Development
Topic: iOS build don't work, semantic issue
Replies: 8
Views: 5878

Re: iOS build don't work, semantic issue

You might need the iOS dependencies from here: https://github.com/slime73/love-apple-dependencies
by slime
Thu Jul 01, 2021 8:13 pm
Forum: General
Topic: Best practices and things you'd like changed about Love2D
Replies: 47
Views: 41433

Re: Best practices and things you'd like changed about Love2D

I linked the default game loop above so you can see how it works (or modify it to your liking) if you want to debug your issue more. Maybe you have some code that takes unexpectedly long inside one of the first frames after loading? There are a few ways to investigate that sort of issue.
by slime
Thu Jul 01, 2021 7:14 pm
Forum: General
Topic: Best practices and things you'd like changed about Love2D
Replies: 47
Views: 41433

Re: Best practices and things you'd like changed about Love2D

So the load callback method is indeed a bit misleading in that sense it is not actually taking care of loading but instead of removing it I think maybe it should actually take care of loading for us before calling update? It probably is a bug in your code - in the default game loop ( love.run ), lo...
by slime
Thu Jul 01, 2021 6:15 pm
Forum: Support and Development
Topic: iOS build don't work, semantic issue
Replies: 8
Views: 5878

Re: iOS build don't work, semantic issue

iOS build issues with recent Xcode versions should be fixed by using the latest love source from github, yeah.
by slime
Mon Jun 21, 2021 4:30 pm
Forum: Support and Development
Topic: Crash drawing large number of circles
Replies: 6
Views: 6591

Re: Crash drawing large number of circles

Unfortunately there's a bug in love's smooth line code in 11.3. You could switch to rough lines (love.graphics.setLineStyle("rough")) or draw images that look like circles, or update to the latest 11.4 code from github: https://github.com/love2d/love
by slime
Sun Jun 06, 2021 9:27 pm
Forum: General
Topic: Best practices and things you'd like changed about Love2D
Replies: 47
Views: 41433

Re: Best practices and things you'd like changed about Love2D

I agree that love.load is pretty redundant since love 11 (however it had initialization-related reasons to exist prior to love 11) - but outright removing it and breaking a bunch of code hasn't been a priority in the past either. Maybe it could be deprecated in love 12 or something. I was about to ...
by slime
Sat Jun 05, 2021 8:03 pm
Forum: General
Topic: Best practices and things you'd like changed about Love2D
Replies: 47
Views: 41433

Re: Best practices and things you'd like changed about Love2D

Jumping in a platformer. Shooting in a shooter. Activating a special ability. Pressing undo. It's a very frequent use case to detect single key presses. And every dev has to write this boilerplate. It's not a big deal, it's simple and easy, but it's something we all have to write. Isn't the point o...