From e84eb8044dc602f06497e8255e62b32566b44e16 Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Tue, 12 Dec 2023 22:32:16 +0800 Subject: [PATCH] feat: update new asset --- css/game.css | 46 ++++++++++++++++++++++++++++++++-------------- game.html | 5 +++++ js/game.js | 34 ++++++++++++++++++++-------------- 3 files changed, 57 insertions(+), 28 deletions(-) diff --git a/css/game.css b/css/game.css index 0a36444..43c17a0 100644 --- a/css/game.css +++ b/css/game.css @@ -1,6 +1,7 @@ body { background-image: url('../asset/pic/qinshihuang/background.png'); background-repeat: no-repeat; + background-color: rgb(0, 136, 109); } #desktop{ position: absolute; @@ -14,7 +15,7 @@ width: 1024px; height: 1024px; top:50px; - left: 0px; + left: -100px; } #restaurant .dish img { position: absolute; @@ -28,7 +29,7 @@ position: absolute; width: 800px; height: 800px; - z-index: 3; + z-index: 4; } #qinshihuang img{ /* 秦始皇 */ @@ -61,18 +62,23 @@ #dialogueBox img{ position: absolute; - width: 512px; - height: 670px; + width: 800px; + height: 800px; + top: -100px; + left: -100px; display: none; } #dialogueText { position: absolute; - top: 200px; + top: 170px; left: 100px; - width: 340px; - height: 128px; - font-size: 40px; + width: 400px; + height: 150px; + font-size: 25px; + text-align: center; /* 水平居中 */ + } + # #customer1 img{ /* 中年男 */ display: none; } @@ -83,39 +89,51 @@ display: none; } #customer2 img{ /* 小女孩 */ + top:150px !important; display: none; } #customer2-2 img{ /* unhappy小女孩 */ + top:150px !important; display: none; } #customer2-3 img{ /* angry小女孩 */ + top:150px !important; display: none; } #customer3 img{ /* 老奶奶 */ + top:100px !important; display: none; } - #customer3-2 img{ /* 老奶奶 */ + #customer3-2 img{ /* unhappy老奶奶 */ + top:100px !important; display: none; } - #customer3-3 img{ /* 老奶奶 */ + #customer3-3 img{ /* unhappy老奶奶 */ + top:100px !important; display: none; } #mapo-tofu img{ /* 麻婆豆腐 */ + left: 630px; display: none; } #roast-duck img{ /* 烤鸭 */ - left: 250px; + left: 850px; + top: 620px !important; + width: 340px !important; + height: 340px !important; display: none; } #yangzhou-fried-rice img{ - left: 485px; + left: 250px; + top: 730px !important; + width: 200px !important; + height: 200px !important; display: none; } #braised-prawns img{ - left: 700px; + left: 430px; display: none; } #kung-pao-chicken img{ - left: 900px; display: none; } diff --git a/game.html b/game.html index d62c3b4..e7b0711 100644 --- a/game.html +++ b/game.html @@ -34,6 +34,11 @@