There will be three different vertical paths (consider V1, V2 and V3) where the obstacles will come from top to bottom. Also there will be three push buttons (consider B1, B2 and B3 one for each vertical path). If an obstacle come in the vertical path V1 than the user has to press the push button B1 before the obstacle touching the end line. If the player does so, the above mentioned obstacle will be destroyed and some reword points will be awarded for the same. A failed attempt will over the game. There may be more than one obstacles possible in a single vertical path. In such situation the player has to press more than one times (once for each obstacle). The obstacles may come in any vertical paths (V1 or V2 or V3). Also the obstacles can come in all the paths simultaneously. Player’s survival time will decide its difficulty level. I.e. if one player plays more time, than the difficulty in terms of speed of obstacles, number of obstacles) will gradually increase.
Details
Files
Project Code.zip
x-zip-compressed -
985.66 kB -
11/29/2017 at 15:33
The Graphics LCD as the name suggests is a type of LCD which can display graphics. The graphical representation of any data presents good understanding than just characters. More user friendly applications can be designed by using the graphical LCDs.
1.1 Interfacing GLCD
Mentioned schematic shows how to interface the GLCD to micro controller. The 128X64 Graphical LCD interfaces to adjust contrast through trim pot. The GLCD needed to create 8-bit interface; 8 data bits (D0 – D7), three control lines, address bit (RS), read/write bit (R/W) and control signal (E), Page Select (CS).
2. Switch
A switch is an electrical component that can break an electrical circuit, interrupting the current or diverting it from one conductor to another. A switch may be directly manipulated by a human as a control signal to a system, or to control power flow in a circuit.
2.1 Interfacing Switch
Schematic shows how to interface the switch to micro controller. A simple switch has an open state and closed state. However, a micro controller needs to see a definite high or low voltage level at a digital input. A switch requires a pull-up or pull-down resistor to produce a definite high or low voltage when it is open or closed. A resistor placed between a digital input and the supply voltage is called a "pull-up" resistor because it normally pulls the pin's voltage up to the supply.
3. Game algorithm
The display is virtually divided into 3 columns. And in each column there will be some moving obstacles coming from top towards bottom. The appearance of the obstacles will be totally random in nature and for the 3 columns there will be three switches and to eliminate an obstacle one need to press the corresponding switch before the obstacle touches the bottom boundary. If the obstacle touches the bottom, the game will be over.
Also there are some extra features like level up , pause, life and score display.