I had to spend several days working around its quirks. Those cost money.Nixola wrote:How could someone lose money due to a browser? It sent an order twice or something like that?
Love2D WebPlayer (WebGL)
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Love2D WebPlayer (WebGL)
When I write def I mean function.
Re: Love2D WebPlayer (WebGL)
i wonder if we could sue them for this. Think about all the nerves and money just because of IE. But I guess in the end it's the big companies who never update their stuff who are responsible for prehistoric IE versions still being around so much. Still a funny thing to think aboutkikito wrote:I had to spend several days working around its quirks. Those cost money.Nixola wrote:How could someone lose money due to a browser? It sent an order twice or something like that?
Sry about my english.
Re: Love2D WebPlayer (WebGL)
Of course you would need a server. What's the point of Love2D WebPlayer if you don't put it on a server and let people play your game by visiting a website? Or am I missing something here?kikito wrote:I hate that video so much. I have actually lost money because of IE. And now they tell me that I don't like it because I'm mentally ill, and I just "love to hate it". It's offensive.coffee wrote:<Video>
Well, the "local" part could be done with localStorage. For the remote part you would need a server of some sort.T-Bone wrote:You know what would have been awesome? If love.filesystem could write files to the server, instead of on the user's computer. That way, you could totally make an online game, with accounts and login and stuff, really easily.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Love2D WebPlayer (WebGL)
For WebPlayer, it doesn't have to be your own server. It could just serve the WebPlayer and the game and be done with it.
A problem with a server that allows write access like that, is that you have zero protection against Bad People, trying to fill the server's hard drive, for example.
A problem with a server that allows write access like that, is that you have zero protection against Bad People, trying to fill the server's hard drive, for example.
Help us help you: attach a .love.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Love2D WebPlayer (WebGL)
You are missing something here.T-Bone wrote:Of course you would need a server. What's the point of Love2D WebPlayer if you don't put it on a server and let people play your game by visiting a website? Or am I missing something here?
WebPlayers work client-side . This means that they still work if you download the appropriate files to your hard drive. For example, you can download an html page and the flash associated with it, and play it on your computer, with no internet connection. It's true that you don't normally do this; you usually just go to a server, and fire everything from there.
But the server can be quite "stupid" - it can just serve files and that's it. In practical terms, the server is behaving like a folder in your hard drive. You ask it for files, and it sends them to you. And that's it. Any web server out there will work, with little or no configuration.
On the other hand, for what you wrote, you can't use a "stupid" server. You need an intelligent one, who is able to "understand" orders like "save this data" or "give me this data back". And security, and validation, and a database. You need to involve server-side technologies, like PHP, or java, or ruby. It's a different problem altogether.
When I write def I mean function.
Re: Love2D WebPlayer (WebGL)
That's true. And online saving can still be achieved, if the Love2D WebPlayer has support for luasocket. That way, you can communicate with the server in the "usual" fashion, and build a server-side program that is "intelligent".
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Love2D WebPlayer (WebGL)
Of course that could be done, but the server part should be out of the scope of the WebPlayer - a different project altogether.T-Bone wrote:That's true. And online saving can still be achieved, if the Love2D WebPlayer has support for luasocket. That way, you can communicate with the server in the "usual" fashion, and build a server-side program that is "intelligent".
When I write def I mean function.
Re: Love2D WebPlayer (WebGL)
Yes, yes, of course.kikito wrote:Of course that could be done, but the server part should be out of the scope of the WebPlayer - a different project altogether.T-Bone wrote:That's true. And online saving can still be achieved, if the Love2D WebPlayer has support for luasocket. That way, you can communicate with the server in the "usual" fashion, and build a server-side program that is "intelligent".
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
Re: Love2D WebPlayer (WebGL)
update : huge performance improvement for me by removing a webgl error-check inside vertex-buffer update function.
i also increased the default maxfps limit from 40 to 60 (removing it completely might have bad effects on browser performance, i dunno)
two new demos : (both work fine in chrome but take ages to several minutes to load in firefox, beware)
http://ghoulsblade.schattenkind.net/lov ... r/maptest/ (tiled maploader)
http://ghoulsblade.schattenkind.net/lov ... are201204/ (slimeabug, our ludumdare jam entry in webplayer)
the firefox slowness is due to string-operations/luajs-translate on the 2mb map file, i'll try to precompile to js tomorrow.
also notable addition : imagedata partially implemented, notably loading images, using imagedata:paste to extract parts, and loading imagedata as image.
i also increased the default maxfps limit from 40 to 60 (removing it completely might have bad effects on browser performance, i dunno)
two new demos : (both work fine in chrome but take ages to several minutes to load in firefox, beware)
http://ghoulsblade.schattenkind.net/lov ... r/maptest/ (tiled maploader)
http://ghoulsblade.schattenkind.net/lov ... are201204/ (slimeabug, our ludumdare jam entry in webplayer)
the firefox slowness is due to string-operations/luajs-translate on the 2mb map file, i'll try to precompile to js tomorrow.
also notable addition : imagedata partially implemented, notably loading images, using imagedata:paste to extract parts, and loading imagedata as image.
love-android - gamejams
Who is online
Users browsing this forum: No registered users and 8 guests