i made this thing

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

i made this thing

Post by childonline »

I made this thing, I have no future plans for it, decided to post it here.
Enjoy!
Attachments
main.love
(40.6 KiB) Downloaded 277 times
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: i made this thing

Post by D0NM »

what is it?
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: i made this thing

Post by s-ol »

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
User avatar
Pyuu
Prole
Posts: 22
Joined: Mon Jul 11, 2016 1:19 am

Re: i made this thing

Post by Pyuu »

Looks beautiful.
User avatar
steVeRoll
Party member
Posts: 131
Joined: Sun Feb 14, 2016 1:13 pm

Re: i made this thing

Post by steVeRoll »

I don't really know what this is, but it's beautiful.
User avatar
easy82
Party member
Posts: 184
Joined: Thu Apr 18, 2013 10:46 pm
Location: Hungary

Re: i made this thing

Post by easy82 »

It's somehow relaxing to watch. I really like it! :)
User avatar
Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

Re: i made this thing

Post by Sir_Silver »

Very cool, it would be nice though if you talked a little bit about exactly whats goin' on here :)
User avatar
Nuthen224
Citizen
Posts: 50
Joined: Sun Jul 28, 2013 9:40 pm

Re: i made this thing

Post by Nuthen224 »

Cool!
User avatar
ivan
Party member
Posts: 1911
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: i made this thing

Post by ivan »

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!
User avatar
pgimeno
Party member
Posts: 3544
Joined: Sun Oct 18, 2015 2:58 pm

Re: i made this thing

Post by pgimeno »

ivan wrote: - Don't use a huge bitmap when the background is an array of dots
^ This. Plus I'm still wondering how he managed to create an uncompressed PNG. (It compresses well when zipped, so it doesn't matter too much, but it's 17K in normal compressed PNG format, compared to the 33K it uses when zipped, i.e. 50% the size).

childonline, I'm curious about what tool you used to save this png.
- math.atan2 accepts Y as the first parameter
Sometimes it may be convenient to swap them. In particular, when you use an angle convention where north is 0° and angle increases clockwise, which is a convention used in navigation (except that in LÖVE, due to positive Y pointing down instead of up, 0° is south and the angle increases counter-clockwise).
Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests