上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页
摘要: 背景介绍 做2D横版游戏的时候,通常会放置一个背景图片,但如果背景图片一动不动,大脑会将其和中心位置的角色捆绑,从而给玩家一种变扭的感觉,以及久了会导致眩目的不良体验。 因此希望背景图片也能像日常中的远景一样,能够随着人物的移动而移动。 目标效果 我们期望在地图左下角的时候,显示的是背景左下角的部分 阅读全文
posted @ 2023-09-18 00:25 dewxin 阅读(495) 评论(0) 推荐(0)
摘要: ### 简介 想对单例进行统一的管理,在UnityEditor[进入playMode](https://docs.unity.cn/2019.4/Documentation/ScriptReference/EditorApplication-playModeStateChanged.html)的时候 阅读全文
posted @ 2023-09-05 15:03 dewxin 阅读(42) 评论(0) 推荐(0)
摘要: [toc] ### 简介 最近需要利用他人打包好的资源,接近8G,不是很大,但解压完小文件特别多,到了unity里面会频繁显示repaint提示窗,降低了开发效率。 于是采用了进游戏即时解包的策略,虽然资源可以在需要时再加载,但资源的索引需要在进入游戏时就构建好。构建资源id到文件偏移位置的映射,单 阅读全文
posted @ 2023-09-01 14:39 dewxin 阅读(381) 评论(0) 推荐(0)
摘要: ```C# using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(SpriteRenderer))] public class SpriteFul 阅读全文
posted @ 2023-08-27 15:08 dewxin 阅读(679) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/xinzhilinger/article/details/115408934 前言: 在游戏开发学习初期,游戏体量较小,如果游戏场景需要Asset中的资源,我们可能会通过拖动的方式,将其添加到游戏场景中。而到了实际工作中,会发现再这样做就会使得各种拖动的资 阅读全文
posted @ 2023-08-21 16:14 dewxin 阅读(4238) 评论(0) 推荐(0)
摘要: .netframework的Bitmap类返回的pixel中[alpha的值恒为255]( https://bytes.com/topic/net/answers/752980-how-do-i-get-bitmap-getpixel-not-return-alpha-value),因此需要自己读取 阅读全文
posted @ 2023-08-08 19:22 dewxin 阅读(162) 评论(0) 推荐(0)
摘要: https://github.com/matthewkimber/ps-layer-sort 下载这个脚本,将其放置到Adobe\Adobe Photoshop 2023\Presets\Scripts目录下。 然后在Ps中点击 文件->脚本->ps-layer-sort 阅读全文
posted @ 2023-08-08 16:13 dewxin 阅读(156) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/Cy_coding/article/details/111048077 unity中我们普遍使用的是碰撞器来实现各个物体的碰撞体积,例如Box collider, Sphere Collider。 在实现游戏的过程中,如果不想要物体与特定物体产生碰撞,或反 阅读全文
posted @ 2023-08-05 15:59 dewxin 阅读(597) 评论(0) 推荐(0)
摘要: https://gwb.tencent.com/community/detail/109177 FPS游戏服务器设计的问题 转 3.3k浏览 一、追溯 去gameloft笔试,有一个题目是说: 叫你去设计一个FPS(第一人称射击游戏),你是要用TCP呢还是要用UDP,说明理由 。二、学习 这是两篇网 阅读全文
posted @ 2023-08-05 14:58 dewxin 阅读(194) 评论(0) 推荐(0)
摘要: 不知道“增益道具”在英文里该怎么说,百度翻译是GainProp,感觉怪怪的。于是用ChatGPT问了一下。 我: >in a game, something that can buff the player, what is it GPT: >In a game, a "buff" typicall 阅读全文
posted @ 2023-07-28 20:26 dewxin 阅读(99) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页