Skip to content
984 changes: 984 additions & 0 deletions examples/flyer.flock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -885,10 +885,11 @@ <h2 id="modal-title" data-i18n="about_heading" style="margin-top: 0;">About Floc
<option data-i18n="physics_fun" value="examples/physics_fun.flock">👆🏾 Physics fun</option>
<option data-i18n="collect_the_gems" value="examples/collect_the_gems.flock">💎 Collect the gems</option>
<option data-i18n="water_map" value="examples/water_map.flock">💧 Water map</option>
<option data-i18n="flyer" value="examples/flyer.flock">🪽 Flyer!</option>
<option data-i18n="skittles" value="examples/skittles.flock">🎳 Skittles</option>
<option data-i18n="beetle" value="examples/beetle.flock">🪲 Beetle</option>
<option data-i18n="roominator" value="examples/roominator.flock">🛋️ Roominator</option>
<option data-i18n="sit_down" value="examples/sit_down.flock">🪑 Sit down</option>
<option data-i18n="sit_down" value="examples/sit_down.flock">🪑 Sit down</option>
<option data-i18n="ball_pit" value="examples/ball_pit.flock">🟠 Ball pit</option>
<option data-i18n="ur_enough" value="examples/ur_enough.flock">💗 UR enough!</option>
<option data-i18n="tallest_buildings" value="examples/tallest_buildings.flock">📊 Tallest buildings</option>
Expand Down
1 change: 1 addition & 0 deletions locale/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,7 @@ export default {
physics_fun_ui: "👆🏾 Physik-Spaß",
collect_the_gems_ui: "💎 Sammle die Edelsteine",
water_map_ui: "💧 Wasserkarte",
flyer_ui: "🪽 Fliegende!",
skittles_ui: "🎳 Kegeln",
beetle_ui: "🪲 Käfer",
roominator_ui: "🛋️ Raum-Designer",
Expand Down
1 change: 1 addition & 0 deletions locale/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,7 @@ export default {
physics_fun_ui: "👆🏾 Physics fun",
collect_the_gems_ui: "💎 Collect the gems",
water_map_ui: "💧 Water map",
flyer_ui: "🪽 Flyer!",
skittles_ui: "🎳 Skittles",
beetle_ui: "🪲 Beetle",
roominator_ui: "🛋️ Roominator",
Expand Down
1 change: 1 addition & 0 deletions locale/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@ export default {
physics_fun_ui: "👆🏾 Diversión Física", // human
collect_the_gems_ui: "💎 Recoger las Gemas", // human
water_map_ui: "💧 Mapa de Agua", // human
flyer_ui: "🪽 Aviador!", // human
skittles_ui: "🎳 Bolos", // human
beetle_ui: "🪲 Escarabajo", // human
roominator_ui: "🛋️ Habitación", // human
Expand Down
1 change: 1 addition & 0 deletions locale/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,7 @@ export default {
physics_fun_ui: "👆🏾 Physique amusante",
collect_the_gems_ui: "💎 Ramasse les gemmes",
water_map_ui: "💧 Carte aquatique",
flyer_ui: "🪽 Pilote!",
skittles_ui: "🎳 Quilles",
beetle_ui: "🪲 Scarabée",
roominator_ui: "🛋️ Roominator",
Expand Down
1 change: 1 addition & 0 deletions locale/it.js
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,7 @@ export default {
physics_fun_ui: "👆🏾 Divertimento fisica",
collect_the_gems_ui: "💎 Raccogli le gemme",
water_map_ui: "💧 Mappa d’acqua",
flyer_ui: "🪽 Aviatore!",
skittles_ui: "🎳 Birilli",
beetle_ui: "🪲 Coleottero",
roominator_ui: "🛋️ Roominator",
Expand Down
1 change: 1 addition & 0 deletions locale/pl.js
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@ export default {
physics_fun_ui: "👆🏾 Fizyka zabawa",
collect_the_gems_ui: "💎 Zbierz klejnoty",
water_map_ui: "💧 Mapa wodna",
flyer_ui: "🪽 Pilot!",
skittles_ui: "🎳 Skittles",
beetle_ui: "🪲 Żuk",
roominator_ui: "🛋️ Roominator",
Expand Down
1 change: 1 addition & 0 deletions locale/pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,7 @@ export default {
physics_fun_ui: "👆🏾 Diversão com Física",
collect_the_gems_ui: "💎 Apanha as Gemas",
water_map_ui: "💧 Mapa de Água",
flyer_ui: "🪽 Piloto!",
skittles_ui: "🎳 Skittles",
beetle_ui: "🪲 Escaravelho",
roominator_ui: "🛋️ Roominator",
Expand Down
1 change: 1 addition & 0 deletions locale/sv.js
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,7 @@ export default {
physics_fun_ui: "👆🏾 Fysiklek",
collect_the_gems_ui: "💎 Samla ädelstenarna",
water_map_ui: "💧 Vattenkarta",
flyer_ui: "🪽 Flygare!",
skittles_ui: "🎳 Käglor",
beetle_ui: "🪲 Skalbagge",
roominator_ui: "🛋️ Rumsdesign",
Expand Down
153 changes: 145 additions & 8 deletions toolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -4193,16 +4193,153 @@ const toolboxSnippetsMovement = {
},
},
inputs: {
ANIMATION_NAME:
{
shadow: {
type: "animation_name",
fields: {
ANIMATION_NAME:
"Idle",
},
ANIMATION_NAME: {
shadow: {
type: "animation_name",
fields: {
ANIMATION_NAME:
"Idle",
},
},
},
},
},
},
},
},
},
},
},
{
kind: "block",
type: "procedures_defnoreturn",
fields: {
NAME: "walk or fly",
},
inputs: {
STACK: {
block: {
type: "controls_if",
extraState: {
hasElse: true,
},
inputs: {
IF0: {
block: {
type: "touching_surface",
fields: {
MODEL_VAR: {
name: "player",
},
},
},
},
DO0: {
block: {
type: "switch_animation",
fields: {
MODEL: {
name: "player",
},
},
inputs: {
ANIMATION_NAME: {
shadow: {
type: "animation_name",
fields: {
ANIMATION_NAME: "Walk",
},
},
},
},
},
},
ELSE: {
block: {
type: "switch_animation",
fields: {
MODEL: {
name: "player",
},
},
inputs: {
ANIMATION_NAME: {
shadow: {
type: "animation_name",
fields: {
ANIMATION_NAME: "Fly",
},
},
},
},
},
},
},
},
},
},
},
{
kind: "block",
type: "procedures_defnoreturn",
fields: {
NAME: "stand or fly",
},
inputs: {
STACK: {
block: {
type: "controls_if",
extraState: {
hasElse: true,
},
inputs: {
IF0: {
block: {
type: "touching_surface",
fields: {
MODEL_VAR: {
name: "player",
},
},
},
},
DO0: {
block: {
type: "switch_animation",
fields: {
MODEL: {
name: "player",
},
},
inputs: {
ANIMATION_NAME: {
shadow: {
type: "animation_name",
fields: {
ANIMATION_NAME: "Idle",
},
},
},
},
},
},
ELSE: {
block: {
type: "switch_animation",
fields: {
MODEL: {
name: "player",
},
},
inputs: {
ANIMATION_NAME: {
shadow: {
type: "animation_name",
fields: {
ANIMATION_NAME: "Fly",
},
},
},
},
},
},
Expand Down