Download presentation
Presentation is loading. Please wait.
1
Introduction to Digital Hardware Design
S09: The SNAKE Game Dr. Khaled Benkrid (Author) Reviewed and updated by: Prof. W. Adi
2
SNAKE Snake is a very popular video game which can be found a variety of platforms, including on mobile phones, PCs and video consoles In it, the player controls a long, thin creature (the snake) which constantly moves around on a bordered plane, picking up targets (food or some other item) while avoiding hitting its own tail or the plane borders in which it moves Each time the snake eats hits a target, its tail grows longer and the speed at which the snake moves grows faster, making the game increasingly difficult The user controls the direction of the snake (up, down, left, or right) through a set of buttons e.g. 4 push buttons on the BASYS 2 board in our case – Synthesis tool dependent
3
SNAKE – Synthesis tool dependent
4
Lab Session 8 The final lab session (“SnakeGame” module) has a large emphasis on code reuse and modularity. It consists of one single module which will bring together most functionality developed in previous modules. During this module you will implement a simplified version of the well known game SNAKE. The differences between the game developed in this module and the full version are that the snake does not grow, and it cannot hit itself. The aim of this version is to attain a fixed number of points by eating the targets. Once this number has been attained e.g. 10, the game finishes with a colourful display. Final report. See sample report 4
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.