Closed coreyar closed 3 years ago
Hi Corey, thanks for update. I have following suggestions and then question where I need more clarifications.
few questions I have:
src/
directory a bit - I would prefer to have there actual and most up-to-date version of engine + UI implementations. This way everybody could easily find what's the latest version of the code. Old models/PoC should be kept in an archive folder or removed once it is clear we don't need them.
src/
contains current impl of engine and responsive web UIsrc/engine/
for core model of engine and editor and then src/web/
for responsive web UI that could contain .html files, perhaps react impl, etc; There could be more implementations of UI (in theory if there is time) like src/web
, src/web_angular,
src/desktop`. Not 100% sure how it would end up but we should definitely separate engine from UI.src/engine/ I would move
poc/engine/`src/web
or src/mobile
or something like thatpackage.json
? Why is it needed? (probably you need to educate me here how it helps us and how to use it - I would welcome some links or improved main readme.md on usage)/poc
. Ideally I would like to be able to install the the files from npm
or yarn
and organizing them in src
is a good way to prepare for that. I have also give it some thought that it might make sense to seperate this project into a couple repos. 1) The game engine and maybe the editor 2) any supporting UI elements. That way users can use the game engine with their own UI elements and not have to download the available UI elements. It will also allow users to easily extend one or the other. Are you suggesting to replace /src
with the engine code in /poc
? I think /poc
could be renamed to /example
so that a user could install the project and have a working example. I have experience in react
and react-native
and have a very basic prototype build in react in the /poc
folder.
The package.json contains all information about building and running a project including any dependencies. In the same directory of the project you can run npm install
or yarn install
to install dependencies. It can also contain scripts for building and linting the project.
Webpack is a javascript and assets bundler. With it you can use babel plugins to transpile es6, jsx, and other javascript dialects.
I'll update the README.md with information about running the example.
I pushed up a much more robust reorganization.
Creating a pull request to get thoughts on the restructuring and cleanup.
I am not as familiar with the namespace pattern this project uses. I am more familiar with using modules to control scope and using webpack to bundle the code but I can understand how the namespace function is working. I will probably dive more into how the game engine works and see how it fits in with the code in
src