Connect a WebSocket and handle string, ArrayBuffer, and Blob messages in Cocos Creator.
Software notes and practical experiments
This is the English entry point to Nanfeng's development blog. The archive currently contains Chinese-language technical notes; English translations will be published progressively.
Event Capture, Bubbling, and Input Blocking in Cocos Creator
Prevent a child-node interaction from unintentionally reaching nodes behind it in Cocos Creator.
Automatically Paging a Cocos Creator PageView
Move a PageView forward and backward automatically at a fixed interval.
Testing Cocos Creator Across Origins in Chrome
Prefer correct server-side CORS settings, with an isolated insecure Chrome profile only as a temporary local debugging fallback.
Dynamically Changing Sprite Images in Cocos Creator
Load SpriteFrame sub-assets with the correct resource path and assign them to multiple sprites.
Hiding .meta Files in VS Code
Keep Cocos Creator .meta files on disk while hiding them from the VS Code Explorer.
Fixing a Python Script Launch Error in Cocos Creator
Restart Cocos Creator after installing Python so the editor inherits the updated environment variables.
Fixing “Look for an App in the Microsoft Store?” on Windows 11
Unblock a trusted downloaded executable when Windows 11 asks to look for an app in Microsoft Store.
Adding Touch Events to Multiple Sprites in Cocos Creator
Register one touch handler for several sprite nodes and identify which node was touched.
Drawing an Underline Beneath Text in Cocos2d-x Lua
Create a reusable DrawNode line helper that can be positioned beneath a text label.