Don't know if you are thinking like me, I hope MV supports Jquery so I don't have to code in pure ECMAScript 5 while waiting for ECMAScript 6 becomes standard in most browsers. I actually don't like ECMAScript 5, the logic is awkward.
RPG Maker MV and Jquery.
Learning JavascriptWhat features of jQuery would you use for game making?
Not sure, that's why I hope MV support this library. Chances MV supports ECMAScript 5. Since ECMAScript 6 is not support in most browsers. JQuery has it limit capability in support Canvas. If MV team comes up with a way that we can use Jquery to write plug in that would much easier code mixing Jquery and pure JS, instead of write everything in pure JS.
I am curious what libraries MV uses or just plain pure standard JS5 and web GL.
I am curious what libraries MV uses or just plain pure standard JS5 and web GL.
It will fully suport ES5, don't mind about that, I can still say, do you really need es6 features ?
Use traceur, it will give you just and small toolchain and your code will work good.
I don't really like jquery for non-dom the selectors and collections doesn't fit in the canvas.
Use traceur, it will give you just and small toolchain and your code will work good.
I don't really like jquery for non-dom the selectors and collections doesn't fit in the canvas.
with java script couldn't you have MV run an external scripting language tho?
If you're not sure what you would use from jQuery, what reasons would you have for wishing it will be supported?
Or do you mean, you hope that you will be able to use external libraries because there may or may not be something out there that can be useful, that you can use in MV.
Oh I thought he asked for what plug in would I write using Jquery. Sure I do know what to do with Jquery has very cool methods which much easier to deal with. Take jquery $.each() for example to deal with array. Jquery has two set of each() one is to deal with DOM and another to deal with just pure JS objects.
Take a look through its API. Ajax, Event Handling, callbacks...etc. these you can use to deal with JS objects.
http://api.jquery.com/category/core/
Another good thing of Jquery is it cross browsers compatibility. If you write pure JS you would have to write more code than just using one of built in Jquery callbacks.
Take a look through its API. Ajax, Event Handling, callbacks...etc. these you can use to deal with JS objects.
http://api.jquery.com/category/core/
Another good thing of Jquery is it cross browsers compatibility. If you write pure JS you would have to write more code than just using one of built in Jquery callbacks.
ES6 simplified many JS features. It does support class, inheritance, collections...etc. in a very OOP way. You don't have to deal with prototype and closure scope, to mimic other OOP. JS6 is so similar to Java 8 in many ways and I like it. What we're been discussing no more or less than speculation and wishful thinking.
In my opinion, jQuery is too bloat for RPG Maker.
You can find vanilla JS code to accomplish jQuery functions here 😀 http://youmightnotneedjquery.com/
You can find vanilla JS code to accomplish jQuery functions here 😀 http://youmightnotneedjquery.com/
JQuery itself is overkill for canvas and game development there, though you might need something like ajax, which is very very easy to shorten. So I would say "No" to JQuery in RMMV.
ES6 surely looks cleaner and shorter than ES5, but ES5 is not that bad. In case of "OOP", I prefer ES5 prototype than ES6 class. Anyway, for those OOP and ES6 lovers, I recommend using traceur or other kind of "scripts" like TypeScript or CoffeeScript than hoping for ES6 support.
ES6 surely looks cleaner and shorter than ES5, but ES5 is not that bad. In case of "OOP", I prefer ES5 prototype than ES6 class. Anyway, for those OOP and ES6 lovers, I recommend using traceur or other kind of "scripts" like TypeScript or CoffeeScript than hoping for ES6 support.
As I said, use traceur for ES6 features, I wouldn't load the entire jquery library only because I need $.each, or $.ajax.
with traceur you can even do promises and they will be supported everywhere, and it's not than ES5 'classes' are hard to write anyway...
after all you can always do something like:
function extend(parent /*, klass */) { var klass = arguments.length > 1 ? arguments[1] : function () {}; // extending empty classes klass.prototype = Object.create ? Object.create(parent.prototype) : new parent; klass.prototype.constructor = klass; return klass;};var Child = extend(Parent, function () { // .... with constructor});var Grandson = extend(Child); // Using empty constructorIt seems quite clear if you choose this, after all.
You don't even know if you can use ajax in the desktop versions (they may implement a custom load_file wich loads according to the platform9
with traceur you can even do promises and they will be supported everywhere, and it's not than ES5 'classes' are hard to write anyway...
after all you can always do something like:
function extend(parent /*, klass */) { var klass = arguments.length > 1 ? arguments[1] : function () {}; // extending empty classes klass.prototype = Object.create ? Object.create(parent.prototype) : new parent; klass.prototype.constructor = klass; return klass;};var Child = extend(Parent, function () { // .... with constructor});var Grandson = extend(Child); // Using empty constructorIt seems quite clear if you choose this, after all.
You don't even know if you can use ajax in the desktop versions (they may implement a custom load_file wich loads according to the platform9
Most of jQuery's functionality is oriented towards DOM manipulation- you don't need that.
If you really want to use ES6/ES2015 functionality, you can code in ES6 and use babel to transpile that in ES5; You'll get all ES6 features supported in any runtime that uses ES5. Even if you had a proper use for jQuery in RM, you'd be better off using zepto which has a jQuery compatible API.
If you really want to use ES6/ES2015 functionality, you can code in ES6 and use babel to transpile that in ES5; You'll get all ES6 features supported in any runtime that uses ES5. Even if you had a proper use for jQuery in RM, you'd be better off using zepto which has a jQuery compatible API.
Not entirely true. You can develop game with Jquery though Jquery isn't as powerful as other library when developing games. However, the advantage of Jquery is the ease of use, similar to the principle of RPGMAKER, though not powerful but easy to use. Jquery API is very small about 1.2mb. If you're worry about Canvas which for 3D, visual effects and physics, there is plug in for Jquery to work with Canvas.Previous version of RM did not have those features, only 2d plain sprites.
http://projects.calebevans.me/jcanvas/
http://projects.calebevans.me/jcanvas/
As Jquery is available just as a single js file, it's immediately usable in your game. Should just be able to copy and paste it as if it was a script.
You can use jquery in development of RPG Maker MV games. You would need a way to include it in your scripts.
As for the comment on you dont need dom manipulation, you for sure do if you want to make some more complicated UI's you are working with a canvas element and as such you have an element on the "page" to work with, something you can manipulate and use. React JS is another good example of what you could use, it creates a virtual dom and allows you to manipulate that through immutability and best practices.
React JS is for sure something I will be using 😀DD
As for the comment on you dont need dom manipulation, you for sure do if you want to make some more complicated UI's you are working with a canvas element and as such you have an element on the "page" to work with, something you can manipulate and use. React JS is another good example of what you could use, it creates a virtual dom and allows you to manipulate that through immutability and best practices.
React JS is for sure something I will be using 😀DD
RPG Maker MV doesn't use the DOM. It's going to be either WebGL based, or Canvas based if your browser doesn't support WebGL. There is very few dom included. You can understand this by spending a little bit of time looking at the demo.
There shouldn't be anything preventing you from using the DOM though.
I don't know how easy it would be to build game UI's using HTML/CSS but you should be able to push data out from the game and into various DOM elements.
http://stackoverflow.com/questions/6608996/is-it-possible-to-create-an-html-canvas-without-a-dom-element and https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Tutorial/Getting_started_with_WebGL
Ill wait for your explanation of how neither of these are dom related .... there might not be a dom in the sense of adding h1, h2, p, div and so on tags but that doesnt mean there isnt a way to add additional elements. It also doesnt mean you cant use libraries like React to create virtual doms ... research is key my friend.
His point is that there is NO dom what so ever, but he is wrong. And you are right. There is a DOM and you can use it, hence the concept of docment.fucntionToCall()
Ill wait for your explanation of how neither of these are dom related .... there might not be a dom in the sense of adding h1, h2, p, div and so on tags but that doesnt mean there isnt a way to add additional elements. It also doesnt mean you cant use libraries like React to create virtual doms ... research is key my friend.
His point is that there is NO dom what so ever, but he is wrong. And you are right. There is a DOM and you can use it, hence the concept of docment.fucntionToCall()
There is a DOM. Just enough DOM to get a canvas on there, and a little more for when an error happens that critically stops the game. Adding onto the DOM is possible, yes, but it's unlikely to help you outside of an HTML5 export. It's highly unlikely the desktop, and especially mobile, exports will support displaying DOM elements on the screen.
Research is key my friend.
I might not know enough about WebGL and canvas elements but I do know about javscript and javascript requires at the very least some kind of DOM to run in, with out the DOM we wouldnt have javascript
Im throwing your research comment back in your face with a video:
Im throwing your research comment back in your face with a video:
Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mv-and-jquery.44440/