Google Dinosaur On Lcd Screen With Arduino

About the project

This is a small game that runs on a Ardunio board, it requires a push button and a 2x16 lcd screen

Project info

Difficulty: Easy

Platforms: Arduino

Estimated time: 1 hour

License: GNU General Public License, version 3 or later (GPL3+)

Items used in this project

Hardware components

LCD 2X16 LCD BOARD LCD 2X16 LCD BOARD x 1
Arduino Uno - R3 Arduino Uno - R3 x 1
Half-size Breadboard Half-size Breadboard x 1
Big Dome Pushbutton - Red Big Dome Pushbutton - Red x 1

Software apps and online services

Arduino code editor Arduino code editor

Hand tools and fabrication machines

No need for special tools No need for special tools x 1

Story

What is your project about?

- It's a simple game that you can play whenever you want

Why did you decide to make it?

-I was bored

How does it work?

-there is an array of 16 int s, and there is an invisible counter that when it reaches zero sets the last element of the array  to 1 then it moves each element by 1 and then renderers the cactuses

here is a video of me playing it




Code

The code

you can tweak the difficulty by changing/adding numbers in line 83

Credits

Leave your feedback...