cloudsdemo : http://ghoulsblade.schattenkind.net/love-webplayer/
github: https://github.com/ghoulsblade/love-webplayer
WARNING: still incomplete, some of the love api won't work yet
notYetImplemented:ttf-fonts,spritebatch,framebuf,physics,threads,0.8stuff...
shouldBeWorking:newImage+draw,keyboard,quads,pixelFonts,printf,mouse,joystick,audio
goal : play games made for love2d inside the browser without plugins (webgl+javascript capable browser required)
usage: unpack .love file (rename to .zip), add the .js files and the index.html from love-webplayer, upload the whole folder to webserver, open in browser, play
tech : webgl for display, github.com/mherkender/lua.js to run lua code in javascript
EDIT: i guess we'll need love.web api next to love.phone/love.android soon
EDIT: if you want to discuss pure html5/canvas (without webgl), NaCl, flash or similar alternative tech or browser plugin, please make a new thread instead. I'm only interested in a webgl implementation and the others have already been suggested.
Love2D WebPlayer (WebGL)
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
Love2D WebPlayer (WebGL)
Last edited by ghoulsblade on Fri May 18, 2012 8:56 am, edited 10 times in total.
love-android - gamejams
Re: Love2D WebPlayer
Very nice. I already saw very good code engines export to JS and with enough speed. Would be nice see LOVE do same steps. Congratulations.
Re: Love2D WebPlayer
Do you have any idea how long we've needed this?
;~;
;~;
Re: Love2D WebPlayer
First Löve Android.
Now a Löve WebPlayer.
What next ?
I think, one of the next Löve versions should official support one of these (or both) ports. Hopefully they are going official one day.
Now testing... ;-)
Now a Löve WebPlayer.
What next ?
I think, one of the next Löve versions should official support one of these (or both) ports. Hopefully they are going official one day.
Now testing... ;-)
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Love2D WebPlayer
I think I could whip up a love.joystick and love.keyboard really quickly. I'd like to fork this and make a pull request. That sound cool?
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
Re: Love2D WebPlayer
sure, help appreciated =)
next i'll be working on :
* require/dofile/love.filesystem.load (needs some ajax magic)
* input : mouse + keyboard
* chew my way through love api stuff and test with a few demos/games
* no sound for now, will look into that later
next i'll be working on :
* require/dofile/love.filesystem.load (needs some ajax magic)
* input : mouse + keyboard
* chew my way through love api stuff and test with a few demos/games
* no sound for now, will look into that later
love-android - gamejams
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Love2D WebPlayer
I know javascript solutions? http://requirejs.org/ https://github.com/wycats/minispadeghoulsblade wrote:* require/dofile/love.filesystem.load (needs some ajax magic)
https://github.com/tzuryby/jquery.hotkeysghoulsblade wrote:* input : mouse + keyboard
love.mouse.setGrab: http://dvcs.w3.org/hg/pointerlock/raw-f ... index.html
http://www.html5rocks.com/en/tutorials/webaudio/intro/ http://www.html5rocks.com/en/tutorials/webaudio/games/ghoulsblade wrote:* no sound for now, will look into that later
Re: Love2D WebPlayer
So, why this isn't already done?TechnoCat wrote:I know javascript solutions? http://requirejs.org/ https://github.com/wycats/minispadeghoulsblade wrote:* require/dofile/love.filesystem.load (needs some ajax magic)
https://github.com/tzuryby/jquery.hotkeysghoulsblade wrote:* input : mouse + keyboard
love.mouse.setGrab: http://dvcs.w3.org/hg/pointerlock/raw-f ... index.html
http://www.html5rocks.com/en/tutorials/webaudio/intro/ http://www.html5rocks.com/en/tutorials/webaudio/games/ghoulsblade wrote:* no sound for now, will look into that later
Good luck to both and for the project.
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
Re: Love2D WebPlayer
I cleaned the code up a bit and made dummys/stubs for all top-level functions.
main.js now has a few helper functions:
e.g. the javascript function call_love_keypressed (key,unicode) can be used to call love.keypressed(key,unicode).
This should help when implementing keyboard & mouse.
love.audio.js now has an example of how to bind objects (like audio source).
This should be a good starting point if someone wants to implement audio.
looking forward to pull requests on github
main.js now has a few helper functions:
e.g. the javascript function call_love_keypressed (key,unicode) can be used to call love.keypressed(key,unicode).
This should help when implementing keyboard & mouse.
love.audio.js now has an example of how to bind objects (like audio source).
This should be a good starting point if someone wants to implement audio.
looking forward to pull requests on github
love-android - gamejams
Re: Love2D WebPlayer
I'm using OSX. For now only working in Chrome. For my surprise not working in updated Safari. Also not working in Firefox 3.6 and Opera. In Chrome seems good.
Who is online
Users browsing this forum: No registered users and 0 guests