Reader small image

You're reading from  Unreal Engine 5 Game Development with C++ Scripting

Product typeBook
Published inAug 2023
Reading LevelBeginner
PublisherPackt
ISBN-139781804613931
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
ZHENYU GEORGE LI
ZHENYU GEORGE LI
author image
ZHENYU GEORGE LI

Zhenyu George Li is a passionate video game developer with 20+ years of experience. He has contributed significantly to many games and serves as a senior development consultant at Unity. His early immersion in technologies like C/C++, DirectX, OpenGL, and Windows GUI laid the foundation for his success. Notable titles in his portfolio include Magic Arena, Halo Infinity, Stela, Dead Rising 2, and The Bigs 2. He has gained extensive knowledge in programming, graphics, animation, gameplay, AI, multiplayer, and UI using Unreal and Unity engines. Additionally, he has taught UE at Vancouver Film School and has college teaching experience at College of Interactive Arts and Hefei Union University.
Read more about ZHENYU GEORGE LI

Right arrow

Summary

In this chapter, you mainly learned how to improve the quality of the code in the Pangaea project, as well as how to output debug messages to monitor real-time game information.

Firstly, we introduced the concepts of code refactoring and code refinement, which made you aware of the importance of regular code quality improvement.

After that, we analyzed the Pangaea source code and identified two main issues that could be overcome: the redundant two animation instance classes of UPlayerAnimInstance and UEnemyAnimInstance and the duplicated member variables and functions of APlayerAvatar and AEnemy.

To resolve the first issue, you added a new class, UPangaeaAnimInstance, to replace the existing UPlayerAnimInstance and UEnemyAnimInstance classes. To resolve the second issue, you made the APangaeaCharacter class the parent class of APlayerAvatar and AEnemy, so that the duplicated variables and functions could be moved into the parent class.

Then, improving the code performance...

lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
Unreal Engine 5 Game Development with C++ Scripting
Published in: Aug 2023Publisher: PacktISBN-13: 9781804613931

Author (1)

author image
ZHENYU GEORGE LI

Zhenyu George Li is a passionate video game developer with 20+ years of experience. He has contributed significantly to many games and serves as a senior development consultant at Unity. His early immersion in technologies like C/C++, DirectX, OpenGL, and Windows GUI laid the foundation for his success. Notable titles in his portfolio include Magic Arena, Halo Infinity, Stela, Dead Rising 2, and The Bigs 2. He has gained extensive knowledge in programming, graphics, animation, gameplay, AI, multiplayer, and UI using Unreal and Unity engines. Additionally, he has taught UE at Vancouver Film School and has college teaching experience at College of Interactive Arts and Hefei Union University.
Read more about ZHENYU GEORGE LI