Show off your games, demos and other (playable) creations.
childonline
Prole
Posts: 15
Joined: Thu Dec 30, 2010 11:06 am

I made this thing, I have no future plans for it, decided to post it here.
Enjoy!
Attachments
main.love

D0NM
Party member
Posts: 241
Joined: Mon Feb 08, 2016 10:35 am
Contact:

what is it?
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua

s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

D0NM wrote:what is it?
steering beaviours / flocking simulation it seems. I think the color of each particle is based on it's movement angle too. It shouldn't be too hard to add mouse input deflecting them, I think that would be pretty cool?

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

Pyuu
Prole
Posts: 22
Joined: Mon Jul 11, 2016 1:19 am

Looks beautiful.

steVeRoll
Party member
Posts: 117
Joined: Sun Feb 14, 2016 1:13 pm

I don't really know what this is, but it's beautiful.

easy82
Party member
Posts: 184
Joined: Thu Apr 18, 2013 10:46 pm
Location: Hungary

It's somehow relaxing to watch. I really like it!

Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm

Very cool, it would be nice though if you talked a little bit about exactly whats goin' on here

Nuthen224
Citizen
Posts: 50
Joined: Sun Jul 28, 2013 9:40 pm

Cool!

ivan
Party member
Posts: 1599
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Good job. It looks cool which is a good start,
but I do have some suggestions:
- Don't use a huge bitmap when the background is an array of dots
- The current way you're using 'setmetatable' doesn't look correct -
sometimes you're using metabales and sometimes you're passing the 'self' reference manually.
Generally you need 1 table for the interface, one for the metatable and one for each instance,
You don't need metatables unless there is inheritance involved
- Don't clamp vectors along the x/y axis separately, clamp them based on length
- math.atan2 accepts Y as the first parameter
- use locals for temporary variables (ex: "vehicle.lua:232") - "strict.lua" can help you pinpoint these
- I didn't know the demo was interactive without looking at the code,
Either way you want to use abstraction for your 'vehicle' class so that it's not dependent on love2d's mouse
- mention Reynolds or Buckland in the comments
Good luck!

pgimeno
Party member
Posts: 2279
Joined: Sun Oct 18, 2015 2:58 pm