Skip to content

Automatic spacebar clicker for Google Chrome T-Rex Game, created with Arduino

Notifications You must be signed in to change notification settings

Henzelix/T-Rex-Auto-Runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

T-Rex Auto Runner is an Arduino script for Google Chrome T-Rex Run game. Using micro servo and photoresistor it automaticly clicks spacebar at the right time, so basically it plays by its own (for now, it only works on the white level).

Demonstartion video

How does it work?

Photoresistor gets light level from the screen (white background) and if it gets a value below average (cactus) it sends a signal to micro servo to move propeller which clicks a spacebar, then Dino jumps.

How can I build it?

If you want to build it, you would need:

  1. Any Arduino with 5V power output and with digital and analog pins (I used Arduino Uno),
  2. 220 Ohm resistor (I used this one, but you can also use different ones. I recommend checking out this guy's video: https://youtu.be/INekoMGeXac,
  3. Some wires,
  4. Breadboard,
  5. Photoresesitor,
  6. Tower Pro micro servo SG90.

Circuit for this project (circuit created with Tinkercad):

  1. Place photoresistor at that distance from Dino, that if it detects cactus, it immediately clicks spacebar (thanks to that it can go ad infinitum).
  2. Place servo properly on your spacebar, so the propeller can click it.
  3. Adjust code for your setup. It can various by:
    1. your screen size,
    2. your screen brightness,
    3. your display,
    4. yours monitor refresh rate,
    5. resistor and power you used for photoresistor.
  4. Lauch the code on your Arduino.
  5. Have fun! Now with your setup, Dino will go ad infinitum!

Share your setup and highscore by mentioning me on GitHub: @Henzelix or on Instagram: @mikolajhenzel

About

Automatic spacebar clicker for Google Chrome T-Rex Game, created with Arduino

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages