上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要: [toc] ### 简介 最近需要利用他人打包好的资源,接近8G,不是很大,但解压完小文件特别多,到了unity里面会频繁显示repaint提示窗,降低了开发效率。 于是采用了进游戏即时解包的策略,虽然资源可以在需要时再加载,但资源的索引需要在进入游戏时就构建好。构建资源id到文件偏移位置的映射,单 阅读全文
posted @ 2023-09-01 14:39 dewxin 阅读(337) 评论(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 阅读(640) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/xinzhilinger/article/details/115408934 前言: 在游戏开发学习初期,游戏体量较小,如果游戏场景需要Asset中的资源,我们可能会通过拖动的方式,将其添加到游戏场景中。而到了实际工作中,会发现再这样做就会使得各种拖动的资 阅读全文
posted @ 2023-08-21 16:14 dewxin 阅读(3981) 评论(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 阅读(144) 评论(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 阅读(136) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/Cy_coding/article/details/111048077 unity中我们普遍使用的是碰撞器来实现各个物体的碰撞体积,例如Box collider, Sphere Collider。 在实现游戏的过程中,如果不想要物体与特定物体产生碰撞,或反 阅读全文
posted @ 2023-08-05 15:59 dewxin 阅读(536) 评论(0) 推荐(0)
摘要: https://gwb.tencent.com/community/detail/109177 FPS游戏服务器设计的问题 转 3.3k浏览 一、追溯 去gameloft笔试,有一个题目是说: 叫你去设计一个FPS(第一人称射击游戏),你是要用TCP呢还是要用UDP,说明理由 。二、学习 这是两篇网 阅读全文
posted @ 2023-08-05 14:58 dewxin 阅读(167) 评论(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 阅读(77) 评论(0) 推荐(0)
摘要: ### 动机 由于地图是使用unity tilemap编辑的,服务端也希望获取一份相关的信息。**相较于自己写个编辑器,直接利用unity的能力会更加敏捷**。 ### 效果展示 只需要将组件拖拽到含有Tilemap组件的GameObj上面,就可以点击按钮,获取格子信息。 ![](https://i 阅读全文
posted @ 2023-07-22 14:44 dewxin 阅读(818) 评论(0) 推荐(0)
摘要: https://stackoverflow.com/questions/10196897/memorymappedfile-createoropen-throws-the-handle-is-invalid C# mutex的名字和 MemoryMappedFile名字不能一样。。 可能是底层用到了 阅读全文
posted @ 2023-07-12 16:33 dewxin 阅读(49) 评论(1) 推荐(1)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页