Page 1 of 1

JavaScript game framework implementing Löve2D API ??

Posted: Fri Mar 29, 2013 1:52 pm
by osa1
Hi all,

I was wondering whether there is a JavaScript game framework running on Canvas or DOM or whatever that implements Löve2D API.

If there is not yet, wouldn't that be cool if we start a project for this ? I just looked various JS game frameworks, but I don't like any of their APIs, to me Love2D is the perfect 2D game framework.

Re: JavaScript game framework implementing Löve2D API ??

Posted: Fri Mar 29, 2013 5:44 pm
by josefnpat
So I googled the phrase "JavaScript game framework implementing Löve2D API ??"

And this was the first three results;
BeajwfA.png
BeajwfA.png (39.09 KiB) Viewed 176 times

Re: JavaScript game framework implementing Löve2D API ??

Posted: Sat Mar 30, 2013 6:44 pm
by SiENcE
I think he want to run this love2d javascript in his webbrowser.


Therefore use https://github.com/ghoulsblade/love-webplayer

Re: JavaScript game framework implementing Löve2D API ??

Posted: Sun Mar 31, 2013 4:20 pm
by kikito
I asked a similar question to the OP some time ago.

I looked for some time, but the libraries I found didn't fit my needs.

2 months ago, I had to learn javascript because of work requirements. So I took matters into my own hands and have been creating my own 2D game JS lib:

https://github.com/kikito/luv.js

I must stress that it's not a 1-to-1 method conversion from LÖVE, but it's definitively heavily inspired by it. It's still not finished, but it's very capable already, interface is still mutating, and I have not tested it in all browsers. But the basics are all there.

Some examples:
* Cat & mouse (Image loading, scaling, rotation)
* Bob the square (Keyboard handling and primitive drawing)
* Paint (Mouse handling. Try the mouse wheel)
* Airplanes (Animation system, similar to anim8)
* Ding (Sound system. Any keypress/mousepress plays a sound. You can see how instances are created and discarded after a while)

Besides the examples, the only documentation I have for now is the annotated source code, which I'm very proud of.