Jump to content

phaser scrolling background


caesar
 Share

Recommended Posts

hello,

my goal is to create a sprite bigger then the screen and have the user scroll to see the different parts of it. so i wanted to ask if phaser had any sprite eventListener functions such as 

        var canvas = window.document.getElementsByTagName('canvas')[0],
            prevX = 0, prevY = 0, mouseDown = false;

where canvas can be used as 

        canvas.addEventListener('mousedown',function(e){
        });

       canvas.addEventListener('mousemove',function(e){
        });

thanks 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...