A lightweight JavaScript game engine
git clone git://soophie.de/game-engine
blob: 78e3350db5c8c7cb4d58770a4722b750ca050f4b (218 bytes)[doc][blame][raw]
1
class Rect {2
constructor(width, height) {3
this.width = width;4
this.height = height;5
}6
}8
class Circle {9
constructor(radius) {10
this.radius = radius;11
}12
}14
const Shape = { Rect, Circle };16
export default Shape;