Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

calculations are coming out incorrect. #3

Open
ChildishGiant opened this issue May 3, 2016 · 0 comments
Open

calculations are coming out incorrect. #3

ChildishGiant opened this issue May 3, 2016 · 0 comments

Comments

@ChildishGiant
Copy link

ChildishGiant commented May 3, 2016

data.rad goes from ~1 to ~2
and data.grad ~51 10 ~103

code:

  var queen = Crafty.e('2D, Canvas, Color, Image, Fourway, MouseFace')
    .attr({x: $nw/2, y: $nh/2, w: 50, h: 50})
    .color("#00a5e2")
    .image("assets/queen.png", "no-repeat")
    .fourway(200)
    .bind("MouseMoved", function(data) {
      console.log(data)
      this.rotation = data.rad
 });

They're like that but once I resize the window it works fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant