Skip to content

Commit

Permalink
refactor: easterEggs
Browse files Browse the repository at this point in the history
  • Loading branch information
canalun committed Feb 25, 2024
1 parent 7ebb7aa commit 93df266
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/game/configuration/easterEggs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const msg = `
const msg = `
// _ _ _
// | |__ _ _(_)__| |__
// | '_ | '_| / _| / /
Expand All @@ -16,3 +16,7 @@ export const msg = `
You found me!!
https://github.com/canalun/brick-break-anywhere
`

export function displayMessageInConsole() {
console.log(msg)
}
4 changes: 2 additions & 2 deletions src/game/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { msg } from "./configuration/easterEggs"
import { displayMessageInConsole } from "./configuration/easterEggs"
import { freezePage } from "./start/freezePage"
import { initializeObjects } from "./start/initializeObjects"
import { standby } from "./start/standby"

export function main(options: { withScoreboard: boolean }) {
console.log(msg)
displayMessageInConsole()

try {
freezePage()
Expand Down

0 comments on commit 93df266

Please sign in to comment.