JavaScript game framework implementing Löve2D API ??

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
osa1
Prole
Posts: 29
Joined: Sat Jun 30, 2012 7:51 am

JavaScript game framework implementing Löve2D API ??

Post 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.
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

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

Post 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 101 times
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
SiENcE
Party member
Posts: 792
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

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

Post by SiENcE »

I think he want to run this love2d javascript in his webbrowser.


Therefore use https://github.com/ghoulsblade/love-webplayer
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

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

Post 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.
When I write def I mean function.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 220 guests