rendering a board of squares

This commit is contained in:
Gavin McDonald
2018-06-24 13:59:12 -04:00
parent 26c6813d95
commit bf37910877
9 changed files with 374 additions and 47 deletions

View File

@@ -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; }