From 1d4ed66404b96becdf18f9426305f133149b0312 Mon Sep 17 00:00:00 2001
From: sangge <2251250136@qq.com>
Date: Sun, 10 Dec 2023 12:05:57 +0800
Subject: [PATCH] feat: add dialogue
---
css/game.css | 16 +++++++++++++++-
game.html | 12 ++++++++----
js/game.js | 41 +++++++++++++++++++++++++++++------------
3 files changed, 52 insertions(+), 17 deletions(-)
diff --git a/css/game.css b/css/game.css
index fe46628..0a36444 100644
--- a/css/game.css
+++ b/css/game.css
@@ -51,14 +51,28 @@
left: 1050px;
display: none;
}
- #dialogueBox img{
+ #dialogueBox {
position: absolute;
width: 512px;
height: 512px;
top: 50px;
left: 600px;
+ }
+ #dialogueBox img{
+ position: absolute;
+
+ width: 512px;
+ height: 670px;
display: none;
}
+ #dialogueText {
+ position: absolute;
+ top: 200px;
+ left: 100px;
+ width: 340px;
+ height: 128px;
+ font-size: 40px;
+ }
#customer1 img{ /* 中年男 */
display: none;
}
diff --git a/game.html b/game.html
index d45fe43..c73b52f 100644
--- a/game.html
+++ b/game.html
@@ -19,19 +19,23 @@