Giter Club home page Giter Club logo

js-dino's Introduction

Dino

Typescript implementation of the Chromium dinosaur game, made using the HTML5 Canvas API.

Live demo here

About

It is a simple implementation of the Chromium dinosaur game, with some minor changes.

Features

  • Dark mode
  • Light mode
  • Score system
    • High score system
  • Game over screen
  • Pause screen
  • AI mode
  • Sound effects
  • Mobile support
    • No pterodactyls due to no crouching
    • Touch controls
    • Responsive game speed
    • Vibration API
  • Keyboard and mouse controls
  • GamePad support
    • Rumble effect
  • Menu with animations
  • Physics simulation with substeps
    • Using Velocity Verlet integration
  • Pixel perfect collision detection

How to play

Jump over the obstacles and try to get the highest score possible!

Keyboard

Key Icon Description
Arrow up Jump
Arrow down Duck/Crouch
A Toggle AI

Mouse

Key Icon Description
Left click Jump
Right click Duck/Crouch
Middle click Toggle AI

Touch

Key Icon Description
Tap Jump

Game pad

The game supports any GamePad, being it wireless or wired, Xbox, PS or generic!

Button Icon Description
A or D-Pad Up or Jump
B or D-Pad Up or Duck/Crouch
Start Toggle AI

Used in this project

Name Description
Eslint For linting and semantic analysis
Prettier For code formatting
Browser sync For live reloading
Esbuild For bundling
gulp For task automation
SASS For CSS preprocessing
oklch For color manipulation
Github actions For CI, building and deploying to github pages
Google fonts For the Pixelify Sans font
Google Icons For the Sport tennis icon used as favicon
Real favicon generator For generating the favicon
Chrome dino game For sounds, images and inspiration
Those Awesome Guys For the input images for keyboard, tap, mouse and gamepad

js-dino's People

Contributors

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