Spaces:
Running
Running
Add 2 files
Browse files- index.html +23 -8
- prompts.txt +2 -1
index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
<title>Tons of Gold: Stacking Bricks</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<style>
|
| 9 |
-
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;600&display=swap');
|
| 10 |
|
| 11 |
body {
|
| 12 |
font-family: 'Poppins', sans-serif;
|
|
@@ -16,7 +16,9 @@
|
|
| 16 |
}
|
| 17 |
|
| 18 |
.title {
|
| 19 |
-
font-family: '
|
|
|
|
|
|
|
| 20 |
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
| 21 |
}
|
| 22 |
|
|
@@ -113,6 +115,11 @@
|
|
| 113 |
border: 2px solid #d4af37;
|
| 114 |
}
|
| 115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
/* Responsive adjustments */
|
| 117 |
@media (max-width: 768px) {
|
| 118 |
.game-grid-container {
|
|
@@ -126,19 +133,27 @@
|
|
| 126 |
}
|
| 127 |
}
|
| 128 |
|
| 129 |
-
/*
|
| 130 |
-
.
|
| 131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
}
|
| 133 |
</style>
|
| 134 |
</head>
|
| 135 |
<body class="flex flex-col items-center justify-start py-2 px-2 overflow-hidden">
|
| 136 |
<div class="flex flex-col items-center mb-1 sm:mb-2">
|
| 137 |
-
<h1 class="title text-3xl sm:text-4xl md:text-5xl font-bold text-gold-dark">
|
| 138 |
<h2 class="text-lg sm:text-xl font-semibold text-gold-dark">Stacking Bricks</h2>
|
| 139 |
</div>
|
| 140 |
|
| 141 |
-
<div class="flex flex-col lg:flex-row items-center justify-center gap-2 sm:gap-4 md:gap-6 w-full max-w-5xl px-2
|
| 142 |
<div class="game-container relative" style="width: 70vmin; height: 140vmin; max-width: 300px; max-height: 600px;">
|
| 143 |
<div id="grid" class="grid w-full h-full"></div>
|
| 144 |
<div id="game-over" class="game-over absolute inset-0 hidden flex-col items-center justify-center text-gold-dark">
|
|
@@ -150,7 +165,7 @@
|
|
| 150 |
</div>
|
| 151 |
</div>
|
| 152 |
|
| 153 |
-
<div class="flex flex-col gap-2 sm:gap-4 w-full" style="max-width: 200px;">
|
| 154 |
<div class="score-display p-3 rounded-lg">
|
| 155 |
<div class="flex justify-between mb-2">
|
| 156 |
<span class="text-gold-dark font-semibold">Score:</span>
|
|
|
|
| 6 |
<title>Tons of Gold: Stacking Bricks</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<style>
|
| 9 |
+
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;600&family=Roboto+Condensed:wght@700&display=swap');
|
| 10 |
|
| 11 |
body {
|
| 12 |
font-family: 'Poppins', sans-serif;
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
.title {
|
| 19 |
+
font-family: 'Roboto Condensed', sans-serif;
|
| 20 |
+
text-transform: uppercase;
|
| 21 |
+
letter-spacing: 2px;
|
| 22 |
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
| 23 |
}
|
| 24 |
|
|
|
|
| 115 |
border: 2px solid #d4af37;
|
| 116 |
}
|
| 117 |
|
| 118 |
+
/* Dark golden text */
|
| 119 |
+
.text-gold-dark {
|
| 120 |
+
color: #6a4a0a;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
/* Responsive adjustments */
|
| 124 |
@media (max-width: 768px) {
|
| 125 |
.game-grid-container {
|
|
|
|
| 133 |
}
|
| 134 |
}
|
| 135 |
|
| 136 |
+
/* Control panel container */
|
| 137 |
+
.control-panel {
|
| 138 |
+
max-height: calc(100vh - 60px);
|
| 139 |
+
padding-bottom: 60px;
|
| 140 |
+
overflow: hidden;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
/* Ensure game area fits on screen */
|
| 144 |
+
.game-area {
|
| 145 |
+
max-height: 100vh;
|
| 146 |
+
padding-top: 20px;
|
| 147 |
}
|
| 148 |
</style>
|
| 149 |
</head>
|
| 150 |
<body class="flex flex-col items-center justify-start py-2 px-2 overflow-hidden">
|
| 151 |
<div class="flex flex-col items-center mb-1 sm:mb-2">
|
| 152 |
+
<h1 class="title text-3xl sm:text-4xl md:text-5xl font-bold text-gold-dark">TONS OF GOLD</h1>
|
| 153 |
<h2 class="text-lg sm:text-xl font-semibold text-gold-dark">Stacking Bricks</h2>
|
| 154 |
</div>
|
| 155 |
|
| 156 |
+
<div class="flex flex-col lg:flex-row items-center justify-center gap-2 sm:gap-4 md:gap-6 w-full max-w-5xl px-2 game-area">
|
| 157 |
<div class="game-container relative" style="width: 70vmin; height: 140vmin; max-width: 300px; max-height: 600px;">
|
| 158 |
<div id="grid" class="grid w-full h-full"></div>
|
| 159 |
<div id="game-over" class="game-over absolute inset-0 hidden flex-col items-center justify-center text-gold-dark">
|
|
|
|
| 165 |
</div>
|
| 166 |
</div>
|
| 167 |
|
| 168 |
+
<div class="flex flex-col gap-2 sm:gap-4 w-full control-panel" style="max-width: 200px;">
|
| 169 |
<div class="score-display p-3 rounded-lg">
|
| 170 |
<div class="flex justify-between mb-2">
|
| 171 |
<span class="text-gold-dark font-semibold">Score:</span>
|
prompts.txt
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
make a Tetris-like game, where the blocks are gold bars. allow keyboard controls, and use a golden color scheme throughout. The game is called Tons of Gold: Stacking Bricks
|
| 2 |
the main game screen is cutoff at the bottom, I can only see half the area, please fix
|
| 3 |
-
make the game's dimensions responsive, so that no matter the device or screen size that all of the elements are visible without scrolling. also make sure the blocks look like gold bars. make the text dark golden instead of white so its more readable.
|
|
|
|
|
|
| 1 |
make a Tetris-like game, where the blocks are gold bars. allow keyboard controls, and use a golden color scheme throughout. The game is called Tons of Gold: Stacking Bricks
|
| 2 |
the main game screen is cutoff at the bottom, I can only see half the area, please fix
|
| 3 |
+
make the game's dimensions responsive, so that no matter the device or screen size that all of the elements are visible without scrolling. also make sure the blocks look like gold bars. make the text dark golden instead of white so its more readable.
|
| 4 |
+
the right column with the controls and stuff is still not aligned properly, it starts above the top of the screen, please fix, also use a condensed font for the title in all caps. make the dark golden text darker. there seems to be an issue with the sizing on the control area, it extends to the bottom of the page, it should only have padding of 60px after the pause button.
|