loading doesn't seem to continue during the freeze, at least the javascript image objects .isloaded (or so) var isn't updated it seems =(
maybe because js is singlethreaded
i still have to test more, but first few experiments looked bad.
Love2D WebPlayer (WebGL)
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
Re: Love2D WebPlayer
love-android - gamejams
Re: Love2D WebPlayer
I was wondering if anyone was currently tackling the implementation of physics. I was considering it since I'm pretty well versed in Box2D, as well as the flash/Javascript implementation of it. I'd hate to start work on it and find out that someone already started one and have my work go to waste.
The only problem I see thus far is the flash version of box2D is beyond that of love 0.7.2, thus Fixture objects have been implemented which breaks backwards compatibility. Maybe I can dig through the repositories of the box2d flash implementation, find a suiting implementation and compile the AS to JavaScript, then implement that into Love2D WebPlayer? What say you guys/gals?
The only problem I see thus far is the flash version of box2D is beyond that of love 0.7.2, thus Fixture objects have been implemented which breaks backwards compatibility. Maybe I can dig through the repositories of the box2d flash implementation, find a suiting implementation and compile the AS to JavaScript, then implement that into Love2D WebPlayer? What say you guys/gals?
- slime
- Solid Snayke
- Posts: 3162
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Love2D WebPlayer
LÖVE 0.8.0, which uses Box2D 2.2 rather than 2.0, is planned to be released within the next few days.
(famous last words.)
(famous last words.)
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Love2D WebPlayer
I've heard that one before.slime wrote:LÖVE 0.8.0, which uses Box2D 2.2 rather than 2.0, is planned to be released within the next few days.
(famous last words.)
Re: Love2D WebPlayer
So we've got a few months to worry about implementing webplayer up to Love2d 0.7.2...TechnoCat wrote:I've heard that one before.
I'd say that it might be a wasted effort porting box2D 2.0 to the webplayer if we're just going to end up having to rewriting it once 0.8.0 comes out.
However, there isn't any 0.8.0 love.physics docs(or at least not that I know anymore), and sorry if I don't want to dig through the source of 0.8.0 to find out. That is after all the reason documentation exists...
Why not document before implementing... I could never develop without prior documentation. I document almost every variables and method in almost every object in projects before I start coding. Seems like better practice(also more timely).
Re: Love2D WebPlayer
There are javascript APIs for basically all phone functions. PhoneGap, Titanium/appcelerator, Mobl, many many more.ghoulsblade wrote:but! but! but the awesome thing about android/smartphones are multitouch and sensors (tilt/gravity, compass,...)tsturzl wrote:This could possibly kill the Love Android project then. If ishkabible is right about the performance, then I see no perks of Love Android over this
You don't really need to worry about it then, just kind of direct the developer to those libraries/frameworks.
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
Re: Love2D WebPlayer
i'd prefer a pure javascript box2d without adding flash as dependency if it isn't needed.
This way it might even work on some newer smartphones that might not have flash (iphone? but i don't know much here)
I think there is one implementation for js but it's low prio for me.
Let's aim for the 0.7.2 api for now where we have docs and stable release.
If you want to make the box2d binding in js/love.physics.js please do, i'd be a big help, and noone is working on that yet afaik =)
I'm often in love irc as ghoul/ghoulsblade if you need some help how to make the js-lua binding, also love.audio.js/love.graphics.js/love.font.js have examples of how to bind objects.
This way it might even work on some newer smartphones that might not have flash (iphone? but i don't know much here)
I think there is one implementation for js but it's low prio for me.
Let's aim for the 0.7.2 api for now where we have docs and stable release.
If you want to make the box2d binding in js/love.physics.js please do, i'd be a big help, and noone is working on that yet afaik =)
I'm often in love irc as ghoul/ghoulsblade if you need some help how to make the js-lua binding, also love.audio.js/love.graphics.js/love.font.js have examples of how to bind objects.
love-android - gamejams
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
Re: Love2D WebPlayer
keyboard+joystick support from technocat merged,
preload for images added, and annoying alert box removed. example for preload list in index.html :
a warning including preload-list instructions will be printed if the error is detected at runtime, but this might not happen if your browser loads fast enough so try not to forget
preload for images added, and annoying alert box removed. example for preload list in index.html :
Code: Select all
<body onload="MainOnLoad(['body.png','cloud_plain.png','ear.png','face.png','love.png'])">
love-android - gamejams
Re: Love2D WebPlayer
I talked with ghoulsblade about an future Webplayer integration into this forum or a special löve website to upload and play löve games via webplayer. You can think of a comments and rating section. It could also be added to the löve gamejam site.
What you think?
What you think?
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
Re: Love2D WebPlayer
added josefnpat tutorials, they basically work after i added conf.lua loading to get a global var init.
Rectangle and text are missing still, but meh, you can shoot XD
http://ghoulsblade.schattenkind.net/lov ... 0-%20info/
http://ghoulsblade.schattenkind.net/lov ... 42gb_v1.0/
http://cupm.net/public/love2dtutorial/
"Webplayer integration into this forum or a special löve website to upload" : would be cool, i won't have time to make one =)
it'd need to unpack an uploaded .love file, and add a index.html + js/ folder from lovewebplayer,
would also need to secure against unpacking .php or similar during unzip that could be "executed" on the server by viewing later.
prolly limit to ".lua,.png,.gif,.jpg,.ogg,.wav,.mp3,.xm" etc.. files
Rectangle and text are missing still, but meh, you can shoot XD
http://ghoulsblade.schattenkind.net/lov ... 0-%20info/
http://ghoulsblade.schattenkind.net/lov ... 42gb_v1.0/
http://cupm.net/public/love2dtutorial/
"Webplayer integration into this forum or a special löve website to upload" : would be cool, i won't have time to make one =)
it'd need to unpack an uploaded .love file, and add a index.html + js/ folder from lovewebplayer,
would also need to secure against unpacking .php or similar during unzip that could be "executed" on the server by viewing later.
prolly limit to ".lua,.png,.gif,.jpg,.ogg,.wav,.mp3,.xm" etc.. files
love-android - gamejams
Who is online
Users browsing this forum: No registered users and 2 guests