
游戏
小鱼游戏开发
一个做了几年的游戏开发
展开
-
UML
https://www.draw.iohttps://www.processon.com/diagrams原创 2020-01-18 21:14:37 · 181 阅读 · 0 评论 -
unity——PictureAnimation
代码获取图集切割的图片var sprites = Resources.LoadAll("Texture/hurt_front/hurt_001_0");循环播放图片using System.Collections;using UnityEngine;using UnityEngine.UI;public class PictureAnimation : MonoBehavi原创 2017-11-01 14:27:04 · 338 阅读 · 0 评论 -
Type Object 写 物品属性
又一段时间没写博客啦,或许是太懒?还是前段时间试着模仿自由幻想写了个自己玩的游戏,没有任何贴图、模型等。虽然自己玩得很好。但我的愿意是用项目练手。所以准备推翻重构啦。为啥重构?唔,给一段我写的代码的贴图你就知啦唔,相信你们也看到了这段代码是有多么的糟糕。我刚写完打算添加属性时才发觉自己做了多么蠢的一件事。如果我是策划,那么这里一定会经常改所以不可能直接就原创 2017-12-18 19:24:43 · 340 阅读 · 0 评论 -
Unity_自动生成动画
选中图片组设置保存文件位置设置文件名称设置帧率设置切换图片时间生成using UnityEngine;using UnityEditor;public class BuildAnimation : EditorWindow{ private float frameRate = 30; private f原创 2018-01-25 11:59:30 · 611 阅读 · 0 评论 -
简单任务系统
代码已上传至:https://github.com/pinzeweifen/demo/tree/master/Unity/Frame作为一个Unity 的用户,接触这编辑器已经很久了,写的代码一般都是拖拖拖。也萌生过写个架构,但是都失败了。至于原因可能是我知识量不足?作为只萌新,今日来写写任务系统。首先我想知道的是任务到底有哪些类型,然后我找到了这边文章,我觉得他归类得很好,所以直接用他的了htt...原创 2018-02-13 02:17:04 · 683 阅读 · 0 评论 -
unity 在地图随机生成不重叠对象
没啥好说的。无非就是利用哈希存储已生成坐标,随机的时候判断一下是否已在该坐标生成对象原创 2019-09-05 18:53:12 · 7924 阅读 · 8 评论 -
unity 警戒范围和攻击范围
using System.Collections.Generic;using UnityEngine.Events;using UnityEngine;using System;#if UNITY_EDITORusing UnityEditor;#endif[Serializable] public class UnityEventTranfromAndInt :...原创 2019-09-09 01:16:39 · 1870 阅读 · 0 评论 -
C语言_推箱子
#include #include #include #include #define WIN32_LEAN_AND_MEAN#include #include "list.h"/****************************定义宏和结构******************************/#define bool int#define false 0#d原创 2016-06-12 04:03:20 · 664 阅读 · 0 评论 -
判断牌类型
#include #include #include #include using namespace std;#define CREATEVARIABLE(Type, Name)\protected:\ Type Name;\public:\ void set##Name(Type value){\ Name = value;\ }\原创 2016-06-01 02:43:21 · 289 阅读 · 0 评论