[common] bullet with bricks collision

This commit is contained in:
2018-01-07 20:33:05 +03:00
parent 12328a8a5e
commit 348d31d754
33 changed files with 277 additions and 217 deletions

View File

@@ -0,0 +1,15 @@
package ru.m.geom;
class Point {
public var x(default, default):Float;
public var y(default, default):Float;
public function new(x:Float, y:Float) {
this.x = x;
this.y = y;
}
public function add(point:Point):Point {
return new Point(x + point.x, y + point.y);
}
}