Page 1 of 3
Share your fiddles!
Posted: Thu Sep 29, 2016 3:42 pm
by Ulydev
Share your LÖVE snippets!
These can either be small games, quick demos, or whatever you could think of.
Head over to
http://lovefiddle.com/ and start making your own fiddle
Here are some fiddles made by the community:
http://lovefiddle.com/RfgEHx82s7QuyusZJ - Game of Life by
Feyrn
http://lovefiddle.com/xjfvZ2Lk7DcCAebCf - Metaball by
Alexar
http://lovefiddle.com/XSaubcmTaqZtFfspN - Snake by
Alexar
http://lovefiddle.com/BEZZLDkSf5wum8xGD - Pong by
bartbes
http://lovefiddle.com/gAfgmqzs6Ld7gWamf - Sample platformer movement
Re: Share your fiddles!
Posted: Fri Sep 30, 2016 8:18 am
by Sheepolution
And be sure to check out the
Code Doodles thread for inspiration.
I was too lazy to optimize the old code, but here's my
Trippy Stars
Re: Share your fiddles!
Posted: Fri Sep 30, 2016 1:16 pm
by Tanner
Something is a little off but here's a sphere illuminated using only it's own vertex data.
http://lovefiddle.com/aPTWoDGSp8NRr5zXA
Re: Share your fiddles!
Posted: Mon Oct 03, 2016 5:10 pm
by Tjakka5
I've written a alternative to tables to store objects and looping over them.
It's a lot faster (benchmarks down below), but it's still missing a way to collect garbage.
http://lovefiddle.com/zRbrTvMapCshjCxym
Code: Select all
Insert TABLE 10000000: 0.907s
Insert LIST 10000000: 0.201s
Insert Remove TABLE 10000000: 0.997s
Insert Remove LIST 10000000: 0.022s
Insert Iterate TABLE 100000: 5.50s
Insert Iterate LIST 100000: 3.66s
Re: Share your fiddles!
Posted: Mon Oct 03, 2016 9:35 pm
by Inny
This is pretty sweet, how are you pulling it off? Point me into a github repo so I can expand my brain's meat.
Re: Share your fiddles!
Posted: Mon Oct 03, 2016 9:41 pm
by Ulydev
Inny wrote:how are you pulling it off?
Hey there, it uses Meteor as the backend/frontend and love.js for running LÖVE code in the browser.
Check out the repo on
https://github.com/Ulydev/lovefiddle
Re: Share your fiddles!
Posted: Wed Oct 05, 2016 12:00 pm
by MrFariator
Interesting, it's basically something similar to C++'s vector class? I could very well have use for something like this.
Re: Share your fiddles!
Posted: Wed Oct 05, 2016 8:14 pm
by Tjakka5
MrFariator wrote:
Interesting, it's basically something similar to C++'s vector class? I could very well have use for something like this.
I don't know exactly how a Vector in C++ works, but by the looks of it, yes.
The general idea is that you just have a list that you want objects to be in, and apply some sort of logic to them; you don't care about working with individual objects beyond that (And removing them).
This is usually the way (Or at least my way) that OOP Classes work;
You create a bullet, you put it in a table, and update their position every frame.
I should also note that this implementation gives up "strict-ness" for speed. When you remove a object it really just sets a flag that it shouldn't be iterated over anymore, thus the reference only gets removed when its overwritten.
That is one of the problems that I need to address still, I'll try to bring out a updated version soon.
Re: Share your fiddles!
Posted: Sat Oct 08, 2016 10:52 am
by Ulydev
Simple fiddle to calculate the first ~18 digits of π
http://lovefiddle.com/L9SgsK5xrGFYtDzWW
Re: Share your fiddles!
Posted: Mon Oct 17, 2016 5:29 am
by easy82
Love Fiddle is really cool! I've tried out my minigame in LF and it worked:
http://lovefiddle.com/wfZNh6NDC2NTfZ5xv