"Questions that don't deserve their own thread" thread

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Locked
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: "Questions that don't deserve their own thread" thread

Post by davisdude »

zorg wrote:You can't, not with love.filesystem at least
You'd need to use lua's own io stuff, which you shouldn't
Just to clarify: As far as I know, you can't create any files inside of an .love or .exe, .zip, etc.
You also shouldn't use io. functions because they behave differently for different machines, which results in lots of complicated and repeated code.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
Dattorz
Citizen
Posts: 66
Joined: Sat Oct 27, 2012 12:32 am
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by Dattorz »

Hey, is there currently a way to find the max number of sources that can play simultaneously, without playing as many sources as possible and calling getSourceCount()? I can't seem to find such a function in the API. My understanding is that OpenAL defaults to 256 simultaneous sources, but the user can change this in their configuration (seems it can be as low as 4).
User avatar
kraftman
Party member
Posts: 277
Joined: Sat May 14, 2011 10:18 am

Re: "Questions that don't deserve their own thread" thread

Post by kraftman »

I'm making a 2d platformer with spells that can by fired and I want to add some effects to the spells.
Is the particle system viable for this or too overkill?
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by s-ol »

Depends on the effects, but it would definitely be a good method.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
defaultp3
Prole
Posts: 3
Joined: Wed Nov 12, 2014 11:21 pm

Re: "Questions that don't deserve their own thread" thread

Post by defaultp3 »

I am currently using Ubuntu and have LOVE 0.9.1 installed. I want to play a game that is using LOVE 0.8.0. Is there a way to seperately have both installed at the same time without messing things up?
User avatar
Dattorz
Citizen
Posts: 66
Joined: Sat Oct 27, 2012 12:32 am
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by Dattorz »

I was able to easily have 0.8 and 0.9 installed at the same time on Arch Linux, so it's definitely possible. I'm not sure what all it involves in Ubuntu, though. Does the PPA you're using offer a separate 0.8 package?

Edit: It would probably need to be a package designed to be installed alongside other versions. The love 0.8 package I installed renamed its love binary to love08 to prevent conflicts.
defaultp3
Prole
Posts: 3
Joined: Wed Nov 12, 2014 11:21 pm

Re: "Questions that don't deserve their own thread" thread

Post by defaultp3 »

I used the PPA that was linked from the main site. When I used it, it just gave me the latest. I'm still a linux newbie. It seems like 0.8.0 needs Lua 5.1 aswell. I couldn't configure it when I tried to build. I'll probably just go back to windows to play that game. Thanks for the advice.
User avatar
Dattorz
Citizen
Posts: 66
Joined: Sat Oct 27, 2012 12:32 am
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by Dattorz »

If you install Wine you should be able to play it fine without leaving Linux. LOVE games work very well in Wine.
defaultp3
Prole
Posts: 3
Joined: Wed Nov 12, 2014 11:21 pm

Re: "Questions that don't deserve their own thread" thread

Post by defaultp3 »

Oh cool. Wine works! Thanks Dattorz! Didn't think of using Wine.
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by Ulydev »

Hello everyone, I need a slight help concerning keyboard movement.

I attached my project to my post. Press " L " to switch controls.

When you're in-game, try to make a smooth circle around the edges of the grey/black zone like you would do with mouse controls. It's actually impossible, is there any way to make it smoother ?

Thank you in advance. :awesome:
Attachments
keyboard.love
(64.09 KiB) Downloaded 269 times
Locked

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests