Re: LÖVELINESS a LÖVE Chrome Extension
Posted: Tue Apr 30, 2013 9:17 pm
ARE YOU A WIZARD? (ಥ_ಥ)binji wrote:I wired up lua's print function to display in the Chrome Developer Tools console.
ARE YOU A WIZARD? (ಥ_ಥ)binji wrote:I wired up lua's print function to display in the Chrome Developer Tools console.
If nothing else, that would be really handy here on the forums, especially here in the Projects and Demos section.Jasoco wrote:Is there a way to embed it in a webpage and actually link to a hosted .love file as if it were an embed tag linking to a .swf file? Someone could conceivably create the Löve equivalent to NewGrounds.
Iframes work! http://www.syntacticbayleaves.com/love.htmlJasoco wrote:Is there a way to embed it in a webpage and actually link to a hosted .love file as if it were an embed tag linking to a .swf file?
I concur with that nitpick. I hereby suggest using the repo name: love-nacl. True, it's not as "funny" as LÖVELINESS, but it's searchable, easier to remember and type, and already being used by the repo anyway.hryx wrote:This is great. My nitpick: The name "LÖVELINESS" wasn't searchable in the Chrome web store by typing loveliness, nor did Google show it for the search site:love2d.org loveliness.
I wouldn't rely on that just yet. Not sure if that's by design...clofresh wrote:Iframes work!
Hm. But I like it...! I've added loveliness to the description on the CWS, I'll see if that helps searchability. Also, your post shows up now when I search for "loveliness love2d"! Not perfect, but it'll do.hryx wrote:The name "LÖVELINESS" wasn't searchable in the Chrome web store by typing loveliness, nor did Google show it for the search site:love2d.org loveliness.
Can you file a bug here? If not, just PM me with the details. Also type "about:version" into Chrome and copy the data from there into the bug.hryx wrote:Also, this did not work for me in Chromium on Linux Mint 12, despite turning on the NaCl flag.
Good question. The easiest solution, I think, is to build different love binaries into the extension, and run the correct one at runtime. This will make the extension bigger, but won't require rewriting any code. I'm not very interested in doing that right now, though.hryx wrote:How are you going to handle LÖVE version compatibility?
I have an outstanding bug to do something more clever on exit. I think the nicest thing would be to close the tab, so I'll probably do that. It should be easy to support the "q" message as well -- though I'm hesitant to add features like that. If it fails in desktop love, it should fail in LÖVELINESS! (and the other way around too, but that's harder. )hryx wrote:What are you going to do with the "quit" event?
Not if you want good exposure and a strong web identity! I like the name too, but Kikito's suggestion would be more practical: loveliness may mean a million things to Google, while love-nacl would only mean one.binji wrote:Hm. But I like it...! I've added loveliness to the description on the CWS, I'll see if that helps searchability. Also, your post shows up now when I search for "loveliness love2d"! Not perfect, but it'll do.
Here ya go. Let me know if I can provide testing or more info.binji wrote:Can you file a bug here?
I'm not so sure about that. Let's say I'm on your examples page and play a demo. Then I press escape -- the tab closes. Now I have to search for your site again (pretend I don't know about "undo close tab"). An alternative might be to show a "Game finished" screen with:binji wrote:I think the nicest thing would be to close the tab
Like I said, the 'q' event is from an older version of LOVE, which is now love.event.quit. So I agree that you should really let LOVE handle it as it would -- in this case, bluescreen on love.event.push('q') -- presuming the extension is loading LOVE v0.8 and not an older one.binji wrote:It should be easy to support the "q" message as well -- though I'm hesitant to add features like that. If it fails in desktop love, it should fail in LÖVELINESS! (and the other way around too, but that's harder. )
I'll consider it.hryx wrote:Not if you want good exposure and a strong web identity! ...
Of course you're right, I always run by middle-clicking to open in a new tab, so closing the tab made the most sense to me. If you're still in the same tab, that would be bad.hryx wrote:I'm not so sure about that.binji wrote:I think the nicest thing would be to close the tab
Any suggestions?hryx wrote:in any case, you should host some demos/games made for v0.8+ (or update the .love sources of the current ones)!