so://phie

game-engine

A lightweight JavaScript game engine
git clone git://soophie.de/game-engine

blob: 78e3350db5c8c7cb4d58770a4722b750ca050f4b (218 bytes)[doc][blame][raw]

1class Rect {

2 constructor(width, height) {

3 this.width = width;

4 this.height = height;

5 }

6}

7

8class Circle {

9 constructor(radius) {

10 this.radius = radius;

11 }

12}

13

14const Shape = { Rect, Circle };

15

16export default Shape;