Breakout RaspberryPi

177

This instructable is video game of breakout on RaspberryPi.

It is easy to make this video game.

Let’s make and fun!!

Materials

181

1. RaspberryPi (I used RasberryPi rev2)

※include keyboard,mause,monitor,SDcard

2. Tact switch × 4

3. Electrical resistor × 4

4. Some jumper wires

5. Breadboard

Making controllor

DSC00265

Firstly,you will make a controllor of this video game.

There are 4 buttons to operate video game in this controllor.

Please prepare breadboard,tactswiches,electrical resistores, and some jumperwires.

This is a circuit diagram.

178

Programing

2014-09-22-190653_1824x984_scrot

Next is programing of breakout.

1. Start up RaspberryPi and IDLE(python 2.7)

2. Copy and paste this code.

Run and Fun!!

173

Please run that code.

How to play this video game:

Pin 22: Right button

Pin 23:Left button

Pin 24:Start button

Pin 25:Restart button

That’s all. Thank you.

You may also like...

1 Response

  1. This website was… how do you say it? Relevant!!
    Finally I have found something that helped me. Kudos!

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">