From 0f1f7a59cc785f3c1422ed79e721264dd7fcdd7c Mon Sep 17 00:00:00 2001 From: Shreevasvade Date: Tue, 12 Nov 2024 21:23:25 +0530 Subject: [PATCH] Create Battleground game No no one --- Battleground game | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Battleground game diff --git a/Battleground game b/Battleground game new file mode 100644 index 0000000..d6b846b --- /dev/null +++ b/Battleground game @@ -0,0 +1,44 @@ +/* style.css */ + +body { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + margin: 0; + background-color: #2e2e2e; +} + +#game-container { + position: relative; + width: 800px; + height: 600px; + background-color: #1d1d1d; + overflow: hidden; + border: 2px solid #fff; +} + +#player, #enemy { + position: absolute; + width: 50px; + height: 50px; +} + +#player { + background-color: #4caf50; + left: 50px; + top: 275px; +} + +#enemy { + background-color: #f44336; + right: 50px; + top: 275px; +} + +#startButton { + margin-top: 20px; + padding: 10px 20px; + font-size: 18px; + cursor: pointer; +}