Documente Academic
Documente Profesional
Documente Cultură
Abstract
Introduction
The game design is basically based on the idea of escaping
from a prison. In general, it is designed only for an individual
player. The player takes the role of a prisoner (who is
represented as a purple ball in this game) who dislikes prison
life, which is a natural emotion, and therefore wants to break
out of jail. Meanwhile, there are a lot of security guards in the
prison, represented by moving balls in this game, to secure the
offenders.
There are two scenarios for the end in this game. The
prisoner might escape from the prison. If he can avoid the
security guards and reach the survival door, then he has
escaped, as he is desired. In contrast, the mission will fail if he
is arrested.
The purple ball (the prisoner) can be controlled to move
upward, downward, left and right by pressing specific buttons
on the keyboard to avoid any contact with the security guards,
who are represented as unfixed brown blocks. The survival
green door is located at the right-hand side of the screen. The
prisoner must move without touching any of the brown balls
and pass through that green door to successfully win the game.
Conversely, if any of the brown blocks touch the controllable
block that expresses the prisoner, the security officers arrest
the prisoner. That leads to all movable blocks stopping all
motion; the game activity will therefore end.
Signal
Kind of signal
Use of signal
Horizontal
sync.
digital
Vertical
sync.
digital
Red (R)
Green (G)
Blue (B)
analogue
analogue
analogue
video synchronization or
controlling the timing of
the scan rates
video synchronization or
controlling the timing of
the scan rates
controlling the colour
controlling the colour
controlling the colour
Description
LCD_Display
DEC_7SEG
Debounce
OnePulse
Clk_Div
VGA_Sync
Video_PLL
Char_ROM
Keyboard
Mouse
any stage of the game, the brown blocks stop moving and the
purple block will return to the beginning position.
The place of the green, or survival, door is fixed. As soon
as the purple ball moves into the green door, the player has
won this round of play. The game will return to its starting
point.
Keyboard
An analogue keyboard or mouse is needed in the game to
control the purple ball, i.e. to control the escapee from the
prison. Therefore, a VHDL code was produced to make the
keyboard or mouse completely controllable. The keyboard
code that was generated consists of two codes. The initial code
is implemented when a user presses a key on the keyboard.
The second code is implemented when the key is released.
The main concept of the keyboard operation is that as soon
as a key is pressed, then an amount of data bits as a data frame
will be sent to the FPGA. This data frame includes one start
bit, one end bit, eight data bits and one equality bit.
Correspondingly, the data will be read and then the output will
be produced.
The working procedures of the data communication of the
keyboard are as follows:
The keyboard starts transmitting the start bit if the
clock and keyboard lines are not active.
The keyboard will produce the clock pulses.
The keyboard will send the other ten bits to the data
frame.
The FPGA collects the data frame, and the process
begins.
Repeat the first step if it is necessary.
Acknowledgments
References
[1] Hamblen, J.O., Hall, T.S. and Furman, M.D. (2008). In: Rapid
Prototyping Of Digital Systems. New York: Springer
Science+Business Media.
[2] Don, A.Meador- (2012). Beginning digital from a VHDL
perspective. Clifton Park, N.Y.: Delmar Cengage Learning.
[3] Dueck, R.K. (2005). Digital design with CPLD applications and
VHDL. (2nd ed.) New York: Thomson/Delmar Learning.
[4] Altera University Program Design Laboratory Package User
Guide, San Jose, CA: Altera Corporation 2014.
http://www.altera.com.
Conclusion
The report shows the structural details of the Freedom
Seeker video game project, which was created and developed