Make a 2d Platformer in Unity 2020 using Design patterns

th_tjdfuXmCt2QSoeLa0hwfhiuTtItgEtQH

制作游戏很有趣,但没有什么比添加新代码来创建新游戏机制只是为了破坏旧代码更令人沮丧的了。在这一点上,它不再有趣并开始搜索错误——老实说,当你可以为你的游戏设计一个新的关卡时,这是最不有趣的事情。这就是为什么学习如何为您的游戏创建可维护和可扩展的代码库如此重要的原因。如果您搜索解决方案,您将找到设计模式和 SOLID 原则。
要获得折扣,请尝试 2​​021_OCTOBER 代码。

如果您尝试过学习设计模式,您肯定知道何时使用它并不直观。每个都提供了一个解决方案,但需要时间和额外的代码才能工作。仅仅为了它而实施它们只是浪费时间 – 那么我们什么时候应该使用它们?答案是 – 添加新功能或扩展旧功能似乎需要大量的工作和努力。

在本课程中,您将学习如何使用状态模式作为创建角色控制器的基础,以及当您发现添加新功能开始变得“​​痛苦”且不直观时,如何将代码重构为其他设计模式。最后,您将了解重构过程背后的思维方式以及何时使用设计模式的决策。

您将学习如何编写解耦类——这意味着 A 类不依赖于 B 类,但如果它们都存在,它们可以相互交流以创建我们想要的游戏机制。

这是一门关于创建可维护和可扩展的代码库,实际上是一个完整的 2d 平台游戏的中级课程。您应该了解 Unity 的使用方式,并且可以轻松地使用 Visual Studio IDE 在 C# 中进行编码。

你将学到如何:

创建一个可以移动和跳跃的角色,并使用新功能扩展它的角色控制器,例如:攀爬行为、攻击逻辑等。

如何为敌人重用玩家角色控制器

如何创建 3 种类型的敌人以及最终级别的 Boss

如何使用因子方法模式使您的代码更易于维护

如何使用策略模式实现简单的AI系统

我们将实现的特定平台游戏功能:

获取资源

重生系统

使用单向对撞机添加平台

为我们的关卡创造视差效果

近战和可投掷武器

以及更多!

MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English + srt | Duration: 250 lectures (26h 11m) | Size: 12.4 GB

Learn how to architect your codebase for a 2d platformer using design patterns.


What you’ll learn:
How to create a 2D platformer in Unity 2020
How to use State Pattern, Strategy pattern and Factory method pattern in a full game project
How to write maintainable C# code
How to save game state
How to create multiple level

Requirements
Intermediate knowledge of c# language ex how abstract classes / interfaces works
Basic knowledge of Unity 2020 ex Mecanim Animation System
Basic knowledge of Unity 2020 ex How Raycasting / Physics 2D works
Basic knowledge of Unity 2020 – know your way around the inspector
Visual Studio IDE ex 2019 is recommended

Description
Making games is fun but there is nothing more frustrating than adding new code to create a new game mechanic just to have the old code break. At this point it stops being fun and bug search begin – which honestly is the least fun thing to do when you could instead design a new level for your game. That is why it is so important to learn how to create maintainable and extensible code base for your game. If you search for a solution you will find Design patterns and SOLID principles.
To get a discount try 2021_OCTOBER code.

If you have every tried to learn design patterns you surely know that it is not intuitive when to use it. Each presents a solution but requires time and additional code to work. Implementing them just for the sake of it is just a waste of time – so when should we use them? The answer is – when adding new features or extending the old ones seems like a lot of work and effort.

In this course you will learn how to use state pattern as a base to create your character controller and how to refactor your code to other design patterns when you can see that adding new feature starts to be “painful” and unintuitive. At the end you will know the way of thinking behind the refactoring process and behind the decision when to use design patterns.

You will learn how to write decoupled classes – meaning that class A doesn’t rely on Class B but if they both exist they can communicate witch each other to create our desired game mechanics.

This is an Intermediate course about creating a maintainable and extensible codebase and in effect a full 2d platformer game. You should know your way around Unity and feel comfortable coding in C# using Visual Studio IDE.

You will learn how to:

Create a character that can move and jump and extend it’s character controller with new features like: climbing behaviour, attack logic etc.

How to reuse players character controller for enemies

How to create 3 types of enemies as well as a end level boss

How to use factor method pattern to make your code more maintainable

How to use Strategy pattern to implement simple AI system

Specific platformer features that we will implement:

picking up resources

respawn system

adding platforms with one-way collider

creating parallax effect for our level

melee and throwable weapons

and much more!

If for any reason you don’t enjoy the course you have 30 days from the purchased date to get your money back – no questions asked.

I hope to see you in the course ?

-Peter

Who this course is for
Intermediate Unity Developers
Intermediate C# developers

资源下载此资源仅限VIP下载,请先
本站资源仅限VIP会员下载点击购买VIP会员

原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/20285.html

赞 (0)
steven的头像steven
上一篇 2021年10月4日
下一篇 2021年10月4日

相关推荐

发表回复

登录后才能评论
分享本页
返回顶部