Add falling animation

This commit is contained in:
schmelczerandras 2019-09-01 18:13:21 +02:00
commit db6a31dd85

View file

@ -41,11 +41,17 @@ export class DataService extends Root<Page> {
childrenConstructor: null
}
};
for (let page of pages) {
new Page(this, page);
}
setTimeout(() => {
this.children$.subscribe(value => {
this.log();
});
}, 0);
this.children$.subscribe(value => {
this.log();
this._safeChildren.next(value);
this.save(0);
});
@ -60,11 +66,12 @@ export class DataService extends Root<Page> {
}
addPage(name: string) {
new Page(this, {
const page = new Page(this, {
name,
userData: {},
towers: []
});
page.addTower();
}
removePage(page: Page) {