SDL Game Development(Paperback)

Shaun Mitchell

  • 出版商: Packt Publishing
  • 出版日期: 2013-04-18
  • 售價: $1,860
  • 貴賓價: 9.5$1,767
  • 語言: 英文
  • 頁數: 256
  • 裝訂: Paperback
  • ISBN: 1849696829
  • ISBN-13: 9781849696821
  • 海外代購書籍(需單獨結帳)

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

商品描述

BLACK & WHITE EDITION

If you're good with C++ and object oriented programming, this book utilizes your skills to create 2D games using the Simple DirectMedia Layer API. Practical tutorials include the development of two wickedly good games.

Overview

  • Create 2D reusable games using the new SDL 2.0 and C++ frameworks
  • Become proficient in speeding up development time
  • Create two fully-featured games with C++ which include a platform game and a 2D side scrolling shooter
  • An engaging and structured guide to develop your own game

In Detail

SDL 2.0 is the latest release of the popular Simple DirectMedia Layer API, which is designed to make life easier for C++ developers, allowing you simple low-level access to various multiplatform audio, graphics, and input devices.

SDL Game Development guides you through creating your first 2D game using SDL and C++. It takes a clear and practical approach to SDL game development, ensuring that the focus remains on creating awesome games.

Starting with the installation and setup of SDL, you will quickly become familiar with useful SDL features, covering sprites, state management, and OOP, leading to a reusable framework that is extendable for your own games. SDL Game Development culminates in the development of two exciting action games that utilize the created framework along with tips to improve the framework.

What you will learn from this book

  • Draw in SDL and build the SDL_image extension
  • Develop reusable classes
  • Get to grips with game related object-oriented programming
  • Integrate a variety of user inputs into your games, such as joysticks or keyboards
  • Use factories that enable us to create objects dynamically at runtime
  • Create 2D maps through the use of tiles
  • Easily apply the framework to different game genres
  • Understand the scrolling of a tile map using the position of the player and collision detection

Approach

Written as a practical and engaging tutorial, SDL Game Development guides you through the development of your own framework and the creation of two exciting, fully-featured games.

Who this book is written for

SDL Game Development is aimed at C++ developers who want to learn the fundamentals of SDL for cross-platform game development. This isn't a beginner's guide to C++, so a good knowledge of C++ and object oriented programming is a must.

商品描述(中文翻譯)

《黑白版》

如果你擅長 C++ 和物件導向程式設計,這本書將利用你的技能,使用 Simple DirectMedia Layer API 創建 2D 遊戲。實用的教程包括開發兩款非常棒的遊戲。

概述:
- 使用新的 SDL 2.0 和 C++ 框架創建可重複使用的 2D 遊戲
- 熟練地加快開發時間
- 使用 C++ 創建兩款功能完整的遊戲,包括平台遊戲和 2D 橫向捲軸射擊遊戲
- 一個引人入勝且結構化的指南,幫助你開發自己的遊戲

詳細內容:
SDL 2.0 是受歡迎的 Simple DirectMedia Layer API 的最新版本,旨在為 C++ 開發人員提供更簡單的生活,讓你輕鬆地低層次訪問各種多平台音頻、圖形和輸入設備。

《SDL 遊戲開發》指導你使用 SDL 和 C++ 創建你的第一款 2D 遊戲。它以清晰實用的方式進行 SDL 遊戲開發,確保專注於創建令人驚艷的遊戲。

從安裝和設置 SDL 開始,你將迅速熟悉有用的 SDL 功能,包括精靈、狀態管理和物件導向程式設計,最終建立一個可擴展到自己的遊戲的可重複使用框架。《SDL 遊戲開發》以開發兩款令人興奮的動作遊戲作為結尾,這些遊戲利用了創建的框架,並提供了改進框架的技巧。

從本書中你將學到:
- 在 SDL 中繪製並建立 SDL_image 擴展
- 開發可重複使用的類別
- 掌握與遊戲相關的物件導向程式設計
- 整合各種用戶輸入,如搖桿或鍵盤,到你的遊戲中
- 使用工廠在運行時動態創建物件
- 通過使用瓦片創建 2D 地圖
- 輕鬆將框架應用於不同的遊戲類型
- 了解通過玩家位置和碰撞檢測實現瓦片地圖的捲動

方法:
《SDL 遊戲開發》以實用且引人入勝的教程形式,引導你開發自己的框架並創建兩款令人興奮且功能完整的遊戲。

本書適合對跨平台遊戲開發的 SDL 基礎知識感興趣的 C++ 開發人員。這不是一本 C++ 的入門指南,因此必須具備良好的 C++ 和物件導向程式設計知識。