DOC PREVIEW
MIT 6 111 - This Snake is Down Right Fierce

This preview shows page 1-2 out of 7 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

This Snake is Down Right FierceCharles Hung6.111 Final ProjectIntroduction• Object of the game is to eat “fruit” to grow longer and avoid hitting the walls or yourself• 3 different levels• Player can control the snake using a PS/2 controllerDesign Considerations• Major/Minor FSM abstraction to control game logic• Use block RAMS to display background and sprite to display the rest of the objectsSystem OverviewPS/2Interfaceclkdata8ControllerdataControl BlockDisplayBackgroundMemoryVGAVGA SignalsSnake PosRegisters3RGBnew_pos num1010pixel_countline_count20DCM27 MHz31.5 MHz (all blocks)24RGB Signalssnake_posfruit_pos20Growing the Snake• Snake represented as many segments drawn on top of each other• Can grow the snake by changing the relative position of the spritesControl Block• Control Block contains game logic and encoder for output from the PS/2 interfaceEncoder8Controllerdata8movementMajor FSMMinor FSMnext_posloseseg_numsegRGB3fruit_posnumnew_posate_fruitControl Block• Minor FSM checks for collisions between the snake and the wall, the snake and itself, and the snake and fruit• Checks for collisions with walls by using the RGB value from memory• Checks for collisions with snake by comparing position of the head with the position of the rest of the segments• Outputs a lose signal if snake does something that causes the game to end• Writes new positions of the snake segment to the registers if game


View Full Document

MIT 6 111 - This Snake is Down Right Fierce

Documents in this Course
Verilog

Verilog

21 pages

Video

Video

28 pages

Bass Hero

Bass Hero

17 pages

Deep 3D

Deep 3D

12 pages

SERPENT

SERPENT

8 pages

Vertex

Vertex

92 pages

Vertex

Vertex

4 pages

Snapshot

Snapshot

15 pages

Memories

Memories

42 pages

Deep3D

Deep3D

60 pages

Design

Design

2 pages

Frogger

Frogger

11 pages

SkiFree

SkiFree

81 pages

Vertex

Vertex

10 pages

EXPRESS

EXPRESS

2 pages

Labyrinth

Labyrinth

81 pages

Load more
Download This Snake is Down Right Fierce
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view This Snake is Down Right Fierce and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view This Snake is Down Right Fierce 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?