This is a simple Breakout game with a "Quit Smoking" message, designed to run in a web browser. The game is implemented using HTML5, CSS, and JavaScript, and it can be served using an Nginx server within a Docker container.
- Introduction
- Prerequisites
- Installation
- Running the Game
- Docker Usage
- Game Controls
- Contributing
- License
This project demonstrates a basic Breakout game where the player controls a paddle to bounce a ball and break bricks. The game includes a message encouraging players to "Quit Smoking."
To run this project, you need the following installed on your machine:
- Docker
- A web browser
-
Clone this repository to your local machine:
git clone https://github.com/yourusername/breakout-game.git cd breakout-game
-
Ensure you have Docker installed and running.
To run the game, you can either open the HTML file directly in a web browser or use Docker to serve the files.
Open index.html
in your web browser:
open index.html
Docker Usage Build the Docker image:
Code kopieren
docker build -t breakout-game .
Run the Docker container: Code kopieren
docker run -d -p 8080:80 --name breakout-container breakout-game
Open your web browser and navigate to http://localhost:8080.
Left Arrow: Move the paddle to the left Right Arrow: Move the paddle to the right Contributing Contributions are welcome! Please feel free to submit a Pull Request or open an issue.
This project is licensed under the MIT License. See the LICENSE file for more details.