Welcome to HanWen's Blog!

The language switcher is available in the footer

Recently, our company launched a casual mini-game, and I handled the animation part, developing a basic yet functional action synchronization solution in the project. It is based on broadcasting states for synchronization, and the principle is not complicated. However, what works best is what fits the needs—this solution is sufficient for most mini-games that are not sensitive to latency, and it can be quickly set up without relying on third-party plugins. Therefore, I would like to share the thought process behind building it.

image-20260305114052767
Read more »

A couple of days ago, I encountered a peculiar issue: when using the GameEntry.Resource.LoadAssetAsync<T> API from the GameFramework in Unity to load Sprite-type resources, an error indicating a type mismatch occurred, even though the corresponding Sprite file clearly exists:

1
2
3
Exception: GameFrameworkException: Load asset 
'Assets/Res/UI/UISprite/EnterGamePopup/Achievement/EGP_Achievement_Base_ChineseTraditional.png'
failure load type is UnityEngine.Texture2D but asset type is UnityEngine.Sprite.
Read more »

When software crashes on a real device, we often cannot directly obtain the error logs, so we typically need to rely on third-party tools to capture and analyze the logs. This article documents the debugging process of a Unity game frequently crashing in the Android environment, using Android Studio 2025.1.4.8 for log capture.

Read more »

This article is also published on Zhihu: Creating a 2D Top-Down Game with a “Y-Axis” - Zhihu (zhihu.com)

Thanks to everyone who liked and favorited!

Imagine a small bridge with an archway. The player first goes up the bridge from the left, then down from the right, and finally walks through the archway in the middle.

This is a very simple and common scenario. However, implementing it in a 2D top-down game is more complex than it might seem – how can the collision box that prevents the player from jumping off the bridge not also block the player trying to pass through the archway?

好吧这两个数字可能被压的太扁了

Read more »

Welcome!

This is the first post on my blog. Here I will share my thoughts, newly learned technologies, and many whimsical ideas ; )

Thank you for your attention! Looking forward to seeing you again.

0%