|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/lets-build-connect-4-game-in-swiftui/
课程评论:没有评论
**课程名称:** Let's Build Connect 4 Game in SwiftUI **课程概要:** 本课程将带领您使用 SwiftUI 构建经典的游戏“Connect 4”(四子棋),而无需依赖 SpriteKit。通过实践,您将深入学习 SwiftUI 的 UI 构建技巧,并掌握如何在 SwiftUI 中开发游戏。 课程内容包括: * **游戏逻辑开发:** 您将学会为 Connect 4 游戏编写游戏逻辑,实现玩家与计算机对弈的功能。我们将通过简单的计算,赋予计算机一定的逻辑性人工智能,使其能够策略性地阻挡玩家并争取胜利。 * **UI 设计与实现:** 您将学习如何仅凭简单的网格计算,构建出逼真的圆盘下落视觉效果 UI。 * **数据持久化:** 课程将重点介绍如何使用 `UserDefaults` 以及 SwiftUI 新引入的属性包装器 `AppStorage` 来轻松管理用户默认设置。`AppStorage` 能够让您在 SwiftUI 中像使用其他状态或绑定变量一样,便捷地存储和读取 `UserDefaults` 中的数据。 **目标学员:** 本课程适合已有 iOS 开发经验,并了解 SwiftUI 基本知识的学生。 **总而言之,** 这是一段将 SwiftUI 的强大功能应用于游戏开发的精彩旅程。您将共同构建一款看似简单却内含复杂逻辑的 Connect 4 游戏,并能在自己的设备上畅玩。
SwiftUI makes building UI fun and it can even be used to build games. In this video course we will do just that. We will build Connect 4 game in SwiftUI, without the use of SpriteKit. This course is designed to teach you SwiftUI and building games in SwiftUI. You will build game logic to play this Connect 4 game against computer. We will build logic in such a way where with simple computation, we will give computer a logistic artificial intelligence and let computer play against player to try to block and will the game. You will learn to build UI to simulate disc drop visualization just with simple grid computation. We will learn to use user defaults and newly introduced property wrapper called app storage, which makes is easy to deal with user defaults. With the help of AppStorage you will be able to use store and fetch data in user defaults while using those variables just like any other state or binding variables.This course is designed for students who already have exposure to iOS development and know basics of SwiftUI. Hope you join us in this journey to build this amazingly simple yet complex game and play it on your devices. thank you!