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.6 Game Engine Beginner's Guide

You're reading from   Panda3D 1.6 Game Engine Beginner's Guide This is the A-Z of Panda3D for developers who have never used the engine before. Step-by-step, it takes you from first principles to ultimately creating a marketable game. You‚Äôll learn through first-hand experience and clear explanations.

Arrow left icon
Product type Paperback
Published in Feb 2011
Publisher Packt
ISBN-13 9781849512725
Length 356 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (22) Chapters Close

Panda3D 1.6 Game Engine
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Installing Panda3D and Preparing a Workspace 2. Creating the Universe: Loading Terrain FREE CHAPTER 3. Managing Tasks Over Time 4. Taking Control: Events and User Input 5. Handling Large Programs with Custom Classes 6. The World in Action: Handling Collisions 7. Making it Fancy: Lighting, Textures, Filters, and Shaders 8. GUI Goodness: All About the Graphic User Interface 9. Animating in Panda3D 10. Creating Weaponry: Using Mouse Picking and Intervals 11. What's that Noise? Using Sound 12. Finishing Touches: Getting the Game Ready for the Customer Creating a Sky Sphere with Spacescape Using Egg-Texture-Cards and ExploTexGen Pop quiz Answers Index

Using keyboard events


By default, Panda3D ties events to every key on the standard keyboard. In fact, it ties two events to each key. The first event occurs whenever the key is pressed down, and the second happens when the key is released. Each of these events is named after the key it corresponds to. For all the keys that type characters, the event is named after that character. These are always lowercase, even when Shift is involved. Here are some examples:

"a", "b", "c", "[", "5"

The following event names won't work:

"A", "B", "C", "{", "%"

The event for releasing the key adds up to the end of the event name. For example:

"a-up", "[-up", "5-up"

There is also an event for the auto-repeat that occurs when a key is held down on the keyboard. This uses repeat.

"a-repeat", "[-repeat", "5-repeat"

Keys that don't type a character are labelled as follows:

"escape", "f1", "f2", "f12", "print_screen", "scroll_lock", "num_lock"

"backspace", "insert", "home", "page_up", "delete", "end", "page_down"

"caps_lock...

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.6 Game Engine Beginner's Guide
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