Commit e510cbf6 authored by Sander Kvenild's avatar Sander Kvenild
Browse files

Fixed objects floating towards top left

parent 054b5615
......@@ -23,8 +23,8 @@
this.orginalFarge = this.farge;
}
flytt() {
this.x = this.x + Math.floor(Math.random() * 10 -5);
this.y = this.y + Math.floor(Math.random() * 10 -5);
this.x = this.x + Math.round(Math.random() * 10 -5);
this.y = this.y + Math.round(Math.random() * 10 -5);
}
// Keep bubbles from going outside of canvas
......@@ -65,8 +65,8 @@
this.orginalFarge = this.farge;
}
flytt() {
this.x = this.x + Math.floor(Math.random() * 10 -5);
this.y = this.y + Math.floor(Math.random() * 10 -5);
this.x = this.x + Math.round(Math.random() * 10 -5);
this.y = this.y + Math.round(Math.random() * 10 -5);
}
// Keep bubbles from going outside of canvas
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment