Categories
Ebooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Computer in the office
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Multimedia trainings
- Real estate
- Persuasion and NLP
- Taxes
- Social policy
- Guides
- Presentations
- Leadership
- Public Relation
- Reports, analyses
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
E-press
- Architektura i wnętrza
- Biznes i Ekonomia
- Home and garden
- E-business
- Finances
- Personal finance
- Business
- Photography
- Computer science
- HR & Payroll
- Computers, Excel
- Accounts
- Culture and literature
- Scientific and academic
- Environmental protection
- Opinion-forming
- Education
- Taxes
- Travelling
- Psychology
- Religion
- Agriculture
- Book and press market
- Transport and Spedition
- Healthand beauty
-
History
-
Computer science
- Office applications
- Data bases
- Bioinformatics
- IT business
- CAD/CAM
- Digital Lifestyle
- DTP
- Electronics
- Digital photography
- Computer graphics
- Games
- Hacking
- Hardware
- IT w ekonomii
- Scientific software package
- School textbooks
- Computer basics
- Programming
- Mobile programming
- Internet servers
- Computer networks
- Start-up
- Operational systems
- Artificial intelligence
- Technology for children
- Webmastering
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Narrative poetry
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
School textbooks
-
Popular science and academic
- Archeology
- Bibliotekoznawstwo
- Cinema studies
- Philology
- Polish philology
- Philosophy
- Finanse i bankowość
- Geography
- Economy
- Trade. World economy
- History and archeology
- History of art and architecture
- Cultural studies
- Linguistics
- Literary studies
- Logistics
- Maths
- Medicine
- Humanities
- Pedagogy
- Educational aids
- Popular science
- Other
- Psychology
- Sociology
- Theatre studies
- Theology
- Economic theories and teachings
- Transport i spedycja
- Physical education
- Zarządzanie i marketing
-
Guides
-
Game guides
-
Professional and specialist guides
-
Law
- Health and Safety
- History
- Road Code. Driving license
- Law studies
- Healthcare
- General. Compendium of knowledge
- Academic textbooks
- Other
- Construction and local law
- Civil law
- Financial law
- Economic law
- Economic and trade law
- Criminal law
- Criminal law. Criminal offenses. Criminology
- International law
- International law
- Health care law
- Educational law
- Tax law
- Labor and social security law
- Public, constitutional and administrative law
- Family and Guardianship Code
- agricultural law
- Social law, labour law
- European Union law
- Industry
- Agricultural and environmental
- Dictionaries and encyclopedia
- Public procurement
- Management
-
Tourist guides and travel
- Africa
- Albums
- Southern America
- North and Central America
- Australia, New Zealand, Oceania
- Austria
- Asia
- Balkans
- Middle East
- Bulgary
- China
- Croatia
- The Czech Republic
- Denmark
- Egipt
- Estonia
- Europe
- France
- Mountains
- Greece
- Spain
- Holand
- Iceland
- Lithuania
- Latvia
- Mapy, Plany miast, Atlasy
- Mini travel guides
- Germany
- Norway
- Active travelling
- Poland
- Portugal
- Other
- Russia
- Romania
- Slovakia
- Slovenia
- Switzerland
- Sweden
- World
- Turkey
- Ukraine
- Hungary
- Great Britain
- Italy
-
Psychology
- Philosophy of life
- Kompetencje psychospołeczne
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Audiobooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Real estate
- Persuasion and NLP
- Taxes
- Guides
- Presentations
- Leadership
- Public Relation
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
History
-
Computer science
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
Popular science and academic
-
Guides
-
Professional and specialist guides
-
Law
-
Tourist guides and travel
-
Psychology
- Philosophy of life
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Videocourses
-
Data bases
-
Big Data
-
Biznes, ekonomia i marketing
-
Cybersecurity
-
Data Science
-
DevOps
-
For children
-
Electronics
-
Graphics/Video/CAX
-
Games
-
Microsoft Office
-
Development tools
-
Programming
-
Personal growth
-
Computer networks
-
Operational systems
-
Software testing
-
Mobile devices
-
UX/UI
-
Web development
-
Management
Podcasts
- Ebooks
- Programming
- Programming techniques
- SDL Game Development. 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
E-book details
Log in, If you're interested in the contents of the item.
SDL Game Development. 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
Ebook
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.
- SDL Game Development
- Table of Contents
- SDL Game Development
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Support files, eBooks, discount offers and more
- Why Subscribe?
- Free Access for Packt account holders
- Support files, eBooks, discount offers and more
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Errata
- Piracy
- Questions
- 1. Getting Started with SDL
- Why use SDL?
- What is new in SDL 2.0?
- Migrating SDL 1.2 extensions
- Setting up SDL in Visual C++ Express 2010
- Using Mercurial to get SDL 2.0 on Windows
- Cloning and building the latest SDL 2.0 repository
- I have the library; now what?
- Using Mercurial to get SDL 2.0 on Windows
- Hello SDL
- An overview of Hello SDL
- SDL initialization flags
- SDL renderer flags
- What makes up a game
- Breaking up the Hello SDL code
- What does this code do?
- The Game class
- Fullscreen SDL
- Summary
- Why use SDL?
- 2. Drawing in SDL
- Basic SDL drawing
- Getting some images
- Creating an SDL texture
- Source and destination rectangles
- Animating a sprite sheet
- Flipping images
- Installing SDL_image
- Using SDL_image
- Tying it into the framework
- Creating the texture manager
- Using texture manager as a singleton
- Summary
- Basic SDL drawing
- 3. Working with Game Objects
- Using inheritance
- Implementing polymorphism
- Using abstract base classes
- Should we always use inheritance?
- Could the same thing be achieved with a simpler solution?
- Derived classes should model the "is a" relationship
- Possible performance penalties
- Putting it all together
- Summary
- 4. Exploring Movement and Input Handling
- Setting up game objects for movement
- What is a vector?
- Some common operations
- Addition of two vectors
- Multiply by a scalar number
- Subtraction of two vectors
- Divide by a scalar number
- Normalizing a vector
- Adding the Vector2D class
- Adding velocity
- Adding acceleration
- Creating fixed frames per second
- Input handling
- Creating our input handler class
- Handling joystick/gamepad input
- SDL joystick events
- Initializing joysticks
- Listening for and handling axis movement
- Dealing with joystick button input
- Handling mouse events
- Using mouse button events
- Handling mouse motion events
- Implementing keyboard input
- Wrapping things up
- Summary
- Setting up game objects for movement
- 5. Handling Game States
- A simple way for switching states
- Implementing finite state machines
- A base class for game states
- Implementing FSM
- Implementing menu states
- Function pointers and callback functions
- Implementing the temporary play state
- Pausing the game
- Creating the game over state
- Summary
- 6. Data-driven Design
- Loading XML files
- Basic XML structure
- Implementing Object Factories
- Using Distributed Factories
- Fitting the factory into the framework
- Parsing states from an XML file
- Loading the menu state from an XML file
- Loading other states from an XML file
- Loading the play state
- Loading the pause state
- Loading the game over state
- Summary
- Loading XML files
- 7. Creating and Displaying Tile Maps
- What is a tile map?
- Getting familiar with the Tiled application
- Parsing and drawing a tile map
- Creating the TileLayer class
- Creating the LevelParser class
- Parsing tilesets
- Parsing a tile layer
- Drawing the map
- Scrolling a tile map
- Parsing object layers
- Developing the ObjectLayer class
- Summary
- 8. Creating Alien Attack
- Using the SDL_mixer extension for sound
- Creating the SoundManager class
- Setting up the basic game objects
- GameObject revamped
- SDLGameObject is now ShooterObject
- Player inherits from ShooterObject
- Lots of enemy types
- Adding a scrolling background
- Handling bullets
- Two types of bullets
- The BulletHandler class
- Dealing with collisions
- Creating a CollisionManager class
- Possible improvements
- Summary
- Using the SDL_mixer extension for sound
- 9. Creating Conan the Caveman
- Setting up the basic game objects
- No more bullets or bullet collisions
- Game objects and map collisions
- ShooterObject is now PlatformerObject
- The Camera class
- Camera-controlled map
- The Player class
- Possible additions
- Summary
- Setting up the basic game objects
- Index
- Title: SDL Game Development. 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
- Author: Shaun Mitchell
- Original title: SDL Game Development. 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.
- ISBN: 9781849696838, 9781849696838
- Date of issue: 2013-06-24
- Format: Ebook
- Item ID: e_3b37
- Publisher: Packt Publishing