Posts
Unity::Pathfinding with A* algorithm in Unity small game project
· ☕ 8 min read
https://pavcreations.com/pathfinding-with-a-star-algorithm-in-unity-small-game-project/ Introduction In this tutorial we are going to look into the pathfinding of the shortest route between two points in a tilemap-based world on a basis of a grid. It is a continuation of the previous article where I’ve presented the concepts behind A* search algorithm. Last time, I’ve implemented a grid that now will be used by enemies to move around levels. That is to say, the enemies will independently wander around a game world without bumping into obstacles.

Unreal Engine 5 with Vim or Emacs on Linux
· ☕ 10 min read
Unreal Engine 5 with Vim or Emacs on Linux November 17, 2022 Preface The aim of this document is to give a comprehensive guide on how to set up for game development using Unreal Engine 5 with Vim or Emacs (or any other text editor/IDE that is not officially supported). This guide makes some assumptions: You know how to configure your text editor of choice You already know the basics of Unreal Engine 5 You know how to install software on your Linux distribution of choice You are using a text editor/IDE that is capable of using LSP and DAP You have basic knowledge of and are comfortable using the Shell and a little bit of Shell-scripting Personally I use Neovim and Arch Linux, but all information in this guide should also be applicable to every other text editor/IDE with the required feature set and every other Linux distribution (and maybe even Mac or Windows, though I do not use any of those OSes).

2022-08-01-框架基础
· ☕ 3 min read
GameMode: 定义游戏规则。分数。 facets,游戏类型 GameState: 负责启用客户端监控游戏状态, 全局的游戏状态。 管理游戏数据 Player State:

Debugging and autocompletion for Unreal Engine 4 and 5 projects in (Neo)Vim
· ☕ 6 min read
Autocompletion For autocompletion there are two options: coc (Vim, Neovim) LSP (Neovim only) In my experience, coc is easier to set up. If you want to get started as quickly as possible, this is your best bet. Coc Install coc.vim, e.g. with vim-plug inside .vimrc: Plug 'neoclide/coc.nvim' Run :CocInstall coc-clangd You will likely have to familiarize yourself with coc’s shortcuts first or customize it as you see fit. LSP Setting up LSP takes a bit of time but for those that already have it up and running, there is probably not much to do.

Unity::LuaString
· ☕ 2 min read
-- -- lua -- 判断utf8字符byte长度 -- 0xxxxxxx - 1 byte -- 110yxxxx - 192, 2 byte -- 1110yyyy - 225, 3 byte -- 11110zzz - 240, 4 byte local function chsize(char) if not char then print("not char") return 0 elseif char > 240 then return 4 elseif char > 225 then return 3 elseif char > 192

Unity::testHugo
· ☕ 1 min read
image: beach.jpg image: images/feature2/gallery.png Sample images from Pixabay $image := resources.Get “images/feature2/gallery.png” - {{ with .Resources.ByType “image” }} {{ range . }} {{ .RelPermalink }} {{ end }} {{ end }} Sample Image: Image with title, caption, alt, ...

Unity::帧同步 预测回滚
· ☕ 4 min read
备份数据 每个Entity 的所有 component都实现 IBackup ,里面的数据都写入 stream里面 #回滚数据 从二进制数据流里面还原LogicEnti

C#泛型接口的抗变和协变
· ☕ 2 min read
泛型接口的抗变(也叫逆变 Contravariance)和协变(Covariance)有什么区别? 先说定义, 协变和逆变能够实现数组类型、委托类

Unity::GC的实现
· ☕ 2 min read
GC的实现 实现GC的策略有很多种,其中最常见一种就是 Tracing garbage collection,或者叫 Mark-Sweep,这种算法会通过一个 root Object,

ArchLinux Tes9999999
· ☕ 1 min read
Subject TestTest 12312312332121123123312321

ArchLinux密钥环
· ☕ 1 min read
由于升级到了 gnupg-2.1,pacman 上游更新了密钥环的格式,这使得本地的主密钥无法签署其它密钥。这不会出问题,除非你想自定义 pacman 密钥环