JavaScript:
class Tools {
constructor() {
}
axe(handle, head) {
class axe {
constructor(handle, head) {
this._handle = handle;
this._head = head;
}
get parts() {
return [this._handle, this._head];
}
get handle() {
return this._handle;
}
set handle(value) {
this._handle = value;
}
get head() {
return this._head;
}
set head(value) {
this._head = value;
}
};
return new axe(handle, head);
}
handSaw(handle, blade) {
class handSaw{
constructor(handle, blade) {
this._handle = handle;
this._blade = blade;
}
get parts() {
return [this._handle, this._blade];
}
get handle() {
return this._handle;
}
set handle(value) {
this._handle = value;
}
get blade() {
return this._blade;
}
set blade(value) {
this._blade = value;
}
};
return new handSaw(handle, blade);
}
}
class Scene_Example {
constructor() {
this.tools = new Tools();
}
newAxe(handle, head) {
return this.tools.axe(handle, head);
}
newHandSaw(handle, blade) {
return this.tools.handSaw(handle, blade);
}
create() {
this.axe = this.newAxe('wood', 'stone');
this.saw = this.newHandSaw('wood', 'metal');
}
}
this._scene = new Scene_Example();
this._scene.create();
console.log(this._scene.axe); // axe { _handle: 'wood', _head: 'stone' }
console.log(this._scene.saw); // handSaw { _handle: 'wood', _blade: 'metal' }
console.log(this._scene.saw.parts); // [ 'wood', 'metal' ]
console.log(this._scene.saw.blade); // metal
'The google' is flooded with people talking about the awful 1.6.0 update. So many people complained that
KADOKAWA opted for regression and released a 1.5.2 update. They backstepped NW.js and QT. Were all of the other problems resolved by changing those two things? I don't know. Everything looks fine to me in 1.6.0. There was a little issue of the plugin "show_console_on_boot " not working for a few hours. I read about the new version of NW.js and ended up with an improved plugin.
I did notice that KADOKAWA said noting about 'pixi-tilemap.js'. Here is a quote from pixi.js's github:
"Canvas fallback is 5x slower than vanilla rpgmaker. Webgl version is faster and doesnt use extra textures."
I image thats because web technology is moving in an awesome direction and turning away from Webgl would be digital suicide. Removing a newer version of NW.js is just the same. Turning away from from ES6 is CRAZY.
PLEASE MAINTAIN YOUR PLUGINS. Don't be like Internet Explorer.. Don't be like Apple.. The internet is for everyone.
Allowing RPG Maker to use current tech will benifit so~~~~ many people. please.. please.. help us tell stories to our children with RPG Maker MV. They wont put down the phones...
so, anyways..ES6 is here. I'd love to see more about its use in MV on the forums.
Feel free to post some tip below. It's a new day, gotta wake up somewhere.
Last edited: