Right now I have a project that is using NodeJS, NowJS and MongoDB/MongooseJS server-side. Client-side, I am using a javascript game engine call MelonJS.
MelonJS is "non-intrusive" in the sense that it is just a set of javascript that I can use to manipulate the canvas. I can easily alter them or use them to call javascript outside of the engine. E.g. I can ask MelonJS to listen to arrow keys and call server-side functions via NowJS when they are pressed.
I am thinking of switching to Construct 2 because it looks like it can shorten development time. But is it easy to call outside javascript from within Construct 2 to hook it up to Node.JS?
E.g.
1) Construct 2 listens to arrow key.
2) Arrow key pressed --> Construct 2 calls server-side function via NowJS.
3) Server processes action and calls client-side Construct 2 function via NowJS.
4) Construct 2 processes the function and carry out the action.
Or do I have to use clunky workarounds?