diff options
author | Frans Bongers <fransbongers@franss-mbp.home> | 2024-11-24 16:01:06 +0100 |
---|---|---|
committer | Frans Bongers <fransbongers@franss-mbp.home> | 2024-11-24 16:01:06 +0100 |
commit | 1b0d1a568e4224f6f3ff927e06997b9152e86ddf (patch) | |
tree | dd9037e501f382365cde052df7a111cdc4b6cef2 | |
parent | 16b8acb272afb200b5016a7a57e8dbbcc45e1eff (diff) | |
download | land-and-freedom-1b0d1a568e4224f6f3ff927e06997b9152e86ddf.tar.gz |
add css
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | land-and-freedom.css | 17 | ||||
-rw-r--r-- | land-and-freedom.scss | 12 | ||||
-rw-r--r-- | package.json | 15 | ||||
-rw-r--r-- | play.html | 1 | ||||
-rw-r--r-- | play.js | 2 |
6 files changed, 53 insertions, 0 deletions
@@ -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 @@ -9,6 +9,7 @@ <link rel="icon" href="favicon.png"> <link rel="stylesheet" href="/fonts/fonts.css"> <link rel="stylesheet" href="/common/client.css"> +<link rel="stylesheet" href="land-and-freedom.css"> <script defer src="/common/client.js"></script> <script defer src="play.js"></script> </head> @@ -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) |