This mono-repo combines two space-themed web components:
- Casse Brique: Cockpit Astro Assault β a starfighter-inspired brick-breaker reimagined with cockpit HUD overlays.
- Underconstruction-Screen β a customizable under-construction page with a countdown timer and space aesthetic.
- Semi-transparent cockpit frame, reticle targeting indicator, and instrument panels (lives, speed, cooldown, score).
- Asteroids replace classic bricksβprocedurally generated grid with varied sizes.
- Confetti bursts and optional haptic feedback on destruction.
- Responsive canvas resizing and classic paddle-ball physics.
- Background music loop and power-up sound effects.
- Space-themed under-construction landing page.
- Countdown timer to custom launch or maintenance completion date.
- Themed animations (stars, planets, flicker effects).
- Easy integration: standalone HTML, CSS, and JavaScript.
- Responsive design for desktop and mobile.
- Modern web browser (Chrome, Firefox, Safari, Edge).
- Internet connection for CDN assets (Tailwind CSS, Font Awesome, confetti library), or host dependencies locally.
- [Optional] Node.js for running a local HTTP server.
-
Clone the repository:
git clone https://github.com/yourusername/mono-space-project.git
-
Change into the project directory:
cd mono-space-project
-
Ensure the following files are present:
index.html
(Casse Brique game)underconstruction.html
(Underconstruction-Screen page)style.css
(Underconstruction-Screen styles)cockpit-overlay.png
(HUD overlay image)
-
(Optional) Start a local HTTP server:
npx http-server . # or python3 -m http.server 8000
-
Open your browser and navigate to
http://localhost:8080
(or the chosen port).
-
Open
index.html
in your browser. -
Use β / β arrow keys (or touch/drag) to move the astro-paddle.
-
Destroy all asteroids to score points; missing the paddle costs a life.
-
Monitor the HUD panels for real-time updates:
- Lives: Remaining balls before game reset.
- Speed: Paddle movement velocity.
- Cooldown: Reserved for future weapon systems.
- Score: Points per asteroid.
- Open
underconstruction.html
in your browser. - Click Start Countdown to begin the timer.
- Customize the target date via the
data-target-date
attribute in the HTML. - Update the under-construction message and visuals in
style.css
or inline<style>
.
- Cockpit Frame: Swap
cockpit-overlay.png
path in the.cockpit-frame { background: url('...') }
CSS rule. - Asteroid Grid Density: Adjust
cols
androws
variables in the game script. - Ball & Paddle: Modify
ball.dx
,ball.dy
,paddle.width
, andpaddle.height
for difficulty tuning. - Countdown Settings: Change
data-target-date
and message text inunderconstruction.html
. - Styling: Tweak Tailwind classes or CSS variables to match your theme.
/ (project root)
ββ index.html # Casse Brique game entrypoint
ββ underconstruction.html # Underconstruction-Screen page
ββ style.css # Styles for Underconstruction-Screen
ββ cockpit-overlay.png # HUD overlay image
ββ game.js # (Optional) external game logic
ββ README.md # This merged README file
ββ LICENSE.md # MIT License file
We welcome contributions to both projects:
-
Fork the repository.
-
Create a feature branch:
git checkout -b feature/your-feature-name
-
Make your changes and commit:
git commit -am "Add some feature"
-
Push to your branch:
git push origin feature/your-feature-name
-
Open a Pull Request.
Please refer to CONTRIBUTING.md
for detailed guidelines.
This project is licensed under the MIT License. See LICENSE.md
for details.
Original concept and development by Kevin Marville.