目錄(108章)
倒序
- 封面
- 版權(quán)信息
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Preface
- Chapter 1. Welcome! Let's Get Started
- Python projects for you
- The prerequisites of Python
- Write and run your first program in the command line
- Make yourself a work folder
- A quick task for you
- Summary
- Chapter 2. Variables Functions and Users
- Variables
- Functions
- Users interacting with your program
- Using the text editor and the command line
- Build your own function – name()
- Going the extra mile
- A quick task for you
- Summary
- Chapter 3. Calculate This!
- The calculator
- Basic functions
- Operations on two numbers
- New functions – subtraction multiplication and pision
- Finding a remainder – modulo
- Running your program
- A quick task for you
- Summary
- Chapter 4. Making Decisions – Python Control Flows
- Is it equal not equal or something else?
- Conditional statements – if elif else
- Loops
- A quick task for you
- Summary
- Chapter 5. Loops and Logic
- Higher or Lower
- A quick task for you
- Summary
- Chapter 6. Working with Data – Lists and Dictionaries
- Lists
- Dictionaries
- List or dictionary
- A quick task for you
- Summary
- Chapter 7. What's in Your Backpack?
- Setting up our coding environment
- Planning to program your game
- Skills needed to make a program
- Score play again or quit?
- Getting and storing player information
- Adding items to the virtual backpack
- Limiting items in a virtual backpack
- Testing your code so far
- A game loop
- Bringing back the while loop
- Comparing guesses with backpack items
- Keeping score
- Ending the game
- Testing your game
- A quick task for you
- Summary
- Chapter 8. pygame
- What is pygame?
- Installing pygame
- pygame
- A quick task for you
- Summary
- Chapter 9. Tiny Tennis
- Introduction to game programming principles
- The game plan
- Creating an outline of game parts
- Section 1 – imports globals and drawings
- Initializing the score
- Testing section 1
- Section 2 – moving the paddles
- The increase and decrease value (-= and +=)
- Testing section 2
- Section 3 – moving the ball
- Testing – section 3
- Section 4 – draw screen and track the score
- Ending the program
- Play Tiny Tennis!
- Summary
- Chapter 10. Keep Coding!
- What we learned and your next steps
- Classes and objects – very important next steps!
- More fun with games
- Adding music to games
- Adding graphics to games
- Remake or design games
- Other games
- Other uses of Python
- Coding challenges
- Summary
- Appendix A. Quick Task Answers
- Chapter 1 Welcome! Let's Get Started
- Chapter 2 Variables Functions and Users
- Chapter 3 Calculate This!
- Chapter 4 Making Decisions – Python Control Flows
- Chapter 5 Loops and Logic
- Chapter 6 Working with Data – Lists and Dictionaries
- Chapter 7 What's in Your Backpack?
- Chapter 8 pygame
- Index 更新時(shí)間:2021-07-09 19:35:30
推薦閱讀
- Unity 2020 By Example
- JIRA 7 Administration Cookbook(Second Edition)
- Scala Design Patterns
- JavaScript by Example
- Web程序設(shè)計(jì)(第二版)
- 3D少兒游戲編程(原書第2版)
- Python之光:Python編程入門與實(shí)戰(zhàn)
- Arduino家居安全系統(tǒng)構(gòu)建實(shí)戰(zhàn)
- Learning Unreal Engine Android Game Development
- ScratchJr趣味編程動(dòng)手玩:讓孩子用編程講故事
- 深度學(xué)習(xí)原理與PyTorch實(shí)戰(zhàn)(第2版)
- Go語(yǔ)言從入門到精通
- 現(xiàn)代CPU性能分析與優(yōu)化
- Mastering Bootstrap 4
- The Applied Data Science Workshop
- Managing Windows Servers with Chef
- Mastering React Test:Driven Development
- 多接入邊緣計(jì)算實(shí)戰(zhàn)
- 計(jì)算機(jī)邏輯設(shè)計(jì)
- Mockito for Spring
- Drupal 8 Module Development
- Java 8實(shí)戰(zhàn)
- 軟件工程實(shí)用教程
- SAP HANA平臺(tái)應(yīng)用開發(fā)
- 寫給UI設(shè)計(jì)師看的數(shù)據(jù)可視化設(shè)計(jì)
- CMake Cookbook
- C++程序設(shè)計(jì)習(xí)題解析與實(shí)踐教程
- 餐飲管理與經(jīng)營(yíng)全案:互聯(lián)網(wǎng)思維創(chuàng)新餐飲管理和運(yùn)營(yíng)模式
- Building a Home Security System with Arduino
- Mastering NetScaler VPX?