|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/unity-2020-2d-platformer/
课程评论:没有评论
课程名称:使用设计模式在Unity 2020中制作2D平台游戏 课程概述:制作游戏是一件有趣的事情,但当你需要添加新代码以实现新的游戏机制时,旧代码却出现问题,这种挫败感是无与伦比的。此时,游戏的乐趣减弱,寻找错误的问题成为主要任务,这无疑是一项最不有趣的工作。在这个过程中,学习如何创建一个可维护且可扩展的代码基础就显得尤为重要。为了实现这一目标,我们需要了解设计模式和SOLID原则。 本课程将帮助你学习如何使用状态模式作为基础来创建角色控制器,并在添加新特征时,能够进行代码重构,以避免痛苦的代码维护过程。最终,你将掌握重构过程背后的思想以及使用设计模式的决策过程。你将学习如何编写解耦的类,即类A不依赖于类B,但如果两者同时存在,它们可以相互通讯以实现预期的游戏机制。 这是一个中级课程,重点在于创建一个可维护和可扩展的代码库,并最终实现一个完整的2D平台游戏。参与者应熟悉Unity并对使用Visual Studio IDE编写C#代码感到自信。 在课程中,你将学习如何: - 创建可以移动和跳跃的角色,并扩展其控制器功能,如攀爬行为、攻击逻辑等。 - 将玩家角色控制器复用于敌人角色。 - 创建三种类型的敌人以及最终关卡的Boss。 - 使用工厂方法模式提高代码的可维护性。 - 使用策略模式实现简单的AI系统。 我们将实现的平台游戏特性包括:资源拾取、复活系统、添加带单向碰撞器的平台、级别的视差效果、近战和投掷武器等诸多内容。 如果由于任何原因你对课程不满意,可以在购买日期起30天内申请退款,无需提供任何理由。 期待在课程中见到你!- Peter
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. 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 bossHow to use factor method pattern to make your code more maintainableHow to use Strategy pattern to implement simple AI system Specific platformer features that we will implement:picking up resourcesrespawn systemadding platforms with one-way collidercreating parallax effect for our levelmelee and throwable weaponsand 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