mirror of
https://forge.murkfall.net/bluesaxman/blue.js.git
synced 2026-03-13 09:34:20 -06:00
fixed default rotation on containers and shapes, should be 0 degrees now
This commit is contained in:
@@ -7,7 +7,7 @@ class shape {
|
||||
this.type = "string" == typeof type ? (["rect","elipse","image"].includes(type) ? type : "rect") : "rect";
|
||||
this.coordinates = coordinates instanceof vector ? coordinates : new vector([0,0]);
|
||||
this.dimentions = dimentions instanceof vector ? dimentions : new vector([1,1]);
|
||||
this.rotation = rotation instanceof vector ? rotation : new vector([0,-1]);
|
||||
this.rotation = rotation instanceof vector ? rotation : new vector([0,1]);
|
||||
this.fColor = "string" == typeof fColor ? fColor : undefined;
|
||||
this.bColor = "string" == typeof bColor ? bColor : undefined;
|
||||
this.bStyle = "number" == typeof bStyle ? bStyle : undefined;
|
||||
@@ -89,7 +89,7 @@ class container {
|
||||
constructor(coordinates,dimentions,rotation) {
|
||||
this.coordinates = coordinates instanceof vector ? coordinates : new vector([0,0]);
|
||||
this.size = dimentions instanceof vector ? dimentions : new vector([1,1]);
|
||||
this.rotation = rotation instanceof vector ? rotation : new vector([0,-1]);
|
||||
this.rotation = rotation instanceof vector ? rotation : new vector([0,1]);
|
||||
this.movementVector = new vector([0,0]);
|
||||
this.shapes = [];
|
||||
this.containers = [];
|
||||
|
||||
Reference in New Issue
Block a user