Giter Club home page Giter Club logo

Comments (2)

0xERR418 avatar 0xERR418 commented on July 20, 2024

Seems like that's the map asset packer, nevermind. Still getting my head around this please bare with me.

from lttp.

englercj avatar englercj commented on July 20, 2024
  1. LESS. There's almost no CSS. Why?

Why not? webpack and npm do all of this for you, you shouldn't even notice it is less. imports, and variables is basically why.

  1. EJS. There's almost no HTML. Why?

Because we inject values into it during webpack build. This is done by compiling the ejs and inserting the bundles who's names are not preknown.

  1. Gulp and webpack? I don't get it.

Webpack builds the bundle js file, but there is more to the build than that. We need to build asset packs for the maps, lint the code, watch for changes on all things (not just bundle js), etc.

  1. Inheriting Phaser classes makes it difficult to reason where things happening, in LTTP or in Phaser.

Not sure I understand what you are saying here.

TypeScript - already a big step, and many JS devs will not bother with non-raw JS libraries, and the gains are questionable here - outside of the core game engine.

Typescript is used as ES6 + types here. If no typescript was used, the code would look nearly identical since it would be ES6. I'm not worried about adoption or getting other devs on-board. I'm just building something I find fun to work on.

from lttp.

Related Issues (9)

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.