Understand the difference between Lua's sequence length operator and counting all non-nil table entries.
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.
Getting a File’s Size in Cocos2d-x Lua
Return a file's size in bytes with Lua file seeking, or false if the file cannot be opened.
Converting Degrees and Radians in Cocos2d-x Lua
Small Lua helpers for converting angles between degrees and radians.
Splitting a String with a Delimiter in Cocos2d-x Lua
Split a Lua string by a literal character or multi-character delimiter and return an array.
Opening a Facebook Page from Cocos2d-x Lua on Android
Call an Android Java method from Cocos2d-x Lua to open a Facebook page in the app, with a web fallback.
Conditional Statements in Java
A practical guide to if, else if, nested conditions, the ternary operator, and switch in Java.
Expressions, Statements, and Blocks in Java
Understand how Java expressions produce values, statements perform actions, and braces group statements into blocks.
Operators in Java
A compact guide to Java arithmetic, assignment, comparison, logical, bitwise, shift, and conditional operators.
Primitive Data Types in Java
The eight Java primitive types, their common uses, literals, ranges, and default values for fields.
Variables in Java
Declare, initialize, name, and understand the scope and lifetime of Java variables and fields.