Nicht aus der Schweiz? Besuchen Sie lehmanns.de

Unreal Engine 5 Game Development with C++ Scripting (eBook)

Become a professional game developer and create fully functional, high-quality games
eBook Download: EPUB
2023
384 Seiten
Packt Publishing (Verlag)
978-1-80461-526-3 (ISBN)

Lese- und Medienproben

Unreal Engine 5 Game Development with C++ Scripting -  Zhenyu George Li
Systemvoraussetzungen
29,99 inkl. MwSt
(CHF 29,30)
Der eBook-Verkauf erfolgt durch die Lehmanns Media GmbH (Berlin) zum Preis in Euro inkl. MwSt.
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

Unreal Engine is one of the most popular and accessible game engines in the industry, creating multiple job opportunities. Owing to C++ scripting's high performance, advanced algorithms, and engineering maintenance, it has become the industry standard for developing commercial games. However, C++ scripting can be overwhelming for anyone without a programming background. Unreal Engine 5 Game Development with C++ Scripting will help you master C++ and get a head start on your game development journey.
You'll start by creating an Unreal Engine C++ project from the shooter template and then move on to building the C++ project and the C++ code inside the Visual Studio editor. You'll be introduced to the fundamental C++ syntax and essential object-oriented programming concepts. For a holistic understanding of game development, you'll also uncover various aspects of the game, including character creation, player input and character control, gameplay, collision detection, UI, networking, and packaging a completed multiplayer game.
By the end of this book, you'll be well-equipped to create professional, high-quality games using Unreal Engine 5 with C++, and will have built a solid foundation for more advanced C++ programming and game development technologies.


Expand your UE5 game development skills by leveraging C++ scripting and improve your game development abilities by building a game from scratchPurchase of the print or Kindle book includes a free PDF eBookKey FeaturesLearn C++ programming as well as C++ scripting for Unreal Engine 5Practice the UE5 scripting APIs through a game project to improve your knowledge and skillsExplore essential techniques and development cycles including design, implementation, optimization, and publishingBook DescriptionUnreal Engine is one of the most popular and accessible game engines in the industry, creating multiple job opportunities. Owing to C++ scripting's high performance, advanced algorithms, and engineering maintenance, it has become the industry standard for developing commercial games. However, C++ scripting can be overwhelming for anyone without a programming background. Unreal Engine 5 Game Development with C++ Scripting will help you master C++ and get a head start on your game development journey. You ll start by creating an Unreal Engine C++ project from the shooter template and then move on to building the C++ project and the C++ code inside the Visual Studio editor. You ll be introduced to the fundamental C++ syntax and essential object-oriented programming concepts. For a holistic understanding of game development, you ll also uncover various aspects of the game, including character creation, player input and character control, gameplay, collision detection, UI, networking, and packaging a completed multiplayer game. By the end of this book, you ll be well-equipped to create professional, high-quality games using Unreal Engine 5 with C++, and will have built a solid foundation for more advanced C++ programming and game development technologies.What you will learnDevelop coding skills in Microsoft Visual Studio and the Unreal Engine editorDiscover C++ programming for Unreal Engine C++ scriptingUnderstand object-oriented programming concepts and C++-specific syntaxExplore NPC controls, collisions, interactions, navigation, UI, and the multiplayer mechanismUse the predefined Unreal Engine classes and the programming mechanismWrite code to solve practical problems and accomplish tasksImplement solutions and methods used in game developmentWho this book is forThis book is for game designers, artists, software engineers, and students with some experience in using Unreal Engine and looking to explore the enigmatic C++ scripting. Basic experience with the UE editor is expected and blueprint scripting is a must. Familiarity with game concepts such as game level, lights, camera, actor/pawn/character, transformation, animation, and player control will be beneficial.]]>

Preface


Welcome, and thank you for choosing to pick up the Unreal Engine 5 Game Development with C++ Scripting book! This comprehensive book is designed to assist game developers and students in advancing their professional skills in C++ programming for Unreal Engine game development.

Unreal Engine is a powerful and versatile game engine widely used in both the gaming and movie-making industries. Possessing advanced and professional Unreal Engine development skills enables individuals to adapt more effectively to the demands of a career in game development, opening a multitude of opportunities for them.

When developing with Unreal Engine, you have the option to use either one or both of two available programming tools:

  • Blueprint provides a user-friendly interface suitable for non-programmer developers
  • C++ is predominantly employed by software engineers, providing a more robust and flexible approach to game development

As an Unreal Engine developer, you may have a genuine interest in understanding C++ and how it integrates with the engine, even if you don’t identify as a software engineer or aspire to become one.

This book is designed to assist you in expanding your knowledge and skills by guiding you through the necessary steps to create a fully fledged game, covering essential aspects of game development. It aims to smoothen the learning curve, allowing for a more seamless and efficient grasp of the concepts presented. The carefully organized topics eliminate the need for random searching and prevent wasted time on unrelated readings, enabling you to focus on the relevant information. Moreover, this book serves as a valuable reference manual, offering a comprehensive resource that can be revisited and utilized for further study.

Who this book is for


It is important to note that this book does not serve as a beginner’s guide to using Unreal Engine. Prior to exploring its contents, you should already possess a basic understanding of, and practical experience with, Unreal Engine and Blueprint. This prerequisite ensures that you have a solid foundation of knowledge to fully leverage the material covered in this book, maximizing your learning experience.

This book caters to a diverse range of readers:

  • Non-engineer game developers, such as game designers and artists who aspire to learn and comprehend C++ in the context of Unreal Engine development
  • Software engineers who may lack prior experience in Unreal Engine C++ programming but wish to quickly acquire the necessary skills for their next project or job
  • Students who are interested in learning and digging into Unreal C++ programming for their study or personal projects
  • Individuals with a keen interest in game development using Unreal Engine will benefit from the comprehensive knowledge presented within these pages

What this book covers


Chapter 1, Creating Your First Unreal C++ Game, guides you quickly through creating a new C++ game project based on the Shooter template in Unreal. This chapter also introduces how to convert an existing Blueprint game project into a C++ game project.

Chapter 2, Editing C++ Code in Visual Studio, provides basic information on how to use the powerful integrated development environment Microsoft Visual Studio to edit C++ code. This chapter not only presents the editing skills needed but also demonstrates how to create a calculator application in C++.

Chapter 3, Learning C++ and Object-Oriented Programming, goes deeper into C++ programming based on the previous chapter’s calculator project. This chapter covers the fundamental C++ syntax, data types, flow control, and so on. C++ object-oriented programming is also introduced in this chapter.

Chapter 4, Investigating the Shooter Game’s Generated Project and C++ Code, explores the details of the generated shooter game project, including the project files’ structure and the source files. In this chapter, the C++ code lines are briefly explained, so that you gain an overall understanding of how C++ code works.

Chapter 5, Learning How to Use the UE Gameplay Framework Base Classes, instructs you on how to create our new top-down game project, Pangaea. You will be guided on how to create the game actors, DefenseTower, for instance, and the game character, PlayerAvatar classes, for instance, as well as defining actor properties and functions in C++.

Chapter 6, Creating Game Actors, provides steps to write code and set up the main character for the Pangaea game. It includes setting up the character, creating the animation instance, defining the state machine, and synchronizing the animations.

Chapter 7, Controlling Characters, provides methods of controlling game characters. This includes configuring the input map, handling player input, and effectively processing the reactions of the player character. Additionally, you will be introduced to the AI controller and the navigation system for controlling non-player characters.

Chapter 8, Handling Collisions, discusses the engine’s collision system and its configurations for game interactions. To handle collision events – attack hits and projectile hits, for example – you will learn how to configure actor colliders and triggers. Using ray casts to check whether a projectile hits the target is also introduced in this chapter.

Chapter 9, Improving C++ Code Quality, presents how to employ software engineering practices during code refactoring and refinement. This chapter implements class generalization, caching, and pooling methods to improve the game code’s quality and performance.

Chapter 10, Making Pangaea a Network Multiplayer Game, starts by introducing the fundamental concepts related to multiplayer games, including servers, clients, and multiplayer modes. You will be guided step by step through converting the single-player Pangaea game into a multiplayer game.

Chapter 11, Controlling the Game Flow, intends to make Pangaea a complete multiplayer game, which has a main menu as the lobby, so that players can decide whether they want to start a host or join a game session. C++ and Blueprint scripting skills for user interface operations are also revealed in this chapter.

Chapter 12, Polishing and Packaging the Game, provides resources, methods, and suggestions on how to polish games from both visual experience and product quality aspects. This chapter also provides steps for configuring and packaging the Pangaea project to be an executable standalone game for distribution.

To get the most out of this book


You will need to have knowledge and experience in using Unreal Engine. Basic Blueprint scripting knowledge is also required prior to reading this book.

Software/hardware covered in the book

Operating system requirements

Unreal Engine 5.0 and up

Microsoft Windows 10 and up

Microsoft Visual Studio 2002 with the C++ compiler

If you conduct experiments with the samples on systems other than Microsoft Windows, such as macOS, please keep in mind that there may be user interface and configuration differences that may not be addressed in this book.

If you are using the digital version of this book, we advise you to type the code yourself or access the code from the book’s GitHub repository (a link is available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.

Download the example code files


You can download the example code files for this book from GitHub at https://github.com/PacktPublishing/Unreal-Engine-5-Game-Development-with-C-Scripting. If there’s an update to the code, it will be updated in the GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Conventions used


There are a number of text conventions used throughout this book.

Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The AProjectile class can be...

Erscheint lt. Verlag 30.8.2023
Vorwort Dr. E. Wyn Roberts
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Grafik / Design
Informatik Programmiersprachen / -werkzeuge C / C++
Informatik Software Entwicklung Spieleprogrammierung
ISBN-10 1-80461-526-9 / 1804615269
ISBN-13 978-1-80461-526-3 / 9781804615263
Haben Sie eine Frage zum Produkt?
EPUBEPUB (Ohne DRM)

Digital Rights Management: ohne DRM
Dieses eBook enthält kein DRM oder Kopier­schutz. Eine Weiter­gabe an Dritte ist jedoch rechtlich nicht zulässig, weil Sie beim Kauf nur die Rechte an der persön­lichen Nutzung erwerben.

Dateiformat: EPUB (Electronic Publication)
EPUB ist ein offener Standard für eBooks und eignet sich besonders zur Darstellung von Belle­tristik und Sach­büchern. Der Fließ­text wird dynamisch an die Display- und Schrift­größe ange­passt. Auch für mobile Lese­geräte ist EPUB daher gut geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür die kostenlose Software Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür eine kostenlose App.
Geräteliste und zusätzliche Hinweise

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Das umfassende Handbuch

von Torsten T. Will

eBook Download (2024)
Rheinwerk Computing (Verlag)
CHF 36,55
Das umfassende Handbuch

von Jürgen Wolf; René Krooß

eBook Download (2023)
Rheinwerk Computing (Verlag)
CHF 36,55
C++ lernen – professionell anwenden – Lösungen nutzen

von Ulrich Breymann

eBook Download (2023)
Carl Hanser Verlag GmbH & Co. KG
CHF 48,80