Giter Club home page Giter Club logo

chrome-dinosaur's Introduction

Chrome Dino Game

Preview

Chrome Dinosaur Game in Python using Pygame! ๐Ÿฆ–

It's the game you see in the Chrome Browser, when you're offline.

Made by maxontech

Table of contents

YouTube Videos

  1. Python/Pygame Chrome Dino (Part 1) - Setup & Dino Animation
  2. Python/Pygame Chrome Dino (Part 2) -JUMPING & DUCKING Motion
  3. Python/Pygame Chrome Dino (Part 3) - Score & Background
  4. Python/Pygame Chrome Dino (Part 4) - Obstacles and Collisions
  5. Python/Pygame Chrome Dino (Part 5) - Menu and Final Touches

Description

This is a simple implementation of the Chrome Dinosaur Game using Python and Pygame. The game is a simple infinite runner where the player has to jump over cacti and avoid birds. The game gets progressively harder as the player's score increases. See how far you can get!

Installation

Requirements: You must have Python installed and preferably a code editor like PyCharm.

  1. Clone the repository
  2. In the terminal, navigate to the directory where the repository was cloned, e.g., C:\Users\Max\PycharmProjects\chrome-dinosaur
  3. Create a virtual environment, activate it, and install pygame by running the following commands in the terminal:
    python -m venv venv #This creates a virtual environment
    venv\Scripts\activate #This activates the virtual environment
    pip install pygame #This installs the Pygame library
  4. Run the game by running the following command in the terminal:
    python main.py

Controls

  • Use the up arrow key or spacebar to jump.
  • Press any key to start the game.
  • When the game ends, press any key to restart.

Libraries

  • pygame: Pygame is a cross-platform set of Python modules designed for writing video games.

FAQ

Contact

Feel free to reach out to me on Twitter if you have any questions or feedback! Hope you find this useful!

chrome-dinosaur's People

Contributors

maxontech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chrome-dinosaur's Issues

Flying dino

Holding/spamming up key makes dino flying

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.