@shed/render-system
v0.1.3
Published
mini-shed 2d render system
Downloads
3
Readme
this._ecs.addNewEntity('entity',
{ type: 'transform', x: 100, y: 100, width: 100, height: 100 },
{ type: 'render', image: { src: '80x80.png' } }
)
依赖于 state.assets[]
下的图片
ecs.state.assets['80x80.png'] = img
依赖 Camera 矩阵,如果没有,默认用topleft
ecs.state.vpMatrix