A short introduction to running Lua, syntax, variables, values, functions, tables, and the standalone interpreter.
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.
Shallow and Deep Copying in Lua
Copying Lua tables while handling nested tables, cycles, shared references, keys, and metatables.
Safely Making a Local Git Branch Match Its Remote
Fetching a remote branch and deliberately discarding local tracked changes with a recoverable Git workflow.
The Difference Between Dot and Colon Syntax in Lua
How Lua's colon syntax defines and calls methods by supplying an implicit self argument.
Repairing a Broken pip Installation
Safe ways to repair pip startup tracebacks without editing pip's installed source files.
Fixing SyntaxError When Running pip install
Why pip install causes SyntaxError inside the Python prompt and where the command should be run instead.
Frame Animations in Cocos2d-x with Lua
Creating frame-by-frame animation from a sprite sheet or a Cocos Studio timeline in Cocos2d-x 3.17.
Physics Collision Detection in Cocos2d-x Lua
Creating a physics scene, bodies, boundaries, collision masks, and contact listeners in Cocos2d-x 3.x Lua.
Controlling Movement with a Virtual Joystick in Cocos2d-x Lua
Implementing a touch-driven virtual joystick with normalized direction and a limited thumb radius.
Secure Hot Updates for Cocos2d-x Lua Games
Version manifests, asset downloads, verification, search paths, recovery, and deployment safety for Cocos2d-x hot updates.