- Joined
- Nov 27, 2015
- Messages
- 556
- Reaction score
- 794
- First Language
- English
- Primarily Uses
- RMMV
Introduction
Hello, everyone! It’s time to discuss ES6, or JavaScript in RPGMaker MV(RMMV). Most code in RPGMaker MV is written in ES5. RPGMaker MV is an engine running on NW.js (or Node-webkit); the version is older (nw.js is 0.12.3), however this still allows developers to use some ES6 syntax inside of their code alongside ES5 code.
To start of, I’ve decided to gather most of the features that work in RMMV. Here’s a list of ES6 features available in RMMV.
Features
[*]
Template Literals
[*]
Classes
[*]
Symbols
[*]
String Methods
[*]
Numbers
[*]
Sets and weak sets
[*]
Maps and weak maps
Each of these features can enhance your code in some way as you’re developing your plugins. Furthermore, you can use them in tandem with regular ES5 code; that’s the most important point to make.
In future posts, I’ll go over each feature in depth, and give you a general idea of how each one can improve your code in some way, as I’ve started using ES6 in my JavaScript.
Finally, if you enjoyed this small tidbit of information, or you think you’d like to know more, please comment down below and stay tuned!
Hello, everyone! It’s time to discuss ES6, or JavaScript in RPGMaker MV(RMMV). Most code in RPGMaker MV is written in ES5. RPGMaker MV is an engine running on NW.js (or Node-webkit); the version is older (nw.js is 0.12.3), however this still allows developers to use some ES6 syntax inside of their code alongside ES5 code.
To start of, I’ve decided to gather most of the features that work in RMMV. Here’s a list of ES6 features available in RMMV.
Features
Block Scoped Variables
Objects
Object Assignment
Shorthand Object Properties
Method Properties
[*]
Template Literals
Expression Interpolation
Multiline Strings
[*]
Classes
Class Inheritance
Base Class Access
Getters and setters
[*]
Symbols
[*]
String Methods
Repeat
Starts With
Includes
IndexOf
[*]
Numbers
Type Checking
Safety Checking
Number Comparison
Truncation
Sign Determination
[*]
Sets and weak sets
[*]
Maps and weak maps
Each of these features can enhance your code in some way as you’re developing your plugins. Furthermore, you can use them in tandem with regular ES5 code; that’s the most important point to make.
In future posts, I’ll go over each feature in depth, and give you a general idea of how each one can improve your code in some way, as I’ve started using ES6 in my JavaScript.
Finally, if you enjoyed this small tidbit of information, or you think you’d like to know more, please comment down below and stay tuned!

