Labirynt do gry

Projekt w grupie: tworzymy i testujemy program - Informatyka - klasa 4 (bloczki)

Program gry dzieli się na części. Pierwsza część rysuje planszę: tutaj labirynt ze ścian. Każda ściana to skok z podniesionym pisakiem na jej początek i odcinek do końca.

{"blocks": {"languageVersion": 0, "blocks": [{"type": "bw_pen", "fields": {"STATE": "up"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": -80}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": -80}}}}, "next": {"block": {"type": "bw_pen", "fields": {"STATE": "down"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": 80}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": -80}}}}, "next": {"block": {"type": "bw_pen", "fields": {"STATE": "up"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": 80}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": -80}}}}, "next": {"block": {"type": "bw_pen", "fields": {"STATE": "down"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": 80}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": 80}}}}, "next": {"block": {"type": "bw_pen", "fields": {"STATE": "up"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": 80}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": 80}}}}, "next": {"block": {"type": "bw_pen", "fields": {"STATE": "down"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": -80}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": 80}}}}, "next": {"block": {"type": "bw_pen", "fields": {"STATE": "up"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": -80}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": 80}}}}, "next": {"block": {"type": "bw_pen", "fields": {"STATE": "down"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": -80}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": -40}}}}, "next": {"block": {"type": "bw_pen", "fields": {"STATE": "up"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": -40}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": -80}}}}, "next": {"block": {"type": "bw_pen", "fields": {"STATE": "down"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": -40}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": 40}}}}, "next": {"block": {"type": "bw_pen", "fields": {"STATE": "up"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": 0}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": 80}}}}, "next": {"block": {"type": "bw_pen", "fields": {"STATE": "down"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": 0}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": -40}}}}, "next": {"block": {"type": "bw_pen", "fields": {"STATE": "up"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": 40}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": -80}}}}, "next": {"block": {"type": "bw_pen", "fields": {"STATE": "down"}, "next": {"block": {"type": "bw_goto", "inputs": {"X": {"shadow": {"type": "math_number", "fields": {"NUM": 40}}}, "Y": {"shadow": {"type": "math_number", "fields": {"NUM": 40}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}, "x": 20, "y": 20}]}}

Ładowanie interaktywnego edytora... Jeśli się nie pojawi, włącz JavaScript.

Wszystkie lekcje kursu Informatyka - klasa 4·Zaloguj się, aby zapisać postęp na koncie.