Trex game is a running dinosaur. Jump the dino trex over the cacti to gain points. Android phones are better suited for the game because chrome browser comes by default. 💻
Need:
- The game needs a wekit browser to run
- Works with the firefox browser also
- Python version 3
HOW TO
Step1: First Clone this project and open this link in browser for the game.
Step2: pip install -r requirements.txt
Step3: Split the screen by the execution window & webbrowser and run the program
or
by terminal simply execute
python trexgame_ai.py
Requirements
from PIL import ImageOps
from numpy import *
import pyautogui
import time
IDEA
box=(x1,y1,x2,y2)
box=(Cordinates.diano[0]+60,Cordinates.diano[1],Cordinates.diano[0]+100,Cordinates.diano[1]+5)
IF YOU WANT TO IMPROVE IT THE PLEASE DO IT !! 😉 YOU ARE WELCOME