Posprzątaj pokój
Owoce do koszyka, zabawki do pudełka, pluszaki na poduszki. Kosze mieszczą wiele elementów (capacity: many), poduszki po jednym (capacity: 1); zły ruch wraca na miejsce, dobry zostaje zablokowany.
- Schemat
- v2.0
- Wymagane funkcje
element.imageelement.textelement.componentelement.targetvisual.textcomponent.draggabletarget.capacitytarget.snaprule.placeaction.play-soundaction.lockaction.returnaction.emit-particles- Componenty
imagetexttargetcomponent












Posprzątaj pokój: owoce do koszyka, zabawki do pudełka, a pluszaki na poduszki.
Jak otworzyć w edytorze
- Kliknij Otwórz w edytorze — GS Editor otworzy się z wczytanym ćwiczeniem (scena i zasoby).
- Albo kliknij Pobierz ćwiczenie (ZIP z
projekt.json,images/isounds/) i w oknie startowym edytora wybierz Otwórz ZIP.
Plik ćwiczenia
Pokaż JSON (11 552 znaki)
{
"schema": "2.0",
"requires": [
"element.image",
"element.text",
"element.component",
"element.target",
"visual.text",
"component.draggable",
"target.capacity",
"target.snap",
"rule.place",
"action.play-sound",
"action.lock",
"action.return",
"action.emit-particles"
],
"id": "baskets",
"size": {
"width": 1200,
"height": 675
},
"languages": [
"pl",
"en"
],
"defaultLanguage": "pl",
"assets": [
{
"id": "room",
"kind": "image",
"src": {
"default": "images/room.png"
}
},
{
"id": "basket",
"kind": "image",
"src": {
"default": "images/basket.png"
}
},
{
"id": "box",
"kind": "image",
"src": {
"default": "images/box.png"
}
},
{
"id": "tile",
"kind": "image",
"src": {
"default": "images/tile.png"
}
},
{
"id": "apple",
"kind": "image",
"src": {
"default": "images/apple.png"
}
},
{
"id": "pear",
"kind": "image",
"src": {
"default": "images/pear.png"
}
},
{
"id": "banana",
"kind": "image",
"src": {
"default": "images/banana.png"
}
},
{
"id": "ball",
"kind": "image",
"src": {
"default": "images/ball.png"
}
},
{
"id": "car",
"kind": "image",
"src": {
"default": "images/car.png"
}
},
{
"id": "cat",
"kind": "image",
"src": {
"default": "images/cat.png"
}
},
{
"id": "bear",
"kind": "image",
"src": {
"default": "images/bear.png"
}
},
{
"id": "correct",
"kind": "audio",
"src": {
"default": "sounds/correct.wav"
}
},
{
"id": "wrong",
"kind": "audio",
"src": {
"default": "sounds/wrong.wav"
}
},
{
"id": "pick-up",
"kind": "audio",
"src": {
"default": "sounds/pick-up.wav"
}
},
{
"id": "drop",
"kind": "audio",
"src": {
"default": "sounds/drop.wav"
}
},
{
"id": "win",
"kind": "audio",
"src": {
"default": "sounds/win.wav"
}
}
],
"elements": [
{
"id": "background",
"type": "image",
"rect": [
0,
0,
1200,
675
],
"layer": 0,
"visual": {
"type": "image",
"asset": "room"
}
},
{
"id": "instruction",
"type": "text",
"rect": [
72,
20,
1056,
80
],
"layer": 5,
"visual": {
"type": "text",
"text": {
"pl": "Posprzątaj pokój: owoce do <b>koszyka</b>, zabawki do <b>pudełka</b>, a pluszaki na <b>poduszki</b>.",
"en": "Tidy up the room: fruit in the <b>basket</b>, toys in the <b>box</b> and plush toys on the <b>cushions</b>."
},
"size": 28,
"color": "#5a3a22",
"align": "center"
}
},
{
"id": "basket",
"type": "target",
"rect": [
60,
240,
270,
243
],
"layer": 1,
"visual": {
"type": "image",
"asset": "basket"
},
"capacity": "many",
"snap": {
"mode": "none"
},
"on": {
"correct": [
{
"do": "play-sound",
"asset": "correct"
},
{
"do": "lock",
"target": "dropped"
},
{
"do": "emit-particles",
"target": "dropped"
}
],
"wrong": [
{
"do": "play-sound",
"asset": "wrong"
},
{
"do": "return",
"target": "dropped"
}
]
}
},
{
"id": "box",
"type": "target",
"rect": [
405,
238,
245,
245
],
"layer": 1,
"visual": {
"type": "image",
"asset": "box"
},
"capacity": "many",
"snap": {
"mode": "none"
},
"on": {
"correct": [
{
"do": "play-sound",
"asset": "correct"
},
{
"do": "lock",
"target": "dropped"
},
{
"do": "emit-particles",
"target": "dropped"
}
],
"wrong": [
{
"do": "play-sound",
"asset": "wrong"
},
{
"do": "return",
"target": "dropped"
}
]
}
},
{
"id": "cushion-1",
"type": "target",
"rect": [
725,
313,
170,
170
],
"layer": 1,
"visual": {
"type": "image",
"asset": "tile"
},
"capacity": 1,
"on": {
"correct": [
{
"do": "play-sound",
"asset": "correct"
},
{
"do": "lock",
"target": "dropped"
},
{
"do": "emit-particles",
"target": "dropped"
}
],
"wrong": [
{
"do": "play-sound",
"asset": "wrong"
},
{
"do": "return",
"target": "dropped"
}
]
}
},
{
"id": "cushion-2",
"type": "target",
"rect": [
970,
313,
170,
170
],
"layer": 1,
"visual": {
"type": "image",
"asset": "tile"
},
"capacity": 1,
"on": {
"correct": [
{
"do": "play-sound",
"asset": "correct"
},
{
"do": "lock",
"target": "dropped"
},
{
"do": "emit-particles",
"target": "dropped"
}
],
"wrong": [
{
"do": "play-sound",
"asset": "wrong"
},
{
"do": "return",
"target": "dropped"
}
]
}
},
{
"id": "apple",
"type": "component",
"rect": [
70,
545,
100,
100
],
"layer": 3,
"visual": {
"type": "image",
"asset": "apple"
},
"draggable": {
"bounds": "scene",
"hit": "pixels"
},
"on": {
"drag-start": [
{
"do": "play-sound",
"asset": "pick-up"
}
],
"drop-outside": [
{
"do": "play-sound",
"asset": "drop"
},
{
"do": "return",
"target": "self"
}
]
}
},
{
"id": "ball",
"type": "component",
"rect": [
230,
545,
100,
100
],
"layer": 3,
"visual": {
"type": "image",
"asset": "ball"
},
"draggable": {
"bounds": "scene",
"hit": "pixels"
},
"on": {
"drag-start": [
{
"do": "play-sound",
"asset": "pick-up"
}
],
"drop-outside": [
{
"do": "play-sound",
"asset": "drop"
},
{
"do": "return",
"target": "self"
}
]
}
},
{
"id": "cat",
"type": "component",
"rect": [
390,
545,
100,
100
],
"layer": 3,
"visual": {
"type": "image",
"asset": "cat"
},
"draggable": {
"bounds": "scene",
"hit": "pixels"
},
"on": {
"drag-start": [
{
"do": "play-sound",
"asset": "pick-up"
}
],
"drop-outside": [
{
"do": "play-sound",
"asset": "drop"
},
{
"do": "return",
"target": "self"
}
]
}
},
{
"id": "pear",
"type": "component",
"rect": [
550,
545,
100,
100
],
"layer": 3,
"visual": {
"type": "image",
"asset": "pear"
},
"draggable": {
"bounds": "scene",
"hit": "pixels"
},
"on": {
"drag-start": [
{
"do": "play-sound",
"asset": "pick-up"
}
],
"drop-outside": [
{
"do": "play-sound",
"asset": "drop"
},
{
"do": "return",
"target": "self"
}
]
}
},
{
"id": "car",
"type": "component",
"rect": [
710,
553,
100,
85
],
"layer": 3,
"visual": {
"type": "image",
"asset": "car"
},
"draggable": {
"bounds": "scene",
"hit": "pixels"
},
"on": {
"drag-start": [
{
"do": "play-sound",
"asset": "pick-up"
}
],
"drop-outside": [
{
"do": "play-sound",
"asset": "drop"
},
{
"do": "return",
"target": "self"
}
]
}
},
{
"id": "bear",
"type": "component",
"rect": [
870,
545,
100,
100
],
"layer": 3,
"visual": {
"type": "image",
"asset": "bear"
},
"draggable": {
"bounds": "scene",
"hit": "pixels"
},
"on": {
"drag-start": [
{
"do": "play-sound",
"asset": "pick-up"
}
],
"drop-outside": [
{
"do": "play-sound",
"asset": "drop"
},
{
"do": "return",
"target": "self"
}
]
}
},
{
"id": "banana",
"type": "component",
"rect": [
1030,
545,
100,
100
],
"layer": 3,
"visual": {
"type": "image",
"asset": "banana"
},
"draggable": {
"bounds": "scene",
"hit": "pixels"
},
"on": {
"drag-start": [
{
"do": "play-sound",
"asset": "pick-up"
}
],
"drop-outside": [
{
"do": "play-sound",
"asset": "drop"
},
{
"do": "return",
"target": "self"
}
]
}
}
],
"rule": {
"kind": "place",
"pairs": [
{
"components": [
"apple",
"pear",
"banana"
],
"targets": [
"basket"
]
},
{
"components": [
"ball",
"car"
],
"targets": [
"box"
]
},
{
"components": [
"cat",
"bear"
],
"targets": [
"cushion-1",
"cushion-2"
]
}
]
},
"on": {
"completed": [
{
"do": "play-sound",
"asset": "win"
}
]
}
}