• Gwilty's Programming Assignments #2
    191 replies, posted
I decided to give this a shot. I already know Lua, but I have never used LÖVE and I wanted to have a small project for a change. I just dumped my current progress to [url=https://bitbucket.org/pollyzoid/fireworks/]my bitbucket[/url] repository, since it's a bit too large to post here (I make everything horribly overcomplicated) Keep in mind though, my code is probably not very suitable for learning. VVVVV You mean love.mousepressed? I'm going to use that eventually, but currently I'm using this to spam entities without having to mash my mouse button.
You should use the love.mousedown function [editline]1st November 2011[/editline] [QUOTE=Map in a box;33081338]Oh my, 89.9mb avi to 2.67mb webm.. niiiice! [vid]http://dl.dropbox.com/u/4992578/out.webm[/vid] eeer screetch with audible transcriptions of the audio.[/QUOTE] :D
I've got an emitter spewing particles everywhere. Took like 30 minuts. Much easier than I anticipated. [editline]1st November 2011[/editline] [IMG]http://i.imgur.com/BDL59.png[/IMG]
I've finished it! It took me a few hours and I got stuck a couple of times, but I had fun doing it! I had some crackles going, but I didn't like them so I removed them. [video=youtube;iEdCzq5N9z4]http://www.youtube.com/watch?v=iEdCzq5N9z4[/video] Download: [url]http://ge.tt/9kBe1T9?c[/url]
[media]http://www.youtube.com/watch?v=DcH1ob8POsg[/media] I think I'm finished for now, performance is still an issue as it's pretty inneficient in terms of removing dead partciles etc. Got trails working decently though, was horribly slow before but is much better.
There should be a megathread about Love I think
[QUOTE=Darkwater124;33085803]There should be a megathread about Love I think[/QUOTE] Why? There's a general "what do you need help?" thread and updates to LÖVE are usually posted about in WAYWO.
You can always post in the LÖVE forums or talk in the LÖVE IRC channel as well.
You should definitely try the Love forums, they are very helpful and responsive.
[QUOTE=BlkDucky;33086587]Why? There's a general "what do you need help?" thread and updates to LÖVE are usually posted about in WAYWO.[/QUOTE] Why not?
Is there any way to rotate love.graphics.rectangle? I've been searching and searching and can't find anything. love.graphics.draw has the option to do this, but I can only get it working with images I load in.
I haven't tried it myself but what about [code] love.graphics.push() love.graphics.rotate( angle ) love.graphics.pop() [/code]
[QUOTE=garry;33088436]Why not?[/QUOTE] It would take content away from WAYWO :(
[QUOTE=PieClock;33088464]Is there any way to rotate love.graphics.rectangle? I've been searching and searching and can't find anything. love.graphics.draw has the option to do this, but I can only get it working with images I load in.[/QUOTE] I'd be tempted to use love.graphics.line for that so you have more control over the points as rectangle takes the top left x,y co-ords and the width and the height..
[QUOTE=Jimbomcb;33088550]I haven't tried it myself but what about [code] love.graphics.push() love.graphics.rotate( angle ) love.graphics.pop() [/code][/QUOTE] You can do this, but I'm awfully sure rectangles have a rotation argument in radians already.
Finished! [img]http://i.imgur.com/BepRA.png[/img] I've been working on this on and off all day. Took me about 2 or 3 hours in total.
[QUOTE=Darwin226;33088781]It would take content away from WAYWO :([/QUOTE] I think WAYWO is a bit cluttered at the moment, anyway.
[QUOTE=ROBO_DONUT;33091726]I think WAYWO is a bit cluttered at the moment, anyway.[/QUOTE] What does this even mean? Cluttered, how?
[QUOTE=BlkDucky;33092478]What does this even mean? Cluttered, how?[/QUOTE] We have an entire forum with only one really active thread... I don't see the problem with breaking out a few popular topics into other threads. It really doesn't make sense to be discussing the latest Love2D update in a thread titled [i]what are you working on[/i], anyway.
I've got a problem with table.remove, if I have one firework being created, moving and then reaching the condition for it being removed then it's fine and it will disappear, however if I have two at the same time then it creates an error saying that there's a 'nil value', I don't see what I'm doing wrong?
Your code is trying to delete a table value that doesn't exist. Note that table.remove reindexes the table, so when you remove the value at position 1, the value at position 2 is moved to 1, and 3 to 2, and so on.
[QUOTE=ROBO_DONUT;33092572]We have an entire forum with only one really active thread... I don't see the problem with breaking out a few popular topics into other threads. It really doesn't make sense to be discussing the latest Love2D update in a thread titled [i]what are you working on[/i], anyway.[/QUOTE] The title doesn't really matter. WAYWO is basically programming general discussion anyway.
[QUOTE=BlkDucky;33093188]The title doesn't really matter. WAYWO is basically programming general discussion anyway.[/QUOTE] Maybe we should get rid of the rest of the forum and just have WAYWO?
[QUOTE=subenji99;33092791]Your code is trying to delete a table value that doesn't exist. Note that table.remove reindexes the table, so when you remove the value at position 1, the value at position 2 is moved to 1, and 3 to 2, and so on.[/QUOTE] I tried the firework[i] = nil but it still came out with the same problem, how would I stop it from reindexing?
My entry. First time trying particles and the first thing in LOVE&Lua I've ever finished I'm afraid :v: .love file: [url]http://puu.sh/80SB[/url] distributable: [url]http://puu.sh/80QG[/url]
[QUOTE=garry;33088436]Why not?[/QUOTE] I'd personally like to see people getting help with LÖVE at the actual LÖVE forums. I may be a bit biased, being the host dude for the project, but I'm not really gaining anything either from more visitors, so think what you want.
We have our own forum and people have questions and people have answers. Why even have any threads here we should just post them in other forums.
Actually, you all can just submit any question you have about LÖVE to [url=http://answers.yahoo.com/]Yahoo! Answers[/url]™. I hired a bunch of people overseas to help me with any issue you might have, so just ask away :) Don't forget to click any ads you might see, the support people charge a [u]lot[/u].
[QUOTE=Zard;33094069]I tried the firework[i] = nil but it still came out with the same problem, how would I stop it from reindexing?[/QUOTE] It won't be reindexing then, so the problem will be how you're accessing the table. You'll have to post some code.
[QUOTE=thelinx;33095917]Actually, you all can just submit any question you have about LÖVE to [url=http://answers.yahoo.com/]Yahoo! Answers[/url]™. I hired a bunch of people overseas to help me with any issue you might have, so just ask away :) Don't forget to click any ads you might see, the support people charge a [u]lot[/u].[/QUOTE] I don't see your point.
Sorry, you need to Log In to post a reply to this thread.