Git Product home page Git Product logo

car-game-in-linux-using-c's Introduction

Car Dodger Game

Table of Contents

Introduction

Car Dodger is a simple yet addictive game built in C for Linux where the player's objective is to dodge oncoming cars while driving their own car on a busy highway. The game provides a challenging experience, testing the player's reflexes and agility.

Features

  • Simple and intuitive gameplay.
  • Randomly generated traffic to keep the game unpredictable.
  • Score tracking to compete with friends.

Requirements

To play Car Dodger, you need the following:

  • Linux-based operating system.
  • GCC (GNU Compiler Collection) for compiling the game.

How to Play

  1. Clone this repository to your local machine.
  2. Compile the game using the provided Makefile.
  3. Run the game executable.
  4. Use the arrow keys to control your car's movement.
  5. Dodge oncoming cars while collecting points.
  6. Try to survive as long as possible and achieve the highest score!

Installation

Follow these steps to install and run the Car Dodger game on your Linux system:

  1. Clone the repository:

    git clone https://github.com/aman1348/car-game-in-linux-using-c.git
    
  2. Navigate to the game directory:

    cd car-game-in-linux-using-c
    
  3. Compile the game:

    gcc car_game.c -o car_game
    
  4. Run the game:

    ./car_game
    
  5. Enjoy the game!

Controls

  • ** A **: Move the car to the left.
  • ** D **: Move the car to the right.
  • ** X **: Quit the game.

car-game-in-linux-using-c's People

Contributors

aman1348 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.