From 1b0d1a568e4224f6f3ff927e06997b9152e86ddf Mon Sep 17 00:00:00 2001 From: Frans Bongers Date: Sun, 24 Nov 2024 16:01:06 +0100 Subject: add css --- .gitignore | 6 ++++++ land-and-freedom.css | 17 +++++++++++++++++ land-and-freedom.scss | 12 ++++++++++++ package.json | 15 +++++++++++++++ play.html | 1 + play.js | 2 ++ 6 files changed, 53 insertions(+) create mode 100644 land-and-freedom.css create mode 100644 land-and-freedom.scss create mode 100644 package.json diff --git a/.gitignore b/.gitignore index 496ee2c..b6f104a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,7 @@ +# Development clutter +node_modules +package-lock.json +tags + +# MacBook system file .DS_Store \ No newline at end of file diff --git a/land-and-freedom.css b/land-and-freedom.css new file mode 100644 index 0000000..0d6b494 --- /dev/null +++ b/land-and-freedom.css @@ -0,0 +1,17 @@ +#map { + background-repeat: no-repeat; + background-size: 100% 100%; + width: 1000px; + height: 850px; + overflow: clip; +} + +#map { + background-image: url(images/map75.png); +} + +@media (min-resolution: 97dpi) { + #map { + background-image: url(images/map100.png); + } +} diff --git a/land-and-freedom.scss b/land-and-freedom.scss new file mode 100644 index 0000000..65694fc --- /dev/null +++ b/land-and-freedom.scss @@ -0,0 +1,12 @@ +#map { + background-repeat: no-repeat; + background-size: 100% 100%; + width: 1000px; + height: 850px; + overflow: clip; +} + +#map { background-image: url(images/map75.png) } +@media (min-resolution: 97dpi) { + #map { background-image: url(images/map100.png) } +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..613747e --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "land-and-freedom", + "version": "1.0.0", + "description": "", + "main": "rules.js", + "scripts": { + "build:scss": "sass --no-source-map land-and-freedom.scss land-and-freedom.css", + "watch:scss": "sass --no-source-map --watch land-and-freedom.scss land-and-freedom.css" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "sass": "^1.81.0" + } +} \ No newline at end of file diff --git a/play.html b/play.html index ea74288..8fac6ec 100644 --- a/play.html +++ b/play.html @@ -9,6 +9,7 @@ + diff --git a/play.js b/play.js index 35d4bd9..6a782fb 100644 --- a/play.js +++ b/play.js @@ -38,6 +38,7 @@ function is_action(action, arg) { let on_init_once = false function on_init() { + console.log('on_init') if (on_init_once) return on_init_once = true @@ -66,6 +67,7 @@ function on_init() { } function on_update() { + console.log('on_update', view) on_init() for (let s = 0; s < SPACE_COUNT; ++s) -- cgit v1.2.3