Game Project – Refactoring started

When returning to coding after a lot of 3D-modeling, I felt that the project needed improvements.
Earlier, I´ve designed every project/part as a ‘room’ in The Nest and gave it one dedicated file containing all room-specific JS (not including libraries for 3D etc.).
This project is now up in about 5000 lines, so I had to break it apart in multiple files to make developing easier and then assemble them back before running.

I came across gulp while working on another project and must say that it really make things smooth through gulp-concat & gulp-watch. (Available through npm)
I can now work on different parts and when something gets updated, my gulp-watch script will run gulp-concat to merge these parts into one file.

I will probably not update this development blog as much as before, because most changes will be about optimizing and refactoring code. When new features are added, they will get posted here at some point.

Leave a comment

Design a site like this with WordPress.com
Get started