rendering a board of squares
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
|
||||
export default class Point {
|
||||
constructor(newX, newY) {
|
||||
this.x = newX;
|
||||
this.y = newY;
|
||||
constructor(x, y) {
|
||||
this.x = Math.round(x);
|
||||
this.y = Math.round(y);
|
||||
}
|
||||
|
||||
getX() { return this.x; }
|
||||
|
||||
Reference in New Issue
Block a user