I've been playing around with love2d and me and my friend will most likely start working on a 2D Zelda Style mmo, we will be using bitcoin as a means of bringing money into the game, because who doesn't like bitcoin.
If anyone wants to help we could use some graphics, I may be able to tip some btc!
Search found 9 matches
- Mon Dec 29, 2014 11:19 pm
- Forum: General
- Topic: What's everyone working on? (tigsource inspired)
- Replies: 1804
- Views: 1724894
- Mon Dec 29, 2014 7:37 pm
- Forum: Support and Development
- Topic: Adding background music
- Replies: 6
- Views: 5417
Re: Adding background music
Then what should I do instead of it? And should i have this code inside a function?Doctory wrote:don't do dynamic.
- Mon Dec 29, 2014 7:33 pm
- Forum: Support and Development
- Topic: Adding background music
- Replies: 6
- Views: 5417
Re: Adding background music
It says that dynamic is an invalid source type...S0lll0s wrote:michaeladair wrote:Basically I want to add some background music to my game.
Any help would be great, thank you.Code: Select all
music = love.audio.newSource( 'libs/gangster paradise.mp3', 'dynamic' ) music:setLooping( true ) --so it doesnt stop music:play()
- Mon Dec 29, 2014 7:24 pm
- Forum: Support and Development
- Topic: Adding background music
- Replies: 6
- Views: 5417
Adding background music
Basically I want to add some background music to my game.
I found:
And
Do I just make it like this?
Any help would be great, thank you.
I found:
Code: Select all
source = love.audio.newSource( file, type )
Code: Select all
love.audio.play( source )
Code: Select all
music = love.audio.newSource( libs/gangstersparadise, mp3 )
love.audio.play( music )
- Mon Dec 29, 2014 2:00 pm
- Forum: Support and Development
- Topic: Simple Coding Question...
- Replies: 8
- Views: 6283
Re: Simple Coding Question...
If those are, then as i said, from the code snippets you posted, i could not figure out the problem; sorry. Either someone else will figure it out, or just post a .love file, or a zip with all the files (including your main.lua) or something, because i feel that something's still missing from the b...
- Mon Dec 29, 2014 1:21 pm
- Forum: Support and Development
- Topic: Simple Coding Question...
- Replies: 8
- Views: 6283
Re: Simple Coding Question...
How do I pass the values? The ip and name are passed??zorg wrote:The problem is that you're not passing those values to your load function, hence they are nil, as in, they don't exist.
Again, from what code you posted, i can not see where you call that function even.
- Mon Dec 29, 2014 11:49 am
- Forum: General
- Topic: Avatars: OBEY!
- Replies: 763
- Views: 1195142
Re: Avatars: OBEY!
Done and done.
- Mon Dec 29, 2014 11:36 am
- Forum: Support and Development
- Topic: Simple Coding Question...
- Replies: 8
- Views: 6283
Re: Simple Coding Question...
The problem that I have is that it does not see the variables as numbers: ERROR states/playing.lua: 11: Bad argument #1 to 'setColor' (number expected, got nil) Line 11: love.graphics.setColor( r, g, b) Playing.lua: players = {} function onReceive(data) players = TSerial.unpack( data ) end function ...
- Mon Dec 29, 2014 5:16 am
- Forum: Support and Development
- Topic: Simple Coding Question...
- Replies: 8
- Views: 6283
Simple Coding Question...
So I have 3 previously defined variables by the user, r, g, and b. These are inputted by the user and should be numbers. Here is where it is called. function load( ip, name, r, g, b) -- Collider = HC( 100, on_collision ) cam = camera(vector(256, 208), 1) love.graphics.setBackgroundColor( 50, 50, 50 ...