Search found 118 matches

by ninwa
Tue Oct 12, 2010 11:55 am
Forum: Support and Development
Topic: Question about love.audio.rewind()
Replies: 14
Views: 3407

Question about love.audio.rewind()

Hey all, I'm working on my my first love2d game and I've run into a small problem with love.audio. I'm trying to implement an enenyOnHit noise and so in my love.load I initialized the sound effect: snd_e_onhit = love.audio.newSource("e_onhit.wav") And when an enemy is hit I do: love.audio....
by ninwa
Tue Oct 12, 2010 8:35 am
Forum: Games and Creations
Topic: My first project, advice and tips welcome!
Replies: 24
Views: 10300

Re: My first project, advice and tips welcome!

if( (v["alive"] == false) and Quick tip here. In lua v["alive"] and v.alive are the same when v is a table. Both access the field under the key "alive" in the table, and you can also access fields that are not there. You will get a nil as a result. You may have program...
by ninwa
Tue Oct 12, 2010 7:04 am
Forum: Games and Creations
Topic: Colorpix
Replies: 24
Views: 15873

Re: Colorpix

Simple and clean implementation of a fun concept. I only noticed one bug and I'll leave it up to you if it's actually a bug, but: If you click on the same color you clicked on last turn it still uses a turn, even when in theory this would never benefit you.
by ninwa
Tue Oct 12, 2010 3:59 am
Forum: Games and Creations
Topic: My first project, advice and tips welcome!
Replies: 24
Views: 10300

Re: My first project, advice and tips welcome!

Oops, I meant "for i,v in ipairs(table) do", but hopefully you are reading about that in a reference already. You bet. :) I rewrote all of the code to use this instead. I like it so much better. Here's my new cleanup function. function performCleanup() -- Remove dead enemies, but only if ...
by ninwa
Tue Oct 12, 2010 3:26 am
Forum: Games and Creations
Topic: My first project, advice and tips welcome!
Replies: 24
Views: 10300

Re: My first project, advice and tips welcome!

If you're looking for some help with the soundtrack, I'd be happy to oblige. I'm not a musician by trade, but I do write my own brand of electronic music as a hobby. Here's some examples: http://www.archive.org/download/AMidsummerNightsEpicallyFastEscapade/0806_Spirulence_A_Midsummer_Nights_Epicall...
by ninwa
Tue Oct 12, 2010 3:25 am
Forum: Games and Creations
Topic: My first project, advice and tips welcome!
Replies: 24
Views: 10300

Re: My first project, advice and tips welcome!

Okay, so I notice you are using a lot of table indexing with numbers. And then referencing the next one using table#+1 and so on. And then to compensate for the big loops that might come out of this, I saw you doing a cleanup function that checks for cases when everything is not visible. You might ...
by ninwa
Tue Oct 12, 2010 2:48 am
Forum: Games and Creations
Topic: My first project, advice and tips welcome!
Replies: 24
Views: 10300

Re: My first project, advice and tips welcome!

Ah just disregard that, it's probably from when I was playing around with getting Love packages to work. I will make sure that's not in there the next update I put out. I wrote a little batch file that just packages everything in my dev folder and makes the .love. Thanks for checking it out and I'm ...
by ninwa
Tue Oct 12, 2010 1:32 am
Forum: Games and Creations
Topic: My first project, advice and tips welcome!
Replies: 24
Views: 10300

My first project, advice and tips welcome!

Note: For friends I may have linked here who need help installing the game you must first download the Love platform installer from http://www.love2d.org . After it's installed download and open the latest version of the game from below. :) Welcome to playing with Love! Hey all, Before yesterday (O...