dlapointeus
unread,Feb 2, 2013, 8:19:44 AM2/2/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pap...@googlegroups.com
We're using paper.js (javascript directly) alongside imapctjs for a game we're developing. Currently we have things *almost* working as we want, however have one issue that we're trying to overcome. On every update, impact clears the canvas and then re-draws all background layers, game entities, etc... We are using paper.js for touch events - however the only way we can seem to get it to work is to to call paper.view.draw(), which also clears the canvas. So, the game runs fine, but when the specific touch events occur that use paper.js, the canvas is cleared a second time during the updates, allowing all the paper.js animations to appear correctly, however removing all the game animations. when the touch event ends, the game resumes as expected. So, the question is how can we re-draw specific items without clearing the canvas? I'm sure there is an obvious answer to this that we're overlooking, however figured we'd ask the question here before looking through the source. Thanks in advance.