Skip to content

Latest commit

 

History

History
85 lines (43 loc) · 1.62 KB

README.md

File metadata and controls

85 lines (43 loc) · 1.62 KB

Snake-game

Computer architecture course project

About the project:
In this project we build a 'snake' game by Processing, and connect between the game and
microcontroller(Tiva C Series TM4C123G LaunchPad).
With the microcontroller we will control the movement of the snake by the chip buttons,
and we'll see when the snake close to the wall when the light on the chip will turn on.

How to run:
Clone the repository to your computer,
and follow the instructions.

For Keyboard version:

You can see the code in the folder:

/Keyboard-version/snake

open "snake.pde" (Processing file) or "snake.java".

How to play:

in Windows:

open the folder:

/Keyboard-version/application.windows32

or

/Keyboard-version/application.windows64

and run "snake.exe".

in Linux:

load "snake.pde" file in Processing, and press "run".

For Microcontroller version(tested only on our Tiva LaunchPad):

You can see the code in the folder:

/Microcontroller-version/snake

open "snake.pde" (Processing file) or "snake.java".

How to connect the microcontroller:

Install Energia
Connect the chip to your computer with USB cable.
Load the file:

/energia/EnergiaChipSync.ino

to Energia and sync.

How to play:

in Windows:

open the folder:

/Microcontroller-version/application.windows32

or

/Microcontroller-version/application.windows64

and run "snake.exe".

in Linux:

load "snake.pde" file in Processing, and press "run".