En:PFSL
Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.
[править]
What is PFSL?
PFSL (Pocket F.A.L.L.O.U.T. Script Language) is a internal programming language. It was specially worked out and designt for Pocket Fallout game engine. With the help of its upgradable functional it is possible to design a gaming levels, to organize a gameplay logic, to create and to command а game personages. It suppots multi modularity, structural properties, linear branching, looping, array creation.
[править]
Example
//Procedure adds hotizontal wall with windows procedure mAddHorizontalWindowsWall(x, y, width, direct, map_builder) // The list of identifier wall image dim hor_bottom[3]; hor_bottom[0] = 1; hor_bottom[1] = 17; hor_bottom[2] = 3; //Ставим стены var i = 0; var j = 0; var wallID = 0; for i = x to x - width + 1 step - 1 wallID = hor_bottom[j]; map_builder.SetWall(i, y, wallID, direct); map_builder.AddBypassPoint(i, y); j = j + 1; if j > 2 then j = 1; endif endfor endprocedure
[править]