ARE YOU A WIZARD? (ಥ_ಥ)binji wrote:I wired up lua's print function to display in the Chrome Developer Tools console.
LÖVELINESS a LÖVE Chrome Extension
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: LÖVELINESS a LÖVE Chrome Extension
When I write def I mean function.
- Jasoco
- Inner party member
- Posts: 3726
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: LÖVELINESS a LÖVE Chrome Extension
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.
Re: LÖVELINESS a LÖVE Chrome Extension
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.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
Re: LÖVELINESS a LÖVE Chrome Extension
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?
----------------------------------------
Sluicer Games
Sluicer Games
Re: LÖVELINESS a LÖVE Chrome Extension
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.
Also, this did not work for me in Chromium on Linux Mint 12, despite turning on the NaCl flag. I can send more information if it will help you.
Edit: two more things.
- How are you going to handle LÖVE version compatibility?
- What are you going to do with the "quit" event? I hit "escape" in the particle demo and it bluescreened (but that's probably because the quit event API was changed since this old demo).
Also, this did not work for me in Chromium on Linux Mint 12, despite turning on the NaCl flag. I can send more information if it will help you.
Edit: two more things.
- How are you going to handle LÖVE version compatibility?
- What are you going to do with the "quit" event? I hit "escape" in the particle demo and it bluescreened (but that's probably because the quit event API was changed since this old demo).
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: LÖVELINESS a LÖVE Chrome Extension
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.
When I write def I mean function.
Re: LÖVELINESS a LÖVE Chrome Extension
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?
Re: LÖVELINESS a LÖVE Chrome Extension
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
- Link back to originating page
- Option to re-launch game
- Link to download .love file
Imagine an HTML5 game closing your tab without you explicitly telling it to do so. It wouldn't be what you were expecting.
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. )
in any case, you should host some demos/games made for v0.8+ (or update the .love sources of the current ones)!
Re: LÖVELINESS a LÖVE Chrome Extension
Cool. Our gamejam game 'FOUR' runs on LÖVELINESS .
http://gamejams.schattenkind.net/2012/11/four.html
I updated our whole webite. Only shaders make problems.
http://gamejams.schattenkind.net/2012/11/four.html
I updated our whole webite. Only shaders make problems.
Re: LÖVELINESS a LÖVE Chrome Extension
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
On a related note: currently, the extension is acting kinda like a PDF viewer. It treats files with the mimetype "application/x-love-game" as documents it knows how to read. This is really cool, because it "just works". The downside is that I have no control over the page it generates. This means that I can't add JavaScript, manipulate the DOM, etc. This makes some of the features you describe above difficult.
I have some thoughts on how to work around this:
1) Adding a context menu: This will open in a new tab that I have full control of. Downside: left-clicking just downloads.
2) Modifying the page: Look at the page, try to find links to .love files, and change them to load the extension. Downside: Lots of problems with this solution... hard to detect links, ugly to modify the page, etc.
3) Read the page, create a popup with links: Same as #2, but create a little popup using a page/browser action (the little icon in the upper-right).
4) Load in new tab, redirect current tab: I can basically do what I'm doing now, only create a new tab to load the .love file. The trick is that the current page is still trying to navigate somewhere, and I can't tell it to stop -- so I think the best I can do is redirect it back to the current page. I have to experiment with this to see if it will actually work...
5) ...?
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)!
Who is online
Users browsing this forum: No registered users and 2 guests