Giter Site home page Giter Site logo

Port to web about opensc2k HOT 8 CLOSED

nicholas-ochoa avatar nicholas-ochoa commented on April 28, 2024 2
Port to web

from opensc2k.

Comments (8)

Luraktinus avatar Luraktinus commented on April 28, 2024 7

the thing is, electron is really hated by the community which is reasonable...

a huge amount of people wouldn't want to touch or try that game because of electron

from opensc2k.

nicholas-ochoa avatar nicholas-ochoa commented on April 28, 2024 1

Long term yes, short term some dependencies require native components.

from opensc2k.

Daniel15 avatar Daniel15 commented on April 28, 2024 1

@kokarn - A lot of the appeal of writing something in JavaScript is that you can run it in a browser without downloading or installing anything, and that it works on any OS without changes. Electron defeats that purpose :)

from opensc2k.

kokarn avatar kokarn commented on April 28, 2024

I'd just have to say that I don't agree with this at all.
Electron is great for this type of thing, among a lot of others.

AFAIK it's only growing with more and more people & companies using it to quickly build cross-platform solutions.

OFC it's not the most performant way but that's usually worth it in the end because of the much quicker development cycle.

from opensc2k.

kokarn avatar kokarn commented on April 28, 2024

It is indeed nice that some things run great in the browser. I'm not sure if this is one of those things tho.

Take Discord or Slack as great examples of things that absolutely run great in a browser but most people still want to download the apps because they simply run better.

If it would be no extra work I would be all for ofc because more is better. Just wanted to add my 2c so it's just not one opinion :)

from opensc2k.

nicholas-ochoa avatar nicholas-ochoa commented on April 28, 2024

I've been hard at work the last two weeks with a complete re-write using Phaser 3, webpack/eslint/babel, and a whole re-structure of the project. So far I've removed the dependency on native SQLite from the tile database. Re-working how city data is stored so I can remove the SQLite dependency entirely. Right now, I have it running outside of Electron (getting web pack, electron, phaser and my code all running together in harmony was two days of effort that went nowhere).

Hopefully releasing soon, but I do have a few concerns about releasing a web-based version of the project - specifically around how to handle the original game graphics, sound and music. If it's hosted online, options are either hosting the assets with the engine (same thing we're doing now) which is not ideal, or forcing every user to upload their own assets every time they play (terrible user experience).

from opensc2k.

Luraktinus avatar Luraktinus commented on April 28, 2024

wow, awesome OwO

from opensc2k.

nicholas-ochoa avatar nicholas-ochoa commented on April 28, 2024

The rewrite has been pushed, still very much a WIP but it eliminates the Electron and SQLite dependencies entirely.

from opensc2k.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.