landgreen / n-gon

2-d physics rogue-lite platformer shooter
https://landgreen.github.io/n-gon/
GNU General Public License v3.0
154 stars 226 forks source link

[ SUGGESTION ] PWA? #28

Closed Shkeffy closed 2 years ago

Shkeffy commented 2 years ago

Hello, this is a GREAT game!!! I was wondering if you could somehow make it into a PWA so that it can be played offline? I think that would be awesome. Also, have you considered making more of these types of games? I absolutely adore this one, and would play others as well!

Shkeffy commented 2 years ago

Also, maybe making the 'console' at the bottom right look better formatted?

Shkeffy commented 2 years ago

For the PWA thing, you can use: https://www.pwabuilder.com/.

Shkeffy commented 2 years ago

By the way, I am creating a 'dark mode' for it as we speak @landgreen. (I'm just so bored and this game is great)

landgreen commented 2 years ago

hi, glad you enjoy the game, just a little hobby of mine.

You can save the webpage and run that offline. I normally use the game that way. I'm not sure there is any value to a web app over a webpage, but

If you have specific suggestions for CSS or anything in the in game console, I'd love to hear it. Dark mode would be cool. I've tried but I had trouble finding a color pallet that works, but I do think there it could be worth it.

Shkeffy commented 2 years ago

hi, glad you enjoy the game, just a little hobby of mine.

You can save the webpage and run that offline. I normally use the game that way. I'm not sure there is any value to a web app over a webpage, but

If you have specific suggestions for CSS or anything in the in game console, I'd love to hear it. Dark mode would be cool. I've tried but I had trouble finding a color pallet that works, but I do think there it could be worth it.

I meant like, in 'game console' (In the bottom right), instead of writing 'm.health =+ ###', writing '### has been added to the health bar'. And, for the saving webpage and running offline, I don't really understand that. I save it, and when I don't have Wi-Fi, it does the normal 'no wifi' thing. I can maybe try to find a good color combination; I have replit so it's literally a line of code to copy the webpage. I'll update when I find a good combination.

landgreen commented 2 years ago

oh, I wrote an in game console for n-gon that you could type into. it worked as a pipeline to the real browser console. I'll see if I can dig up that old code.

I just tested "save as" for n-gon I then disconnected my internet and it worked fine. Must be on OS/Browser thing I bet there is a way for you to get it working

Shkeffy commented 2 years ago

Look at this so far: https://ngondark.shkeffy.repl.co/

Shkeffy commented 2 years ago

Honestly, I have no idea how to make the game itself black-

Shkeffy commented 2 years ago

If you use Replit, here: https://replit.com/join/uzjffjsvfx-shkeffy

Shkeffy commented 2 years ago

oh, I wrote an in game console for n-gon that you could type into. it worked as a pipeline to the real browser console. I'll see if I can dig up that old code.

I just tested "save as" for n-gon I then disconnected my internet and it worked fine. Must be on OS/Browser thing I bet there is a way for you to get it working

If you close the tab and turn it back on after a minute, doesn't work :/

landgreen commented 2 years ago

well the html site doesn't work off line, but you can just save a complete copy of the website and run that off line.

Shkeffy commented 2 years ago

How do you save a COMPLETE copy???

Shkeffy commented 2 years ago

@landgreen

landgreen commented 2 years ago

"Open the three-dot menu on the top right and select More Tools > Save page as. You can also right-click anywhere on the page and select Save as or use the keyboard shortcut Ctrl + S in Windows or Command + S in macOS. Chrome can save the complete web page, including text and media assets, or just the HTML text."

Shkeffy commented 2 years ago

The thing is, it doesn't save the complete web page.

landgreen commented 2 years ago

does for me

Shkeffy commented 2 years ago

And the website fully works?

landgreen commented 2 years ago

yeah, the only difference is it has it's own settings

Shkeffy commented 2 years ago

Eh, it's alright. I'll figure it out.

macksonp commented 2 years ago

Just download the source code and play with your browser offline

Kind regards,

Jackson Prater Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: Monday, 16 May 2022 8:36 AM To: @.> Cc: @.***> Subject: Re: [landgreen/n-gon] [ SUGGESTION ] PWA? (Issue #28)

For the PWA thing, you can use: https://www.pwabuilder.com/.

— Reply to this email directly, view it on GitHubhttps://github.com/landgreen/n-gon/issues/28#issuecomment-1127101489, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN3QGYRO4KBHRWYKZ5JBMP3VKGKATANCNFSM5V73RYEQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>