Sloths / Project-Three

Repository for Project Three
0 stars 0 forks source link

Mouse drags traps and treasure, need to be treasure only #12

Closed Gurjmath closed 9 years ago

Gurjmath commented 9 years ago

mouse drags both treasure and traps, it only needs to drag the treasure

Gurjmath commented 9 years ago

Problem resolved by adding tags to each treasure and trap class. Mouse detection has changed to looking for treasure tags instead of anything on the canvas or using the 'image' class during inheritance.