Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to make the Editor as PWA? #70

Open
NickChowDev opened this issue Aug 21, 2020 · 5 comments
Open

Is it possible to make the Editor as PWA? #70

NickChowDev opened this issue Aug 21, 2020 · 5 comments
Labels
Enhancement New feature or request GameChanger

Comments

@NickChowDev
Copy link

NickChowDev commented Aug 21, 2020

As captioned, the editor is fully web-based now. It would get many benefits from the PWA way, such as more portable, open directly from Icon, and update easily. Will it? I am new to PWA and no idea how difficult to achieve this.

Does it need the native-file-system to be achieved?
https://web.dev/native-file-system/

@PhaserEditor2D
Copy link
Owner

PhaserEditor2D commented Aug 21, 2020

Hi @NickChowHK

I think the stronger feature of PWA is that the editor can work offline. But it is not possible right now, especially when you run the game for testing it. We can do offline stuff with the editor, but the game will run as a normal Phaser game, requesting files from the server. Right now I don't have in mind any solution about it, maybe it is possible, we should work on it.

However, in the meantime, to get a more desktop-like experience you can do the following:

  • Create a service in your OS to run the editor server at the OS startup.
  • Create a desktop shortcut with Google Chrome. It allows you to open the web editor like an application.

image

image

@PhaserEditor2D
Copy link
Owner

What we have in mind is to create a version of the editor that runs inside Electron. But we should think more about it.

@NickChowDev
Copy link
Author

What we have in mind is to create a version of the editor that runs inside Electron. But we should think more about it.

Thanks for your prompt reply. Your solution works fine for me already.

@PhaserEditor2D
Copy link
Owner

I was thinking more about this issue with PWA and I think we can have a fully PWA offline version of the editor. So users can download the project as a zip file or save it in something like dropbox or drive. It is another option to run the editor. Web technology is so flexible! I will keep this issue open. Thanks.

@PhaserEditor2D
Copy link
Owner

PhaserEditor2D commented Aug 26, 2020

@NickChowHK I keep thinking on this and I am exciting about the Native Filesystem API.

I think I will create a complete PWA version of the editor that is hosted in our servers but can be used to build projects stored locally, in the user system.

@PhaserEditor2D PhaserEditor2D added Enhancement New feature or request GameChanger labels Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request GameChanger
Projects
None yet
Development

No branches or pull requests

2 participants