Skip to content

Commit

Permalink
fix execute functions on observable objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
ispyhumanfly committed Nov 1, 2023
1 parent 5c3df4e commit 69deecc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* ```
*/

import { IQCoreAssets } from "./assets/index"
// import { IQCoreAssets } from "./assets/index"

/*
-$a. ------------------ .a$ ---------------------------- %$!, ----------------%
Expand Down
11 changes: 7 additions & 4 deletions packages/templates/src/eternity/iniquity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ export class Eternity extends IQ {
*/
public start() {
this.data.observe("alert", () => {
const alert = this.data.model.alert as string
this.artwork().render({ filename: "as-ini.cp437.ans", mode: "reactive", clearScreenBefore: true })

alert.color("white").center()
this.data.model.alert()

this.gotoxy(1, 1)
this.wait(2000)
Expand All @@ -47,7 +46,9 @@ export class Eternity extends IQ {
this.artwork().render({ filename: "iqascii.ans", clearScreenBefore: false }).colorReset()
this.wait(2000)

this.data.model.alert = "Loading iniquity..."
this.data.model.alert = () => {
"Loading iniquity...".center()
}

"".color("reset")

Expand All @@ -62,7 +63,9 @@ export class Eternity extends IQ {
* Welcome screen
*/
public welcome() {
this.data.model.alert = "Welcome to eternity bbs ... "
this.data.model.alert = () => {
"Sometasdasdasda".color("background bright green").center()
}

this.artwork().render({ filename: "we-iniq3.ans", clearScreenBefore: true })

Expand Down

0 comments on commit 69deecc

Please sign in to comment.