Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.json">👆🏾 Physics fun</option>
<option data-i18n="collect_the_gems" value="examples/collect_the_gems.json">💎 Collect the gems</option>
<option data-i18n="water_map" value="examples/water_map.json">💧 Water map</option>
<option data-i18n="flyer" value="examples/flyer.flock">🪽 Flyer!</option>
<option data-i18n="skittles" value="examples/skittles.json">🎳 Skittles</option>
<option data-i18n="beetle" value="examples/beetle.json">🪲 Beetle</option>
<option data-i18n="roominator" value="examples/roominator.json">🛋️ Roominator</option>
<option data-i18n="sit_down" value="examples/sit_down.json">🪑 Sit down</option>
<option data-i18n="sit_down" value="examples/sit_down.json">🪑 Sit down</option>
<option data-i18n="ball_pit" value="examples/ball_pit.json">🟠 Ball pit</option>
<option data-i18n="ur_enough" value="examples/ur_enough.json">💗 UR enough!</option>
<option data-i18n="tallest_buildings" value="examples/tallest_buildings.json">📊 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 @@ -940,6 +940,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 @@ -920,6 +920,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 @@ -929,6 +929,7 @@ export default {
physics_fun_ui: "👆🏾 Diversión Física",
collect_the_gems_ui: "💎 Recoger las Gemas",
water_map_ui: "💧 Mapa de Agua",
flyer_ui: "🪽 Aviador!",
skittles_ui: "🎳 Bolos",
beetle_ui: "🪲 Escarabajo",
roominator_ui: "🛋️ Roominator",
Expand Down
1 change: 1 addition & 0 deletions locale/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,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 @@ -932,6 +932,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 @@ -932,6 +932,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 @@ -926,6 +926,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 @@ -926,6 +926,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 @@ -4184,16 +4184,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