Search found 125 matches

by MrFariator
Sun Feb 23, 2020 8:31 pm
Forum: Support and Development
Topic: Error while trying to play a .Wav file
Replies: 5
Views: 237

Re: Error while trying to play a .Wav file

The wiki unfortunately has some outdated pages; the tutorial pages in particular. As such I'd usually look at the pages for individual functions and such, or module pages which often have a table with "+" or "-" icons denoting when certain functions have been added or deprecated. As a last resort, y...
by MrFariator
Sun Feb 23, 2020 6:03 pm
Forum: Support and Development
Topic: Error while trying to play a .Wav file
Replies: 5
Views: 237

Re: Error while trying to play a .Wav file

I don't know what video tutorial you are watching, or what version of LÖVE it is for, but looking at the wiki suggests to me that in versions prior to 11.0 the second parameter to love.audio.newSource was optional. In such versions, this parameter defaulted to "stream", while in 11.0 and onwards you...
by MrFariator
Sat Feb 15, 2020 7:44 pm
Forum: Support and Development
Topic: Canvas performance is costly if I clear() and draw on it again?
Replies: 4
Views: 1044

Re: Canvas performance is costly if I clear() and draw on it again?

Each individual element might be a bit much, depending on how many you have. If it's only from few to ten canvases, that should be fine. Any more than that and it'll depend on how many canvas switches etc you are doing per frame. Just monitor and see if any notable performance penalties incur, and d...
by MrFariator
Tue Jan 21, 2020 9:25 pm
Forum: General
Topic: Problems with localising variables
Replies: 5
Views: 2393

Re: Problems with localising variables

As far as I can tell, you are doing something along the lines of... -- bottom of Game.lua return Game, Menu.Snake -- in main.lua local Game = require("Game") -- 'Menu.Snake' from Game.lua is not assigned to anything And this is repeated across most of the files. If you have multiple return values, y...
by MrFariator
Wed Jan 15, 2020 2:21 am
Forum: Support and Development
Topic: Team Development?
Replies: 2
Views: 597

Re: Team Development?

What you are probably looking for is version control as LÖVE, among many other engines and frameworks, do not provide (or most probably don't need) such tooling built-in. Git is a popular tool to accomplish the task, and you can get free hosting on Github , Bitbucket , Gitlab or some other places.
by MrFariator
Tue Jan 07, 2020 3:03 am
Forum: Support and Development
Topic: Execution speed varies wildly (47x) between (but not during) runs
Replies: 15
Views: 1781

Re: Execution speed varies wildly (47x) between (but not during) runs

In relation to pgimeno's post, and what slime suggested, it might be worth trying to increase the optimization parameters. I remember someone doing an emulator or something that sort, and having this little passage helped with reducing luajit traces (increase values as necessary, if it helps): if pc...
by MrFariator
Fri Dec 27, 2019 3:58 am
Forum: General
Topic: Looking for a codebase to study
Replies: 10
Views: 2073

Re: Looking for a codebase to study

Forum user D0NM has Zabuyaki's code available on github . In addition, there are several games on steam made with LÖVE , and if you purchase those games you could technically just change the .exe file extension to .zip, and take a look inside the contents. Not guaranteed to work with 11.x, but in fa...
by MrFariator
Sun Dec 08, 2019 9:16 pm
Forum: Support and Development
Topic: Are sprite batches the solution to my low FPS?
Replies: 3
Views: 1579

Re: Are sprite batches the solution to my low FPS?

What do you do to draw the player's shadow, and how does this incur more draw calls? How is an individual tile drawn, let alone how does the game step through drawing the map? Also because you do not make a mention of it, are you making sure to draw only the stuff that's visible on the screen at any...
by MrFariator
Sat Nov 23, 2019 1:55 am
Forum: Support and Development
Topic: How do objects in the game work properly with the time that the game runs?
Replies: 5
Views: 844

Re: How do objects in the game work properly with the time that the game runs?

The jumping issue has to do with how lag will affect how often love.update gets called. You either need to rework your jumping code to work with varying delta times (the 'dt' parameter love.update receives), or you can fix your timestep . I personally do the latter, using rxi's tick library. For the...
by MrFariator
Sat Nov 02, 2019 7:16 pm
Forum: General
Topic: LÖVE 11.3 released!
Replies: 36
Views: 90614

Re: LÖVE 11.3 released!

That's a lövely series of updates and fixes. I particularly like FLAC support and love.window.get/setVsync, good stuff.