Update: CC - Snake FS - Mouse Down (gzewp2awcf.js) 144 bytes modified
parent
a32703fa0a
commit
6aa0c3a96f
|
@ -6,6 +6,13 @@ if (!this.initialized) {
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
|
var mouse = {
|
||||||
|
x : (data.event.offsetX / data.event.target.width ) * 2 - 1,
|
||||||
|
y : -(data.event.offsetY / data.event.target.height) * 2 + 1
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(mouse);
|
||||||
|
|
||||||
//@ sourceURL=mouseDown.js
|
//@ sourceURL=mouseDown.js
|
Loading…
Reference in New Issue