From f5fcce110a915fca1b114001962170733276e5df Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Thu, 29 Jun 2023 11:40:46 -0400 Subject: audio, finalize gameplay, wrap around map, stuff --- client/css/editor.css | 7 +- client/css/main.css | 10 +- client/img/atlas.png | Bin 9345 -> 10213 bytes client/index.html | 22 ++-- client/mapeditor.html | 27 +++-- client/sfx/death.mp3 | Bin 0 -> 15885 bytes client/sfx/ghost.wav | Bin 0 -> 70768 bytes client/sfx/intro.mp3 | Bin 0 -> 32733 bytes client/sfx/move.wav | Bin 0 -> 156530 bytes client/src/editor.ts | 37 ++++++- client/src/logic/ai.ts | 237 ++++++++++++++++++++++++++++++++++++++----- client/src/logic/items.ts | 16 ++- client/src/logic/logic.ts | 83 ++++++++++++--- client/src/logic/movement.ts | 113 +++++++++++++++++++-- client/src/logic/players.ts | 5 + client/src/main.ts | 2 +- client/src/map.ts | 17 ++-- client/src/renderer.ts | 169 +++++++++++++++++++++++++----- client/src/types.ts | 106 ++++++++++++++++++- 19 files changed, 737 insertions(+), 114 deletions(-) create mode 100644 client/sfx/death.mp3 create mode 100644 client/sfx/ghost.wav create mode 100644 client/sfx/intro.mp3 create mode 100644 client/sfx/move.wav diff --git a/client/css/editor.css b/client/css/editor.css index 51c7571..23486da 100644 --- a/client/css/editor.css +++ b/client/css/editor.css @@ -11,10 +11,13 @@ canvas { padding: 1rem; } -#mapgen { +#mapgen, #mapload { display: flex; flex-direction: column; - position: absolute; +} + +#mapload { + margin-top: 3rem; } #export { diff --git a/client/css/main.css b/client/css/main.css index 26fab00..e40cbff 100644 --- a/client/css/main.css +++ b/client/css/main.css @@ -19,10 +19,16 @@ body { #center { width: 100vw; height: 100vh; - display: flex; + position: absolute; +} + +#center-inner { + width: 100%; + height: 100%; + position: relative; align-items: center; justify-content: center; - position: absolute; + display: flex; flex-direction: column; } diff --git a/client/img/atlas.png b/client/img/atlas.png index 135b960..b01108c 100644 Binary files a/client/img/atlas.png and b/client/img/atlas.png differ diff --git a/client/index.html b/client/index.html index 251c33d..3145ab0 100644 --- a/client/index.html +++ b/client/index.html @@ -8,16 +8,18 @@
-
- - - -
- - diff --git a/client/mapeditor.html b/client/mapeditor.html index 6fbb158..ed63190 100644 --- a/client/mapeditor.html +++ b/client/mapeditor.html @@ -10,20 +10,27 @@
-
- - - -
-