Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Python Projects for Kids

You're reading from   Python Projects for Kids Unleash Python and take your small readers on an adventurous ride through the world of programming

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher Packt
ISBN-13 9781782175063
Length 192 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
 Ingrassellino Ingrassellino
Author Profile Icon Ingrassellino
Ingrassellino
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Python Projects for Kids
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. Welcome! Let's Get Started FREE CHAPTER 2. Variables, Functions, and Users 3. Calculate This! 4. Making Decisions – Python Control Flows 5. Loops and Logic 6. Working with Data – Lists and Dictionaries 7. What's in Your Backpack? 8. pygame 9. Tiny Tennis 10. Keep Coding! Quick Task Answers Index

Introduction to game programming principles


There are many principles of game programming that apply to our project in this chapter. First, remember that the movement of objects in space is an illusion that we create. Unlike reality, objects that we create will appear to move because we will regularly draw and then redraw the objects in different places.

Another principle that we have discussed is a game loop. The game loop is important as it controls all of the things that need to happen in the game, including the moving and redrawing of objects. The timing of the game loop is important as this will tell the computer how many times to run the game loop. Each time a game loop runs is also known as a frame, and the speed at which the game loop runs is known as the frame rate.

Finally, considering how the player interacts with the game is an important part of the game design. This means that we will consider how the player uses keys and has their score stored in the program's memory and displayed...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images