BLACK & WHITE EDITION

If you are reliable with C++ and item orientated programming, this booklet makes use of your talents to create second video games utilizing the straightforward DirectMedia Layer API. functional tutorials contain the advance of 2 wickedly reliable video games.

Overview

  • Create 2nd reusable video games utilizing the recent SDL 2.0 and C++ frameworks
  • Become educated in rushing up improvement time
  • Create fully-featured video games with C++ which come with a platform video game and a second aspect scrolling shooter
  • An enticing and established advisor to advance your individual game

In Detail

SDL 2.0 is the most recent unlock of the preferred uncomplicated DirectMedia Layer API, that is designed to make lifestyles more uncomplicated for C++ builders, permitting you uncomplicated low-level entry to varied multiplatform audio, pix, and enter devices.

SDL online game improvement courses you thru growing your first 2nd video game utilizing SDL and C++. It takes a transparent and sensible method of SDL video game improvement, making sure that the point of interest is still on growing notable games.

Starting with the set up and setup of SDL, you are going to quick get to grips with precious SDL positive factors, overlaying sprites, nation administration, and OOP, resulting in a reusable framework that's extendable to your personal video games. SDL online game improvement culminates within the improvement of 2 intriguing motion video games that make the most of the created framework in addition to how one can enhance the framework.

What you are going to examine from this book

  • Draw in SDL and construct the SDL_image extension
  • Develop reusable classes
  • Get to grips with video game similar object-oriented programming
  • Integrate a number of person inputs into your video games, similar to joysticks or keyboards
  • Use factories that allow us to create items dynamically at runtime
  • Create 2nd maps by using tiles
  • Easily follow the framework to varied video game genres
  • Understand the scrolling of a tile map utilizing the placement of the participant and collision detection

Approach

Written as a realistic and interesting instructional, SDL online game improvement publications you thru the improvement of your individual framework and the construction of 2 fascinating, fully-featured games.

Who this publication is written for

SDL online game improvement is aimed toward C++ builders who are looking to study the basics of SDL for cross-platform video game improvement. this is not a beginner's consultant to C++, so an outstanding wisdom of C++ and item orientated programming is a must.

Show description

Read or Download SDL Game Development: (Black & White) PDF

Similar Programming books

Embedded C

For those who are approximately to write down their first embedded software - or were suffering to profit approximately this crucial sector - this booklet will retailer weeks of attempt.

Cocoa Design Patterns

“Next time a few child exhibits up at my door requesting a code evaluate, this can be the e-book that i'm going to throw at him. ”   –Aaron Hillegass, founding father of enormous Nerd Ranch, Inc. , and writer of Cocoa Programming for Mac OS X   Unlocking the secrets and techniques of Cocoa and Its Object-Oriented Frameworks   Mac and iPhone builders are frequently crushed via the breadth and class of the Cocoa frameworks.

C++ Primer (5th Edition)

Bestselling Programming instructional and Reference thoroughly Rewritten for the hot C++11 general   totally up to date and recast for the newly published C++11 typical, this authoritative and accomplished creation to C++ can assist you to profit the language speedy, and to exploit it in glossy, powerful methods.

Operating System Concepts

Hold speed with the fast-developing international of working platforms Open-source working platforms, digital machines, and clustered computing are one of the best fields of working structures and networking which are speedily altering. With titanic revisions and organizational adjustments, Silberschatz, Galvin, and Gagne’s working approach recommendations, 8th variation is still as present and appropriate as ever, assisting you grasp the basic suggestions of working platforms whereas getting ready your self for today’s rising advancements.

Extra resources for SDL Game Development: (Black & White)

Show sample text content

Bankruptcy eight, growing Alien assault, covers the construction of a 2nd aspect scrolling shooter, using every thing discovered within the prior chapters. bankruptcy nine, growing Conan the Caveman, covers the construction of a moment video game, changing the code from Alien assault, exhibiting that the framework is versatile adequate for use for any 2nd online game style. What you would like for this publication to exploit this booklet you will want the next software program: visible C++ 2010 convey Tiled map editor TinyXML zlib library Who this e-book is for This e-book is geared toward beginner/intermediate C++ programmers who are looking to take their latest abilities and follow them to making video games in C++. this isn't a beginner's booklet and also you are anticipated to understand the fundamentals of C++, together with inheritance, polymorphism, and sophistication layout. Conventions during this ebook, you can find a couple of types of textual content that distinguish among other forms of data. listed below are a few examples of those types, and a proof in their which means. Code phrases in textual content are proven as follows: "We can contain different contexts by utilizing the comprise directive. " A block of code is decided as follows: void Player::update() { m_currentFrame = int(((SDL_GetTicks() / a hundred) % 6)); m_acceleration. setX(1); SDLGameObject::update(); } New phrases and critical phrases are proven in daring. phrases that you simply see at the display, in menus or conversation containers for instance, seem within the textual content like this: "Right-click at the undertaking and select construct. ". observe Warnings or very important notes look in a field like this. Tip tips and tips look like this. Reader suggestions suggestions from our readers is often welcome. tell us what you consider this book—what you really liked or can have disliked. Reader suggestions is critical for us to increase titles that you just relatively get the main out of. To ship us common suggestions, easily ship an e mail to , and point out the booklet name through the topic of your message. If there's a subject that you've services in and also you have an interest in both writing or contributing to a ebook, see our writer consultant on www. packtpub. com/authors. customer service Now that you're the proud proprietor of a Packt publication, we've got a couple of issues that can assist you to get the main out of your buy. Downloading the instance code you could obtain the instance code documents for all Packt books you might have bought out of your account at http://www. packtpub. com. should you bought this ebook somewhere else, you could stopover at http://www. packtpub. com/support and sign up to have the records e-mailed on to you. Errata even though now we have taken each care to make sure the accuracy of our content material, errors do occur. in case you discover a mistake in a single of our books—maybe a mistake within the textual content or the code—we will be thankful if you happen to could document this to us. by means of doing so, it can save you different readers from frustration and support us enhance next types of this publication. when you locate any errata, please file them via traveling http://www. packtpub. com/submit-errata, picking your publication, clicking at the errata submission shape hyperlink, and coming into the main points of your errata.

Rated 4.92 of 5 – based on 31 votes