随笔分类 -  游戏制作

摘要:Talk is cheap. Show me the code. —— Linus Torvalds 本分类是博主希望跟着学习制作游戏,通过这样一种方式来学习Unity、C#,在实践中成长,遇到不会、不能理解的部分就去学习,跟着视频敲代码写注释也是一种学习的方式。 学习的课程相关链接如下: 【Uni 阅读全文
posted @ 2023-03-24 23:52 Felix-Fu 阅读(123) 评论(0) 推荐(0)
摘要:Finishing the Map Generator MapGenerator using System.Collections; using System.Collections.Generic; using Unity.VisualScripting; using UnityEngine; p 阅读全文
posted @ 2023-03-21 11:04 Felix-Fu 阅读(40) 评论(0) 推荐(0)
摘要:Map Navigation——地图烘培 MapGenerator using System.Collections; using System.Collections.Generic; using Unity.VisualScripting; using UnityEngine; public c 阅读全文
posted @ 2023-03-21 11:03 Felix-Fu 阅读(57) 评论(0) 推荐(0)
摘要:Map Connectivity——地图连通性 MapGenerator using System.Collections; using System.Collections.Generic; using UnityEngine; public class MapGenerator : MonoBe 阅读全文
posted @ 2023-03-21 11:01 Felix-Fu 阅读(73) 评论(0) 推荐(0)
摘要:Obstacle Placement——障碍物生成 Utility using System.Collections; public static class Utility { //洗牌算法 public static T[] ShuffleArray<T>(T[] array, int seed 阅读全文
posted @ 2023-03-21 10:54 Felix-Fu 阅读(50) 评论(0) 推荐(0)
摘要:Tile Map——地图 MapGenerator using System.Collections; using System.Collections.Generic; using UnityEngine; public class MapGenerator : MonoBehaviour { p 阅读全文
posted @ 2023-03-21 10:52 Felix-Fu 阅读(65) 评论(0) 推荐(0)
摘要:Some Loose Ends——一些待解决的问题 解决了Enemy攻击Player造成伤害,优化了Projectile在Enemy内部生成无法造成伤害以及Projectile在Enemy边界的问题,补充了相关注释,下一步可以利用**TakeHit(float damage, RaycastHit 阅读全文
posted @ 2023-03-21 10:43 Felix-Fu 阅读(75) 评论(0) 推荐(0)
摘要:Enemy Attacks——敌人攻击 Enemy using System.Collections; using UnityEngine; using UnityEngine.AI; [RequireComponent(typeof(NavMeshAgent))] public class Ene 阅读全文
posted @ 2023-03-21 10:39 Felix-Fu 阅读(69) 评论(0) 推荐(0)
摘要:Spawn System——生成系统 Spawned using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Spawned : MonoBeh 阅读全文
posted @ 2023-03-21 10:33 Felix-Fu 阅读(80) 评论(0) 推荐(0)
摘要:Damage ystem——伤害系统 Projectile using System.Collections; using System.Collections.Generic; using UnityEngine; public class Projectile : MonoBehaviour { 阅读全文
posted @ 2023-03-21 10:32 Felix-Fu 阅读(82) 评论(0) 推荐(0)
摘要:Enemies——敌人 Enemy using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; [RequireComponent(typeof(NavMes 阅读全文
posted @ 2023-03-21 10:31 Felix-Fu 阅读(75) 评论(0) 推荐(0)
摘要:Gun System——武器系统 Player using UnityEngine; using System.Collections; [RequireComponent(typeof(PlayerController))] [RequireComponent(typeof(GunControll 阅读全文
posted @ 2023-03-21 10:30 Felix-Fu 阅读(50) 评论(0) 推荐(0)
摘要:Player Control——玩家控制器 Player using UnityEngine; using System.Collections; [RequireComponent(typeof(PlayerController))] public class Player : MonoBehav 阅读全文
posted @ 2023-03-20 22:40 Felix-Fu 阅读(88) 评论(0) 推荐(0)