Jump to content
Search Community

ashkanpower

Members
  • Posts

    1
  • Joined

  • Last visited

ashkanpower's Achievements

1

Reputation

  1. I was searching for this too, i m making a game and i need to synch tweens between clients and server, so it d be the best if both use the same library. I found a way thanks to jack's reply, it s easy: just take a tweenmax or tweenlite (min or uncom) file and put a var window = {}; at begging and then module.exports = window.TweenLite; // or TweenMax at the end of the file. then load the file in the main app var TweenLite = require('TweenLite.min.js'); //or whatever your file name is in the "node_modules" folder you're good to go.
×
×
  • Create New...