UNPKG

2d-gaming

Version:

This is an Angular package fo developing 2d games in angular. [Please report issues/questions/any ideas to better help this package](https://github.com/CWestBlue/2d-gaming/issues).

20 lines 655 B
var ObjectDesign = (function () { function ObjectDesign(width, height, shape, color, image, text) { this.image = image; this.width = width; this.height = height; this.shape = shape; this.color = color; this.centerY = this.height / 2; this.centerX = this.width / 2; var first = this.centerY + this.centerX; this.radius = first / 2; if (shape === 'image') { this.image = new Image(); this.image.src = color; } } return ObjectDesign; }()); export { ObjectDesign }; //# sourceMappingURL=objectDesign.component.js.map