00 Days 00 hours 00 minutes 00 seconds

Your last chance! Enjoy 30% off with promo code 'Lituz'!

Mission Python: Code a Space Adventure Game! – by Sean McManus

68990 UZS

-Do'stlaringizga tafsiya etish!

Description

«Embark on an Epic Space Adventure with ‘Mission Python: Code a Space Adventure Game!’ by Sean McManus!

With the use of the Python programming language and this gripping book, Sean McManus leads budding game creators on an exhilarating trip to construct their own space adventure game. Readers will discover the intriguing world of space exploration while learning how to code and construct their very own game with the help of detailed instructions and imaginative challenges.

A practical method to learning Python programming is offered by "Mission Python," which makes it interesting and approachable for both novice and seasoned programmers. All the knowledge you require to realize your space adventure, from creating dynamic gameplay mechanisms to designing game characters, is covered in this book.

Whether you’re a fan of space exploration or simply passionate about game development, ‘Mission Python’ offers a unique opportunity to combine your interests and unleash your creativity. Get ready to embark on an epic coding journey and create your own space adventure game with ‘Mission Python’ as your guide!»

Additional information

Number of pages:

345

Mundarija

CONTENTS IN DETAIL
ACKNOWLEDGMENTS
INTRODUCTION
How to Use This Book
What’s in This Book?
Installing the Software
Installing the Software on Raspberry Pi
Installing Python on Windows
Installing Pygame Zero on Windows
Installing the Software on Other Machines
Downloading the Game Files
Downloading and Unzipping the Files on a Raspberry Pi
Unzipping the File on a Windows PC
What’s in the ZIP File
Running the Game
Running Pygame Zero Programs on the Raspberry Pi
Running Pygame Zero Programs in Windows
Playing the Game
1
YOUR FIRST SPACEWALK
Starting the Python Editor
Starting IDLE in Windows 10
Starting IDLE in Windows 8
Starting IDLE on the Raspberry Pi
Introducing the Python Shell
Displaying Text
Training Mission #1
Outputting and Using Numbers
Introducing Script Mode
Creating the Starfield
Understanding the Program So Far
Stopping Your Pygame Zero Program
Adding the Planet and Spaceship
Changing Perspective: Flying Behind the Planet
Training Mission #2
Spacewalking!
Training Mission #3
Understanding the Spacewalk Listing
Training Mission #4
Are You Fit to Fly?
Mission Debrief
2
LISTS CAN SAVE YOUR LIFE
Making Your First List: The Take-Off Checklist
Seeing Your List
Adding and Removing Items
Using Index Numbers
Inserting an Item
Accessing an Individual Item
Replacing an Item
Deleting an Item
Training Mission #1
Creating the Spacewalk Checklist
Training Mission #2
A List of Lists: The Flight Manual
Making a List of Lists
Training Mission #3
Finding an Item in the Flight Manual
Combining Lists
Making Maps from Lists: The Emergency Room
Making the Map
Finding an Emergency Item
Training Mission #4
Swapping Items in the Room
Training Mission #5
Are You Fit to Fly?
Mission Debrief
3
REPEAT AFTER ME
Displaying Maps with Loops
Making the Room Map
Displaying the Map with a Loop
Training Mission #1
Loop the Loop
Nesting Loops to Get Room Coordinates
Cleaning Up the Map
Training Mission #2
Displaying a 3D Room Image
Understanding How the Room Is Drawn
Working Out Where to Draw Each Item
Training Mission #3
Are You Fit to Fly?
Mission Debrief
4
CREATING THE SPACE STATION
Automating the Map Making Process
How the Automatic Map Maker Works
Creating the Map Data
Writing the GAME_MAP Code
Testing and Debugging the Code
Generating Rooms from the Data
How the Room Generating Code Works
Creating the Basic Room Shape
Adding Exits
Testing the Program
Training Mission #1
Exploring the Space Station in 3D
Training Mission #2
Making Your Own Maps
Are You Fit to Fly?
Mission Debrief
5
PREPARING THE SPACE STATION EQUIPMENT
Creating a Simple Planets Dictionary
Understanding the Difference Between a List and a Dictionary
Making an Astronomy Cheat Sheet Dictionary
Error-Proofing the Dictionary
Training Mission #1
Putting Lists Inside Dictionaries
Extracting Information from a List Inside a Dictionary
Training Mission #2
Making the Space Station Objects Dictionary
Adding the First Objects in Escape
Viewing Objects with the Space Station Explorer
Designing a Room
Training Mission #3
Adding the Rest of the Objects
Training Mission #4
Are You Fit to Fly?
Mission Debrief
6
INSTALLING THE SPACE STATION EQUIPMENT
Understanding the Dictionary for the Scenery Data
Adding the Scenery Data
Adding the Perimeter Fence for the Planet Surface
Loading the Scenery into Each Room
Updating the Explorer to Tour the Space Station
Training Mission #1
Are You Fit to Fly?
Mission Debrief
7
MOVING INTO THE SPACE STATION
Arriving on the Space Station
Disabling the Room Navigation Controls in the EXPLORER
Section
Adding New Variables
Teleporting onto the Space Station
Adding the Movement Code
Understanding the Movement Code
Training Mission #1
Moving Between Rooms
Are You Fit to Fly?
Mission Debrief
8
REPAIRING THE SPACE STATION
Sending Information to a Function
Creating a Function that Receives Information
How It Works
Training Mission #1
Adding Variables for Shadows, Wall Transparency, and Colors
Deleting the EXPLORER Section
Adding the DISPLAY Section
Adding the Functions for Drawing Objects
Drawing the Room
Understanding the New draw() Function
Positioning the Room on Your Screen
Making the Front Wall Fade In and Out
Displaying Hints, Tips, and Warnings
Showing the Room Name When You Enter the Room
Are You Fit to Fly?
Mission Debrief
9
UNPACKING YOUR PERSONAL ITEMS
Adding the Props Information
Adding Props to the Room Map
Finding an Object Number from the Room Map
Picking Up Objects
Picking Up Props
Adding the Keyboard Controls
Adding the Inventory Functionality
Displaying the Inventory
Adding the Tab Keyboard Control
Testing the Inventory
Dropping Objects
Training Mission #1
Examining Objects
Training Mission #2
Are You Fit to Fly?
Mission Debrief
10
MAKE YOURSELF USEFUL
Adding the Keyboard Control for Using Objects
Adding Standard Messages for Using Objects
Adding the Game Progress Variables
Adding the Actions for Specific Objects
Combining Objects
Training Mission #1
Adding the Game Completion Sequence
Exploring the Objects
Are You Fit to Fly?
11
ACTIVATING SAFETY DOORS
Planning Where to Put Safety Doors
Positioning the Doors
Adding Access Controls
Making the Doors Open and Close
Adding the Door Animation
Training Mission #1
Shutting the Timed Door
Adding a Teleporter
Training Mission #2
Activating the Airlock Security Door
Removing Exits for Your Own Game Designs
Mission Accomplished?
Are You Fit to Fly?
12
DANGER! DANGER! ADDING HAZARDS
Adding the Air Countdown
Displaying the Air and Energy Bars
Adding the Air Countdown Functions
Starting the Air Countdown and Sounding the Alarm
Training Mission #1
Adding the Moving Hazards
Adding the Hazard Data
Sapping the Player’s Energy
Starting and Stopping Hazards
Setting Up the Hazard Map
Making the Hazards Move
Displaying Hazards in the Room
Training Mission #2
Stopping the Player from Walking Through Hazards
Adding the Toxic Spills
Making the Finishing Touches
Disabling the Teleporter
Cleaning Up the Data
Your Adventure Begins
Your Next Mission: Customizing the Game
Are You Fit to Fly?
Mission Debrief
A
ESCAPE: THE COMPLETE GAME LISTING
B
TABLE OF VARIABLES, LISTS, AND DICTIONARIES
C
DEBUGGING YOUR LISTINGS
Indentation
Case Sensitivity
Parentheses and Brackets
Colons
Commas
Images and Sounds
Spelling
INDEX

Reviews

There are no reviews yet.

Be the first to review “Mission Python: Code a Space Adventure Game! – by Sean McManus”

Your email address will not be published. Required fields are marked *

Similar books

Home
Ebooks
0
Cart
My Account