Quantcast
Channel: Raspberry pi. Archives - Engineers Garage
Viewing all articles
Browse latest Browse all 20

Playing Snake Game using Raspberry Pi Game Pad- (Part 38/38)

$
0
0

This article discusses about how to develop simple game pad hardware and interface it with the Raspberrypi board and also about the technique of interfacing a game code written in HTML5 with the game pad. Here a Snake game written in HTML5 and JavaScript is modified in such a way that it can be played with the new game pad having four push buttons. In this project the techniques of signals, pipe, fork etc. are used get the game running. The Snake game running on a browser window forms the GUI or front end of the entire system. In a Linux operating system each hardware device is represented as a file. In this project there is game pad which is the hardware and there is a process which reads from the game pad and there is also a Pipe file or FIFO in-between the game and the game pad reading process. 

The post Playing Snake Game using Raspberry Pi Game Pad- (Part 38/38) appeared first on Engineers Garage.


Viewing all articles
Browse latest Browse all 20

Trending Articles