From 3df1ab949412731cae46575118733d152b22ca01 Mon Sep 17 00:00:00 2001 From: Zishan Rahman Date: Thu, 18 Dec 2025 15:46:25 +0000 Subject: [PATCH 1/7] Add Flyman example project --- examples/flyman.flock | 574 ++++++++++++++++++++++++++++++++++++++++++ index.html | 3 +- locale/de.js | 1 + locale/en.js | 1 + locale/es.js | 1 + locale/fr.js | 1 + locale/it.js | 1 + locale/pl.js | 1 + locale/pt.js | 1 + locale/sv.js | 1 + 10 files changed, 584 insertions(+), 1 deletion(-) create mode 100644 examples/flyman.flock diff --git a/examples/flyman.flock b/examples/flyman.flock new file mode 100644 index 00000000..db397d16 --- /dev/null +++ b/examples/flyman.flock @@ -0,0 +1,574 @@ +{ + "blocks": { + "languageVersion": 0, + "blocks": [ + { + "type": "start", + "id": ")$6Ey~TQ+o7mR;*R4=Y?", + "x": 10, + "y": 10, + "inputs": { + "DO": { + "block": { + "type": "set_sky_color", + "id": "GTMd@[GvPa_rl#ET{!l|", + "inputs": { + "COLOR": { + "shadow": { + "type": "colour", + "id": "G_x%-kEz,)_8;QI=WuAt", + "fields": { + "COLOR": "#6495ed" + } + } + } + }, + "next": { + "block": { + "type": "create_map", + "id": "*{VyeCsE.~vNvD)TClK}", + "fields": { + "MAP_NAME": "mixed_heights.png" + }, + "inputs": { + "MATERIAL": { + "shadow": { + "type": "material", + "id": "l~!8GHDl[~?ctI*S!J.|", + "fields": { + "TEXTURE_SET": "gridxy.png" + }, + "inputs": { + "BASE_COLOR": { + "shadow": { + "type": "colour", + "id": "oSK%7F4%vuofr{ZF?!eR", + "fields": { + "COLOR": "#71bc78" + } + } + }, + "ALPHA": { + "shadow": { + "type": "math_number", + "id": "v8GbSr4BPx#Aakx+8owM", + "fields": { + "NUM": 1 + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "type": "start", + "id": "BO6m]`cT,]LB[r/jF|kl", + "x": 10, + "y": 262, + "inputs": { + "DO": { + "block": { + "type": "load_character", + "id": "LNVwUYCpS}};JO4!1.Mv", + "extraState": "", + "fields": { + "ID_VAR": { + "id": "Sb6x{_]VNPU@/f=L[2fU" + }, + "MODELS": "Block3.glb" + }, + "inputs": { + "SCALE": { + "shadow": { + "type": "math_number", + "id": "~SQvh(:F~?,fY4ZV1YTi", + "fields": { + "NUM": 1 + } + } + }, + "X": { + "shadow": { + "type": "math_number", + "id": "kj{!EgDll7f$cwT0r/h^", + "fields": { + "NUM": 0 + } + } + }, + "Y": { + "shadow": { + "type": "math_number", + "id": "H{Q$NpQA~=Bhlqy}T9s#", + "fields": { + "NUM": 0 + } + } + }, + "Z": { + "shadow": { + "type": "math_number", + "id": "$iTDT$oTg^N}De#Y3Bsi", + "fields": { + "NUM": 0 + } + } + }, + "HAIR_COLOR": { + "shadow": { + "type": "colour", + "id": "lp)$.YSr6yX_hQ|-^hGu", + "fields": { + "COLOR": "#000000" + } + } + }, + "SKIN_COLOR": { + "shadow": { + "type": "skin_colour", + "id": "6D_AN:|1DE4xucm{|r*.", + "fields": { + "COLOR": "#a15c33" + } + } + }, + "EYES_COLOR": { + "shadow": { + "type": "colour", + "id": "UK$/GJfM/LzKv`Ca!+mR", + "fields": { + "COLOR": "#000000" + } + } + }, + "TSHIRT_COLOR": { + "shadow": { + "type": "colour", + "id": "[lXA^]bsS=g$N@P7Qi4Y", + "fields": { + "COLOR": "#ff8f60" + } + } + }, + "SHORTS_COLOR": { + "shadow": { + "type": "colour", + "id": "fI-%rG?@[nm)W9u?34n3", + "fields": { + "COLOR": "#00008b" + } + } + }, + "SLEEVES_COLOR": { + "shadow": { + "type": "colour", + "id": "xYWm~v5{GJZn8_W?~Mfi", + "fields": { + "COLOR": "#008b8b" + } + } + } + }, + "next": { + "block": { + "type": "add_physics", + "id": "TtzA[)f:?5!!sc~Q4FzD", + "fields": { + "MODEL_VAR": { + "id": "Sb6x{_]VNPU@/f=L[2fU" + }, + "PHYSICS_TYPE": "DYNAMIC" + }, + "next": { + "block": { + "type": "camera_follow", + "id": "DLx$nO-U51;9uj!++eZ`", + "fields": { + "MESH_VAR": { + "id": "Sb6x{_]VNPU@/f=L[2fU" + }, + "FRONT": false + }, + "inputs": { + "RADIUS": { + "block": { + "type": "math_number", + "id": "7pr@*E?(V=r8GGG5qay:", + "fields": { + "NUM": 7 + } + } + } + } + } + } + } + } + } + } + } + }, + { + "type": "forever", + "id": "oI2WMh3h(O!rZ93+}yQS", + "x": 10, + "y": 598, + "extraState": "", + "inputs": { + "DO": { + "block": { + "type": "controls_if", + "id": "#f|5v20h/WLnVvV-N4cu", + "extraState": { + "elseIfCount": 3, + "hasElse": true + }, + "inputs": { + "IF0": { + "block": { + "type": "action_pressed", + "id": "!%s2]3q#ci..nu7G.VXz", + "fields": { + "ACTION": "FORWARD" + } + } + }, + "DO0": { + "block": { + "type": "move_forward", + "id": "nnNz{oL(vmWEyUpXPRF+", + "fields": { + "MODEL": { + "id": "Sb6x{_]VNPU@/f=L[2fU" + }, + "DIRECTION": "forward" + }, + "inputs": { + "SPEED": { + "shadow": { + "type": "math_number", + "id": "-Oeu{a$yN.;MSu(5gXn7", + "fields": { + "NUM": 3 + } + } + } + }, + "next": { + "block": { + "type": "procedures_callnoreturn", + "id": "MQ#Vq6EU0{BDOu}3Tpq^", + "extraState": { + "name": "walk or fly" + } + } + } + } + }, + "IF1": { + "block": { + "type": "action_pressed", + "id": "8`0j{H!)4cY;-4@kxkM7", + "fields": { + "ACTION": "BACKWARD" + } + } + }, + "DO1": { + "block": { + "type": "move_forward", + "id": "z0i$/C%fM|g/,A`8GakS", + "fields": { + "MODEL": { + "id": "Sb6x{_]VNPU@/f=L[2fU" + }, + "DIRECTION": "forward" + }, + "inputs": { + "SPEED": { + "shadow": { + "type": "math_number", + "id": "yxns.gN*J;MEPoid*n1`", + "fields": { + "NUM": -3 + } + } + } + }, + "next": { + "block": { + "type": "procedures_callnoreturn", + "id": "X.QBJeEDm0Td6}K?Qz4K", + "extraState": { + "name": "walk or fly" + } + } + } + } + }, + "IF2": { + "block": { + "type": "action_pressed", + "id": "QZMo{tLz+R@O7L?LMg6e", + "fields": { + "ACTION": "LEFT" + } + } + }, + "DO2": { + "block": { + "type": "move_forward", + "id": ".(lCV{b0/bG]sCw~IMuJ", + "fields": { + "MODEL": { + "id": "Sb6x{_]VNPU@/f=L[2fU" + }, + "DIRECTION": "sideways" + }, + "inputs": { + "SPEED": { + "shadow": { + "type": "math_number", + "id": "$h8Augidu$*N3S(c-;D6", + "fields": { + "NUM": -3 + } + } + } + }, + "next": { + "block": { + "type": "procedures_callnoreturn", + "id": "en+ssQFa1oQ5BTF+PNK.", + "extraState": { + "name": "walk or fly" + } + } + } + } + }, + "IF3": { + "block": { + "type": "action_pressed", + "id": "QxL]-u8hr`Mo]YU,pU4E", + "fields": { + "ACTION": "RIGHT" + } + } + }, + "DO3": { + "block": { + "type": "move_forward", + "id": "GJAl$C}5[Kn`|Y%mH78Z", + "fields": { + "MODEL": { + "id": "Sb6x{_]VNPU@/f=L[2fU" + }, + "DIRECTION": "sideways" + }, + "inputs": { + "SPEED": { + "shadow": { + "type": "math_number", + "id": "a=+%tNt(aX}N]vJU~V2T", + "fields": { + "NUM": 3 + } + } + } + }, + "next": { + "block": { + "type": "procedures_callnoreturn", + "id": "8m!yw$o8ke?=mAhs)yqz", + "extraState": { + "name": "walk or fly" + } + } + } + } + }, + "ELSE": { + "block": { + "type": "procedures_callnoreturn", + "id": "b.@w95DFyk7jV83|y%)B", + "extraState": { + "name": "stand or fly" + } + } + } + } + } + } + } + }, + { + "type": "procedures_defnoreturn", + "id": "@F;xrcoH.TNUBwr[[l$S", + "x": 10, + "y": 1438, + "fields": { + "NAME": "walk or fly" + }, + "inputs": { + "STACK": { + "block": { + "type": "controls_if", + "id": "kn:+9YT,xYLB`NUpe9+v", + "extraState": { + "hasElse": true + }, + "inputs": { + "IF0": { + "block": { + "type": "touching_surface", + "id": "r,_9l:klf54fn9;vuWpk", + "fields": { + "MODEL_VAR": { + "id": "Sb6x{_]VNPU@/f=L[2fU" + } + } + } + }, + "DO0": { + "block": { + "type": "switch_animation", + "id": "OW${xAYurN|xTuo2gsBO", + "fields": { + "MODEL": { + "id": "Sb6x{_]VNPU@/f=L[2fU" + } + }, + "inputs": { + "ANIMATION_NAME": { + "shadow": { + "type": "animation_name", + "id": ")WhFvV[Cj5(]L~.yVnN6", + "fields": { + "ANIMATION_NAME": "Walk" + } + } + } + } + } + }, + "ELSE": { + "block": { + "type": "switch_animation", + "id": "T.=W*P]3(:$TN,KiM-NE", + "fields": { + "MODEL": { + "id": "Sb6x{_]VNPU@/f=L[2fU" + } + }, + "inputs": { + "ANIMATION_NAME": { + "shadow": { + "type": "animation_name", + "id": ";^Yu2/xtVz65z|SQPe:9", + "fields": { + "ANIMATION_NAME": "Fly" + } + } + } + } + } + } + } + } + } + } + }, + { + "type": "procedures_defnoreturn", + "id": "w^37]AB#f?D_3]0BZT+f", + "x": 10, + "y": 1782, + "fields": { + "NAME": "stand or fly" + }, + "inputs": { + "STACK": { + "block": { + "type": "controls_if", + "id": "nXI@yqFKWl/{I;UL3MpY", + "extraState": { + "hasElse": true + }, + "inputs": { + "IF0": { + "block": { + "type": "touching_surface", + "id": "BsW6S9-8J]WjUdih-5])", + "fields": { + "MODEL_VAR": { + "id": "Sb6x{_]VNPU@/f=L[2fU" + } + } + } + }, + "DO0": { + "block": { + "type": "switch_animation", + "id": "dp,nzNdK8Yc{ls]Iq78i", + "fields": { + "MODEL": { + "id": "Sb6x{_]VNPU@/f=L[2fU" + } + }, + "inputs": { + "ANIMATION_NAME": { + "shadow": { + "type": "animation_name", + "id": "eT1D:@5zi`o]Z,x!E#4)", + "fields": { + "ANIMATION_NAME": "Idle" + } + } + } + } + } + }, + "ELSE": { + "block": { + "type": "switch_animation", + "id": "sWD.G)DxETc#-|(u8r-x", + "fields": { + "MODEL": { + "id": "Sb6x{_]VNPU@/f=L[2fU" + } + }, + "inputs": { + "ANIMATION_NAME": { + "shadow": { + "type": "animation_name", + "id": "aDLGZ:Q,rm*bZPt+nwf%", + "fields": { + "ANIMATION_NAME": "Fly" + } + } + } + } + } + } + } + } + } + } + } + ] + }, + "variables": [ + { + "name": "player", + "id": "Sb6x{_]VNPU@/f=L[2fU" + } + ] +} \ No newline at end of file diff --git a/index.html b/index.html index 860fcaaf..110b973c 100644 --- a/index.html +++ b/index.html @@ -885,10 +885,11 @@