Coder Social home page Coder Social logo

breakout.rust's Introduction

Breakout Game in Rust

breakoutimage

Overview

This project is a Rust implementation of the classic arcade game Breakout. In this game, players control a paddle at the bottom of the screen to bounce a ball against a wall of bricks at the top. The goal is to break all the bricks without letting the ball fall off the bottom of the screen.

Features

  • High-resolution gameplay (1440x1080)
  • Randomized brick colors
  • Scoring system and live tracking
  • Simple and intuitive paddle controls

Prerequisites

Before you can run this game, you need to have the following installed:

  • Rust programming language
  • SDL2
  • SDL2_ttf (for font rendering)

Installation

  1. Install Rust: Follow the instructions on the official Rust website to install Rust on your machine.

  2. Install SDL2 libraries: SDL2 and SDL2_ttf are required to handle graphics rendering and font management. You can install these libraries through your operating system's package manager. For example, on Ubuntu, you can use:

    sudo apt-get install libsdl2-dev libsdl2-ttf-dev

Building and Running

To build and run the game, follow these steps:

  1. Clone the repository:

    git clone https://github.com/lostjared/Breakout.Rust.git
    cd Breakout.Rust/breakout-rust
  2. Compile the project:

    cargo build --release
  3. Run the game:

    cargo run --release

Controls

  • Left Arrow Key: Move the paddle left
  • Right Arrow Key: Move the paddle right
  • Escape Key: Exit the game

Contributions

Contributions to this project are welcome. Please fork the repository, make your changes, and submit a pull request.

breakout.rust's People

Contributors

lostjared avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.