Raspberry Pi Projects for Kids - Second Edition
图书信息
| 作者 | Daniel Bates |
| 出版社 | Packt Publishing |
| ISBN | 9781785280436 |
| 出版时间 | 2015-04-28 |
| 字数 | 64.0万 |
| 分类 | 进口书,外文原版书,电脑,网络 |
读书简介
This book is for kids who wish to develop games and applications using the Raspberry Pi. No prior experience in programming is necessary; you need only a Raspberry Pi and the required peripherals.
目录
Raspberry Pi Projects for Kids Second Edition
Table of Contents
Raspberry Pi Projects for Kids Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with Raspberry Pi
Materials needed
Power supply
Storage
Input
Video
Network
Preparing the SD card
Starting up the Raspberry Pi
Using your Raspberry Pi
The command line
Updating and installing new software
Other uses of the Raspberry Pi
Troubleshooting common issues
Summary
2. Animating with Scratch
Scratch
Hello world!
Code tour
Some more interesting movements
Setting the scene
Another way to animate
Interactive animation
Variables
Movement
Keeping count
If-then-else
Summary
3. Making Your Own Angry Birds Game
Creating a character
Creating a level
Moving the character
Initialization
Moving the character with the keyboard
Launching the character!
Flight
Adding physics
Gravity
Bouncing
Ending the game
Scoring
Extensions
Summary
4. Creating Random Insults
Python
Python programming
The program we're going to use to generate phrases
Lists
Adding randomness
Creating phrases
Making mischief
Dictionaries
Loops
Conditionals
Functions
Complete code listing
Summary
5. Testing Your Speed
Materials needed to make your own controller
Creating the game controller
The controller base
Adding buttons
Connecting to the Raspberry Pi
Coding the game
Random behavior
Using the controller
Adding a time limit
Bringing it all together
Complete code listing
The keyboard version
What's next?
Summary
6. Making an Interactive Map of your City
Hello world!
Tkinter
Writing the program
Getting a map
No Internet? No problem!
Google Maps
Generating the address
Downloading an image
Using an image
Adding markers
Detecting mouse clicks
Reacting to mouse clicks
Adding labels
Basic labels
Pop-up windows
Code listing
Extensions
Layout
Additional widgets
Checkbutton
Frame and LabelFrame
Listbox
Menu
Menubutton
Message
OptionMenu
Radiobutton
Scale
Spinbox
Summary
7. Building Beats with Sonic Pi
Sonic Pi
Getting started with Sonic Pi
Creating a tune
New sounds
A real tune
Adding rhythm
Bass line
More fun
Code listing
Summary
Index
- 环境法(第六版)(新编21世纪法学系列教材)(周珂莫菲徐雅林潇潇)
- 英国史话(毛锐)
- 地方数字政府建设中的政企关系(蔡聪裕)
- 中国高铁、贸易成本和企业出口研究(俞峰)
- 本心诗话 : 中国百年新诗的原理与实践微观察(王瑛)
- 做情绪的主人:情绪管理与健康指导手册(全10册)(周卓平)
- 巅峰训练 五合一必刷题 高二(马德高)
- 伍尔夫作品集夜与日(上下)((英)弗吉尼亚・伍尔夫)
