Game Programming using Qt 5.x Beginner's Guide - Second Edition: Design and build fun games with Qt and Qt Quick 2 using associated toolsets

Pavel Strakhov, Witold Wysota, Lorenz Haas

  • 出版商: Packt Publishing
  • 出版日期: 2018-02-25
  • 售價: $1,660
  • 貴賓價: 9.5$1,577
  • 語言: 英文
  • 頁數: 714
  • 裝訂: Paperback
  • ISBN: 1788399994
  • ISBN-13: 9781788399999
  • 相關分類: Qt
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

If you are planning to learn about Qt and its associated toolsets to build apps and games, this book is a must have.

Key Features

  • Learn to create simple 2D (and complex 3D) graphics and games using all of Qt's tools and widgets available for game development
  • Get acquainted with a small yet powerful addition-the Qt Gamepad module that makes it possible to integrate gamepad support in C++ and QML applications
  • Delve into OpenGL and learn how it is used in Qt applications

Book Description

Qt is the leading cross-platform toolkit for all significant desktop, mobile, and embedded platforms and is becoming more popular by the day, especially on mobile and embedded devices. It's a powerful tool that perfectly fits the needs of game developers. You only need to create your game once and deploy it on all major platforms such as iOS, Android, and WinRT, without changing a single source file. This book will help you learn the nitty-gritty of Qt and will equip you with the necessary toolsets to build apps and games.

The book begins with a brief introduction to creating an application and preparing a working environment for both desktop and mobile platforms. You will learn how to use built-in Qt widgets and Form Editor to create a classic GUI application. You'll then explore the basics of creating graphical interfaces and Qt's core concepts (data processing and display) that will help you create high-performance games.

As you progress through the chapters, you'll learn to enrich your games by implementing network connectivity and employing scripting. You will learn about Qt's capabilities for handling strings and files, data storage, and serialization.

Moving on, you will also learn about the new Qt Gamepad module and how to add it in your game. You'll then delve into OpenGL, and how it can be used in Qt applications to implement hardware-accelerated 2D and 3D graphics. You will then explore various facets of Qt Quick: how it can be used in games to add game logic and design animations, add game physics, and build astonishing UIs for your games.

By the end of this book, you will have developed the skillset to develop interesting games with Qt.

What you will learn

  • Install the latest version of Qt on your system
  • Understand the basic concepts of every Qt game and application
  • Develop 2D object-oriented graphics using Qt Graphics View
  • Build multiplayer games or add a chat function to your games with Qt Network module
  • Script your game with Qt QML
  • Explore the Qt Gamepad module in order to integrate gamepad support in C++ and QML applications
  • Program resolution-independent and fluid UIs using QML and Qt Quick
  • Control your game flow in line with mobile device sensors
  • Test and debug your game easily with Qt Creator and Qt Test

Who This Book Is For

If you want to create great graphical user interfaces and astonishing games with Qt, this book is ideal for you. No previous knowledge of Qt is required; however knowledge of C++ is mandatory.

商品描述(中文翻譯)

如果您計劃學習Qt及其相關工具集以構建應用程序和遊戲,這本書是必不可少的。

主要特點:
- 學習使用Qt的所有工具和小部件來創建簡單的2D(和複雜的3D)圖形和遊戲
- 熟悉一個小而強大的附加功能-Qt Gamepad模塊,可以將遊戲手柄支持集成到C++和QML應用程序中
- 深入研究OpenGL,並了解它在Qt應用程序中的應用

書籍描述:
Qt是用於所有重要桌面、移動和嵌入式平台的領先跨平台工具包,尤其在移動和嵌入式設備上越來越受歡迎。它是遊戲開發人員的強大工具。您只需要創建一次遊戲,然後在iOS、Android和WinRT等主要平台上部署,而無需更改任何源文件。本書將幫助您學習Qt的細節,並為您提供構建應用程序和遊戲所需的工具集。

本書首先簡要介紹了如何創建應用程序,並為桌面和移動平台準備工作環境。您將學習如何使用內置的Qt小部件和表單編輯器創建經典的GUI應用程序。然後,您將探索創建圖形界面和Qt核心概念(數據處理和顯示)的基礎知識,這將幫助您創建高性能遊戲。

隨著您進一步學習,您將學習通過實現網絡連接和使用腳本來豐富您的遊戲。您將了解Qt處理字符串和文件、數據存儲和序列化的能力。

接下來,您還將學習有關新的Qt Gamepad模塊以及如何將其添加到遊戲中的知識。然後,您將深入研究OpenGL,以及如何在Qt應用程序中使用它來實現硬件加速的2D和3D圖形。然後,您將探索Qt Quick的各個方面:如何在遊戲中使用它來添加遊戲邏輯和設計動畫,添加遊戲物理效果,並為遊戲建立令人驚嘆的UI。

通過閱讀本書,您將掌握使用Qt開發有趣遊戲的技能。

您將學到:
- 在系統上安裝最新版本的Qt
- 理解每個Qt遊戲和應用程序的基本概念
- 使用Qt Graphics View開發2D面向對象的圖形
- 使用Qt Network模塊構建多人遊戲或為遊戲添加聊天功能
- 使用Qt QML編寫遊戲腳本
- 使用QML和Qt Quick創建分辨率獨立和流暢的UI
- 根據移動設備傳感器控制遊戲流程
- 使用Qt Creator和Qt Test輕鬆測試和調試遊戲

本書適合對使用Qt創建出色的圖形用戶界面和驚人遊戲感興趣的讀者。不需要先前的Qt知識,但需要具備C++知識。