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
Explore 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
Panda3D 1.7 Game Developer's Cookbook

You're reading from   Panda3D 1.7 Game Developer's Cookbook Over 80 recipes for developing 3D games with Panda3D, a full-scale 3D game engine

Arrow left icon
Product type Paperback
Published in Mar 2011
Publisher
ISBN-13 9781849512923
Length 336 pages
Edition Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (20) Chapters Close

Panda3D 1.7 Game Developer's Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Setting Up Panda3D and Configuring Development Tools FREE CHAPTER 2. Creating and Building Scenes 3. Controlling the Renderer 4. Scene Effects and Shaders 5. Post-Processing and Screen Space Effects 6. 2D Elements and User Interfaces 7. Application Control 8. Collision Detection and Physics 9. Networking 10. Debugging and Performance 11. Input Handling 12. Packaging and Distribution 13. Connecting Panda3D with Content Creation Tools Index

Implementing an abstraction layer for supporting multiple input methods


In this recipe we are going to rework the code produced in Handling keyboard and mouse input. We are going to add an abstraction layer to the input handling sections of our code to hide away the specifics of the input device being used. This means that the gameplay code that controls animation and movement of the panda will not be handling any specific keys being pressed. Instead, there will be just a set of unified events for the actions the panda should be able to perform.

The reason for adding such a layer can already be found in the title of this recipe. We want to generalize our gameplay code to be able to support more input devices than just the classic keyboard and mouse combination. Further down in this chapter we will use this approach to add gamepad support to our demo, for example. We could also use the approach of this recipe as a starting point for implementing artificial intelligence for a game—why not let...

lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Panda3D 1.7 Game Developer's Cookbook
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 $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon