Yes, just remember than if you try to use JSON.stringify with a function or recursive objects, it will throw an error.
The alternate property access is the main reason why
array[0] is really
array['0']and
matrix[1, 2]is not possible in javascript...
Well, Imagine this:
var rpg.skills.fireball = { id: 1, element: rpg.elements.fire, damageFormula: function (user, target) { return user.mat * 3 - target.mdf; } /* more here... */}This is really a great way to make skills with some flexibility, adding callbacks and such will provide that you can change it later with another function or or use any type of parameter.
You can do any valid expression inside an alternate property access:
obj[ 2 * 3 + myFuncall() + 'a-b' + id & false || undefined ]is valid.
It is true you will usually use a variable, or a literal string if the name starts with @ or a number..
But the tables you use in RGSS, cannot be used as before, you can't implement operator overload now...
This doesn't mean you cant create a Tileset of course, its more about being expressive and idiomatic in code (wich ruby is great at that)
I really hope that we can use Coffeescript without much troubles when writing new plugins. If you come from ruby or phyton you would have less trouble with using Coffeescript than JavaScript. Since Coffescript compiles into JavaScript you could also use it as a bridge while you are learning JavaScript. But I am also looking forward to see how they have used Javascript to build the new "Classes" and so on.
Window_TitleCommand.prototype.updatePlacement = function (offsetX, offsetY) { ...After all this years, they STILL insist in using ClassType_ClassName...
At least, they are consistent in something
well, you know, maybe a:
Window.TitleCommand is a little more according to javascript standar practices.
Don't take it as the worst thing ever, it is great they still use some things similar to VXA, this should help people to not cry (a lot) in the conversion.
People will still need to learn about prototype anyway...