Build a 2D Dungeon Crawler with C++ and SDL2
eBook - ePub

Build a 2D Dungeon Crawler with C++ and SDL2

Build a Complete Dungeon Crawler with C++ and SDL2

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Build a 2D Dungeon Crawler with C++ and SDL2

Build a Complete Dungeon Crawler with C++ and SDL2

About this book

Build a complete 2D dungeon crawler from scratch with C++ and SDL2. Go from an empty project to a playable game: set up SDL2, build the game loop, render tile maps and sprites, handle input and collisions, add enemies and combat, and ship a finished dungeon crawler. Every chapter builds on the last with clear, working C++ code β€” ideal for programmers who know the basics and want to learn real game development by building something fun end to end.

Trusted byΒ 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Publisher
Chiify
Year
2026
eBook ISBN
9798259604810

Table of contents

  1. Build a 2D Dungeon Crawler with C++ and SDL2
  2. Build a 2D Dungeon Crawler with C++ and SDL2
  3. Preface
  4. Chapter 1 β€” Setting Up the Foundation: Your First SDL2 Window
  5. Chapter 2 β€” Variables, Data Types, and Player Stats
  6. Chapter 3 β€” The Game Loop: Rendering Sprites and Handling Input
  7. Chapter 4 β€” Control Structures for Game State Management
  8. Chapter 5 β€” Arrays and Maps: Representing the Dungeon
  9. Chapter 6 β€” Functions and Modular Code: Refactoring the Renderer
  10. Chapter 7 β€” Classes and Objects: Enemies and the Player
  11. Chapter 8 β€” Inheritance and Polymorphism: Enemy Variety
  12. Chapter 9 β€” Pointers and Dynamic Memory: Managing a Dungeon Full of Objects
  13. Chapter 10 β€” Collision Detection and Physics for Movement
  14. Chapter 11 β€” Combat System: Turn-Based or Real-Time?
  15. Chapter 12 β€” Item System: Potions, Weapons, and Inventory
  16. Chapter 13 β€” Procedural Generation: Random Dungeon Rooms
  17. Chapter 14 β€” File I/O: Saving and Loading the Game
  18. Chapter 15 β€” Animations and Visual Polish
  19. Chapter 16 β€” Sound Effects and Background Music
  20. Chapter 17 β€” Optimization and Debugging Techniques
  21. Chapter 18 β€” Putting It All Together: Final Polish and Packaging

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere β€” even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Build a 2D Dungeon Crawler with C++ and SDL2 by Wren Zielinski in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Games. We have over 1.5 million books available in our catalogue for you to explore.