Book Image

Panda3D 1.7 Game Developer's Cookbook

Book Image

Panda3D 1.7 Game Developer's Cookbook

Overview of this book

Table of Contents (20 chapters)
Panda3D 1.7 Game Developer's Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Toggling window and fullscreen modes


Of course, game creators are always trying to immerse their customers into the colorful and fantastic worlds they are creating. This is why most games act quite selfish and take up the whole screen to present themselves in all their "awesome glory".

While this is true and understandable, some players just don't like this behavior. Maybe they are reading their email while the game is running. Maybe they want to be able to quickly minimize the game window in case their boss walks up behind them to check if they are busily working. Or maybe a developer just wants to switch from fullscreen to windowed mode to check the debug output window without having to tab through the window choices.

Whatever the reasons might be, PC games should be able to switch between windowed and fullscreen modes to accommodate the needs of players. So this recipe will show you how to achieve this with Panda3D.

Getting ready

Follow the steps of Setting up the game structure found in...