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
Share your fiddles!
- Sheepolution
- Party member
- Posts: 264
- Joined: Mon Mar 04, 2013 9:31 am
- Location: The Netherlands
- Contact:
Re: Share your fiddles!
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
I was too lazy to optimize the old code, but here's my Trippy Stars
Re: Share your fiddles!
Something is a little off but here's a sphere illuminated using only it's own vertex data.
http://lovefiddle.com/aPTWoDGSp8NRr5zXA
http://lovefiddle.com/aPTWoDGSp8NRr5zXA
Re: Share your fiddles!
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
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!
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!
Hey there, it uses Meteor as the backend/frontend and love.js for running LÖVE code in the browser.Inny wrote:how are you pulling it off?
Check out the repo on https://github.com/Ulydev/lovefiddle
-
- Party member
- Posts: 563
- Joined: Wed Oct 05, 2016 11:53 am
Re: Share your fiddles!
Interesting, it's basically something similar to C++'s vector class? I could very well have use for something like this.Tjakka5 wrote:http://lovefiddle.com/zRbrTvMapCshjCxym
Re: Share your fiddles!
I don't know exactly how a Vector in C++ works, but by the looks of it, yes.MrFariator wrote:Interesting, it's basically something similar to C++'s vector class? I could very well have use for something like this.Tjakka5 wrote:http://lovefiddle.com/zRbrTvMapCshjCxym
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!
Love Fiddle is really cool! I've tried out my minigame in LF and it worked:
http://lovefiddle.com/wfZNh6NDC2NTfZ5xv
http://lovefiddle.com/wfZNh6NDC2NTfZ5xv
Last edited by easy82 on Tue Nov 22, 2016 10:32 pm, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 1 guest