Cocos2d-x (javascript) How to create modules or class to reuse in different places?

  • mahesh
    Likes 0

    Problem Description

    Sir,

    First of all, thanks to the video tutorial.
    I have downloaded and practising Cocos2d-x from your video tutorials.

    I tried to implement touch events. Everything was good if i implement them on the same scene layer.
    But it looks like i need to repeat the code everytime in every scene.

    How do i keep them in different place?
    How can i refenrece it in different scene layers?

    Please help me.
    Thanks

Login to reply