Hello friends,
In today's tutorial I will show you
how to make your own arduino game
Step by step.
It is an endless runner game
in which a player character is continuously
moving forward and controlled by a single
red button.
These are all the components that you will
need to assemble this game.
You can also find the list of all components
in the video description.
In the first step place the LCD on breadboard.
Here I'm using a pre-programmed arduino
you can find the link of arduino code for
this game in the video description.
Connect the Jumper wires on D4, D5, D6, D7,
E and RS pins on LCD.
Now, Connect D4 from LCD to Pin#6, D5 to Pin#5,
D6 to Pin#4, D7 to Pin#3, E to Pin#9 and RS
to Pin#11 on Arduino.
On LCD, Connect VDD to A, VSS to K, and RW
to VSS.
Now place a variable resistor on the breadboard
and Connect V0 from LCD to Pin#2, A to Pin#3,
and K to Pin#1 of the variable resistor as
shown.
After that all, Ground the Pin#1 of variable
resistor and connect Pin#3 to 5V+ on Arduino.
Our project is now almost completed
and as you can see, I organized all the jumper
wires with the help of rubber bands.
Now, I'm connecting a push switch to control
the character in game
It will connect between the Ground and Pin#2
on Arduino.
so finally, it's time to play the game.
Let's push the button to start the game.
When you push the button, it convey a signal
to arduino
as result the arduino jumps the character
according to the programmed script.
I played this game a lot and my highest score
is 1145
now tell me yours in the comment below?
:)
I hope this video will be useful for you
If you liked the video, share it with you
firends!
and keep watching IdeasTV
Thank you!
