From 57d2088a3a30c259cbf9ae835c873b7ec07a66cb Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 30 Apr 2023 16:39:54 +0300 Subject: [PATCH] update welcome --- src/.gitignore | 2 -- src/js/.gitignore | 2 -- src/js/main.js | 12 +++++++++--- test/.gitignore | 3 +++ {src => test}/favicon.ico | Bin {src => test}/icons/android-chrome-192x192.png | Bin {src => test}/icons/android-chrome-512x512.png | Bin {src => test}/icons/apple-touch-icon.png | Bin {src => test}/icons/favicon-16x16.png | Bin {src => test}/icons/favicon-32x32.png | Bin {src => test}/index.html | 0 test/js/engine.js | 1 + {src => test}/js/game.example.js | 0 {src => test}/site.webmanifest | 0 {src => test}/styles.css | 0 15 files changed, 13 insertions(+), 7 deletions(-) delete mode 100644 src/.gitignore delete mode 100644 src/js/.gitignore create mode 100644 test/.gitignore rename {src => test}/favicon.ico (100%) rename {src => test}/icons/android-chrome-192x192.png (100%) rename {src => test}/icons/android-chrome-512x512.png (100%) rename {src => test}/icons/apple-touch-icon.png (100%) rename {src => test}/icons/favicon-16x16.png (100%) rename {src => test}/icons/favicon-32x32.png (100%) rename {src => test}/index.html (100%) create mode 120000 test/js/engine.js rename {src => test}/js/game.example.js (100%) rename {src => test}/site.webmanifest (100%) rename {src => test}/styles.css (100%) diff --git a/src/.gitignore b/src/.gitignore deleted file mode 100644 index cd6c207..0000000 --- a/src/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/fonts/monogram* -/assets/ diff --git a/src/js/.gitignore b/src/js/.gitignore deleted file mode 100644 index 1eb9afd..0000000 --- a/src/js/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -game.js* -engine.js diff --git a/src/js/main.js b/src/js/main.js index c355af5..c3d25c8 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -33,10 +33,16 @@ export class App { this.scene = new Scene(this.canvas, this.context, w, h); this.prevTime = Date.now(); + const logStrings = [ + 'ujs engine', + `version: ${this.#version}`, + 'feedback: iiiypuk {dog} fastmail.fm', + ]; + if (this.options.welcome) { - console.log('ujs engine'); - console.log('version:', this.#version); - console.log('feedback:', 'iiiypuk {dog} fastmail.fm'); + logStrings.forEach((str) => { + console.log(str); + }); } Pointer.init(); diff --git a/test/.gitignore b/test/.gitignore new file mode 100644 index 0000000..22a18a8 --- /dev/null +++ b/test/.gitignore @@ -0,0 +1,3 @@ +fonts/monogram* +assets/ +js/game.js diff --git a/src/favicon.ico b/test/favicon.ico similarity index 100% rename from src/favicon.ico rename to test/favicon.ico diff --git a/src/icons/android-chrome-192x192.png b/test/icons/android-chrome-192x192.png similarity index 100% rename from src/icons/android-chrome-192x192.png rename to test/icons/android-chrome-192x192.png diff --git a/src/icons/android-chrome-512x512.png b/test/icons/android-chrome-512x512.png similarity index 100% rename from src/icons/android-chrome-512x512.png rename to test/icons/android-chrome-512x512.png diff --git a/src/icons/apple-touch-icon.png b/test/icons/apple-touch-icon.png similarity index 100% rename from src/icons/apple-touch-icon.png rename to test/icons/apple-touch-icon.png diff --git a/src/icons/favicon-16x16.png b/test/icons/favicon-16x16.png similarity index 100% rename from src/icons/favicon-16x16.png rename to test/icons/favicon-16x16.png diff --git a/src/icons/favicon-32x32.png b/test/icons/favicon-32x32.png similarity index 100% rename from src/icons/favicon-32x32.png rename to test/icons/favicon-32x32.png diff --git a/src/index.html b/test/index.html similarity index 100% rename from src/index.html rename to test/index.html diff --git a/test/js/engine.js b/test/js/engine.js new file mode 120000 index 0000000..87456fd --- /dev/null +++ b/test/js/engine.js @@ -0,0 +1 @@ +../../dist/engine-beeeeeeta.js \ No newline at end of file diff --git a/src/js/game.example.js b/test/js/game.example.js similarity index 100% rename from src/js/game.example.js rename to test/js/game.example.js diff --git a/src/site.webmanifest b/test/site.webmanifest similarity index 100% rename from src/site.webmanifest rename to test/site.webmanifest diff --git a/src/styles.css b/test/styles.css similarity index 100% rename from src/styles.css rename to test/styles.css