diff --git a/ar-SA/images/add-friend-projects.png b/ar-SA/images/add-friend-projects.png new file mode 100644 index 000000000..3ad5bafed Binary files /dev/null and b/ar-SA/images/add-friend-projects.png differ diff --git a/ar-SA/images/add-sound.png b/ar-SA/images/add-sound.png new file mode 100644 index 000000000..123e3628f Binary files /dev/null and b/ar-SA/images/add-sound.png differ diff --git a/ar-SA/images/add-your-projects.png b/ar-SA/images/add-your-projects.png new file mode 100644 index 000000000..016bd757d Binary files /dev/null and b/ar-SA/images/add-your-projects.png differ diff --git a/ar-SA/images/banner.png b/ar-SA/images/banner.png new file mode 100644 index 000000000..f9ac6e053 Binary files /dev/null and b/ar-SA/images/banner.png differ diff --git a/ar-SA/images/choose-backdrop-icon.png b/ar-SA/images/choose-backdrop-icon.png new file mode 100644 index 000000000..6d7d7e298 Binary files /dev/null and b/ar-SA/images/choose-backdrop-icon.png differ diff --git a/ar-SA/images/choose-sprite-icon.png b/ar-SA/images/choose-sprite-icon.png new file mode 100644 index 000000000..7b04d235d Binary files /dev/null and b/ar-SA/images/choose-sprite-icon.png differ diff --git a/ar-SA/images/create-studio.png b/ar-SA/images/create-studio.png new file mode 100644 index 000000000..0ce2440f2 Binary files /dev/null and b/ar-SA/images/create-studio.png differ diff --git a/ar-SA/images/customer-count.png b/ar-SA/images/customer-count.png new file mode 100644 index 000000000..8db070ee9 Binary files /dev/null and b/ar-SA/images/customer-count.png differ diff --git a/ar-SA/images/dont-fall-in-project.png b/ar-SA/images/dont-fall-in-project.png new file mode 100644 index 000000000..003a7787c Binary files /dev/null and b/ar-SA/images/dont-fall-in-project.png differ diff --git a/ar-SA/images/example-strip.png b/ar-SA/images/example-strip.png new file mode 100644 index 000000000..cecace153 Binary files /dev/null and b/ar-SA/images/example-strip.png differ diff --git a/ar-SA/images/fruit.png b/ar-SA/images/fruit.png new file mode 100644 index 000000000..b6fc6c82a Binary files /dev/null and b/ar-SA/images/fruit.png differ diff --git a/ar-SA/images/icecream.png b/ar-SA/images/icecream.png new file mode 100644 index 000000000..94a89af6b Binary files /dev/null and b/ar-SA/images/icecream.png differ diff --git a/ar-SA/images/item-amounts.png b/ar-SA/images/item-amounts.png new file mode 100644 index 000000000..3ff1bd9f7 Binary files /dev/null and b/ar-SA/images/item-amounts.png differ diff --git a/ar-SA/images/large-readout.png b/ar-SA/images/large-readout.png new file mode 100644 index 000000000..d63c1345c Binary files /dev/null and b/ar-SA/images/large-readout.png differ diff --git a/ar-SA/images/my-stuff-menu.png b/ar-SA/images/my-stuff-menu.png new file mode 100644 index 000000000..ad6992761 Binary files /dev/null and b/ar-SA/images/my-stuff-menu.png differ diff --git a/ar-SA/images/naming-studio.png b/ar-SA/images/naming-studio.png new file mode 100644 index 000000000..dc25e716e Binary files /dev/null and b/ar-SA/images/naming-studio.png differ diff --git a/ar-SA/images/new-variable.png b/ar-SA/images/new-variable.png new file mode 100644 index 000000000..d1cec0e15 Binary files /dev/null and b/ar-SA/images/new-variable.png differ diff --git a/ar-SA/images/quiz2.png b/ar-SA/images/quiz2.png new file mode 100644 index 000000000..0af1a6d23 Binary files /dev/null and b/ar-SA/images/quiz2.png differ diff --git a/ar-SA/images/sprite-pane-size.png b/ar-SA/images/sprite-pane-size.png new file mode 100644 index 000000000..568608788 Binary files /dev/null and b/ar-SA/images/sprite-pane-size.png differ diff --git a/ar-SA/images/step2-image.png b/ar-SA/images/step2-image.png new file mode 100644 index 000000000..ec1ef5c00 Binary files /dev/null and b/ar-SA/images/step2-image.png differ diff --git a/ar-SA/images/step3-image.png b/ar-SA/images/step3-image.png new file mode 100644 index 000000000..0e44b3c61 Binary files /dev/null and b/ar-SA/images/step3-image.png differ diff --git a/ar-SA/images/step4-image.png b/ar-SA/images/step4-image.png new file mode 100644 index 000000000..df5d98b1e Binary files /dev/null and b/ar-SA/images/step4-image.png differ diff --git a/ar-SA/images/studio-example.png b/ar-SA/images/studio-example.png new file mode 100644 index 000000000..f91ad3daa Binary files /dev/null and b/ar-SA/images/studio-example.png differ diff --git a/ar-SA/images/tshirt.png b/ar-SA/images/tshirt.png new file mode 100644 index 000000000..2afeabeac Binary files /dev/null and b/ar-SA/images/tshirt.png differ diff --git a/ar-SA/images/upgrade-image.png b/ar-SA/images/upgrade-image.png new file mode 100644 index 000000000..fd299a7db Binary files /dev/null and b/ar-SA/images/upgrade-image.png differ diff --git a/ar-SA/images/vending.png b/ar-SA/images/vending.png new file mode 100644 index 000000000..4db3818a7 Binary files /dev/null and b/ar-SA/images/vending.png differ diff --git a/ar-SA/meta.yml b/ar-SA/meta.yml new file mode 100644 index 000000000..32005987c --- /dev/null +++ b/ar-SA/meta.yml @@ -0,0 +1,37 @@ +--- +title: الزبون التالي +hero_image: images/banner.png +description: مشروع محاكاة متجر حيث يستطيع العميل شراء السلع. +meta_title: مشاريع البرمجة باستخدام منصة سكراتش للأطفال والمراهقين | اللحاق بالباص +meta_description: تعلم لغة Scratch من خلال مشاريع البرمجة التي تقدمها مؤسسة Raspberry Pi للأطفال والمراهقين. اصنع تطبيق Scratch حيث يمكن للعميل شراء العناصر من متجرك. +version: 4 +listed: true +copyedit: false +last_tested: "2021-03-26" +steps: + - + title: ماذا ستصنع + - + title: متجرك + - + title: عينات للبيع + completion: + - engaged + - + title: عمليات الشراء + completion: + - internal + - + title: اختبار سريع + knowledge_quiz: + path: quiz1 + version: 1 + questions: 3 + passing_score: 3 + completion: + - external + - + title: الوصول إلى المدار + challenge: true + - + title: قم بترقية او تطوير مشروعك diff --git a/ar-SA/quiz1/question_1.md b/ar-SA/quiz1/question_1.md new file mode 100644 index 000000000..427cbc6de --- /dev/null +++ b/ar-SA/quiz1/question_1.md @@ -0,0 +1,73 @@ +## اختبار سريع + +أجب على الاسئلة الثلاثة. هناك تلميحات لإرشادك إلى الإجابة الصحيحة. + +عندما تجيب على كل سؤال، انقر فوق **تحقق من إجابتي**. + +استمتع! + +--- question --- + +--- +legend: Question 1 of 3 +--- + +يستخدم مشروع متجر متغير الــ`المجموع`{: class = "block3variables"} لتخزين الإجمالي لكل عميل. + ++ يضيف العميل العناصر التي يبلغ مجموعها `50` ويدفعها ++ يضيف عميل جديد العناصر التي يبلغ إجماليها `40` ولكن ` إجمالي `{: class = "block3variables"} يظهر الآن على أنه `90` للعميل الثاني + +ما اللبنة او المقطع البرمجي الذي ستحتاج إلى إضافتها إلى المقطع البرمجي للدفع حتى يعود الإجمالي إلى `0` عندما يدفع كل عميل؟ + +--- choices --- + +- ( ) +```blocks3 +change [total v] by [0] +``` + + --- feedback --- + +ليس تمامًا ، `إجمالي`{: class = "block3variables"} يجب أن يكون `0` بعد أن يدفع العميل ، ولكنه ليس لبنة `غير`{: class = "block3variables"} التي تحتاجها. + + --- /feedback --- + +- ( ) +```blocks3 +set [total v] to [40] +``` + + --- feedback --- + + ليس تمامًا ، فقد يعمل هذا مع الزبون`: class = "block3variables"} سيكون خطأ للزبائن الآخرين.

+ +

--- /feedback ---

+ + + +
set [total v] to [0]
+`
+ + --- feedback --- + +هذا صحيح. تحتاج إلى `اجعل`{: class = "block3variables"} `مجموع`{: class = "block3variables"} على `0` بعد أن يدفع كل زبون. + + --- /feedback --- + +- ( ) + +```blocks3 +change [total v] by [-50] +``` + + --- feedback --- + +سيعمل هذا في هذا المثال ، ولكن ماذا لو أنفق الزبون الأول مبلغًا مختلفًا؟ يجب أن يعمل الحل الخاص بك عندما ينفق العميل السابق مبالغ مختلفة. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/ar-SA/quiz1/question_2.md b/ar-SA/quiz1/question_2.md new file mode 100644 index 000000000..41907328b --- /dev/null +++ b/ar-SA/quiz1/question_2.md @@ -0,0 +1,63 @@ + +--- question --- + +--- +legend: Question 2 of 3 +--- + +في المتجر، يكون لدى **البائع** المقطع البرمجي في نص الخروج + +```blocks3 +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds +else +say [Sorry to hear that.] for [2] seconds +end +``` + +عند تشغيل المقطع البرمجي ، يكتب المستخدم الإجابة "رائع". ماذا سوف يقول كائن**البائع**؟ + +![مربع "اسأل" مكتوبًا فيه كلمة "عظيم".](images/quiz2.png) + +--- choices --- + +- (x) سيقول ** البائع ** `اسف لسماع ذلك` + + --- feedback --- + + نعم. يعرف البشر أن كلمة "عظيم" تعني نفس معنى "جيد" ، لكن "=" تتحقق مما إذا كانت الأحرف متطابقة. + + الــ **الشرط** `إجابة`{: class = "block3sensing"} = `جيد` هي 'خطا' لذا فإن المقطع البرمجي`قل`{: class = "block3looks"} في جزء المقطع البرمجي `والا`{: class = "block3control"} سوف يعمل. + + --- /feedback --- + +- () **البائع**سوف يقول `هذا رائع` + + --- feedback --- + +لا ، فقط الإجابة `جيد` ستجعل** البائع ** يقول `هذا رائع!`. انظر إلى المقطع البرمجي مرة أخرى لمعرفة الرسالة التي سيقولها **البائع** لجميع الإجابات التي ليست `جيد`. + +**Tip:** 'Good' or 'GOOD' would match 'good'. + + --- /feedback --- + +- () البائع ** لم يقل أي شيء.

+ + --- feedback --- + +لا ، ** البائع ** سيقول شيئًا ما دائمًا. انظر بعناية إلى المقطع البرمجي لمعرفة ما ستكون الرسالة. + + --- /feedback --- + +- () **البائع**سوف يقول `رائع` + + --- feedback --- + +لا ، **الزبون** كتب الإجابة "رائع" لكن ** البائع ** لا يقول الإجابة. انظر بعناية إلى المطقع البرمجي لمعرفة ما ستكون الرسالة. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/ar-SA/quiz1/question_3.md b/ar-SA/quiz1/question_3.md new file mode 100644 index 000000000..8eafbe346 --- /dev/null +++ b/ar-SA/quiz1/question_3.md @@ -0,0 +1,48 @@ + +--- question --- + +--- +legend: Question 3 of 3 +--- + +Your project is not working. What should you do? + +--- choices --- + +- ( ) ذعر! + + --- feedback --- + + هذا لن يساعد. تحتاج إلى التفكير بوضوح لإصلاح مشاكل المقطع البرمجي. + + --- /feedback --- + +- ( ) يستسلم + + --- feedback --- + + There are lots of things you could try. غالبًا ما يخطئ المبرمجون الكبار في الأمور في المرة الأولى ويتعلمون الكثير من أخطائهم. + + --- /feedback --- + +- (x) اقرأ المقطع البرمجي بعناية وحاول تصحيحه. + + --- feedback --- + + نعم. إصلاح الخلل هو جزء من البرمجة. كلما مارست المزيد من الخبرة ، أصبح من الأسهل العثور على الأخطاء وإصلاحها. + + --- /feedback --- + +- () تنزعج من الحاسوب + + --- feedback --- + +الحاسوب يفعل فقط ما نطلب منه القيام به ، لذا فإن الانزعاج منه ليس منطقيًا. + +لن يساعد الانزعاج في حل المشكلة ، لأنه سيجعل التفكير أكثر صعوبة. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/ar-SA/scratch-comments.txt b/ar-SA/scratch-comments.txt new file mode 100644 index 000000000..076e1ea32 --- /dev/null +++ b/ar-SA/scratch-comments.txt @@ -0,0 +1,9 @@ +اكتب اسم عملك + +اسم عملك + +استخدم اسم كائن الحاوية + +الموقع عند البداية + +العميل السابق يأخذ الحقيبة diff --git a/ar-SA/scratch-translatable.txt b/ar-SA/scratch-translatable.txt new file mode 100644 index 000000000..772f51f63 --- /dev/null +++ b/ar-SA/scratch-translatable.txt @@ -0,0 +1,49 @@ +الاسم + +متجري + +زبون جديد + +الزبون التالي! + +المجموع + +هذا سيكون + +شكرا للتسوق + +هل ترغب في الدفع أو الإلغاء؟ + +دفع + +إلغاء + +موافق. لا مشكلة + +انقر فوق العناصر التي تريدها + +هل وجدت كل ما تريده اليوم؟ + +نعم + +هذا رائع! + +ربما يجب علي إضافة المزيد من العناصر إلى متجري + +حقيبة + +1 scoop + +cone + +متجر + +صحيح + +خاطئ + +كيف حالك اليوم؟ + +جيد + +آسف لسماع ذلك. diff --git a/ar-SA/solutions/Cool Shirts.sb3 b/ar-SA/solutions/Cool Shirts.sb3 new file mode 100644 index 000000000..5f674dddb Binary files /dev/null and b/ar-SA/solutions/Cool Shirts.sb3 differ diff --git a/ar-SA/solutions/Fresh Space Fruit.sb3 b/ar-SA/solutions/Fresh Space Fruit.sb3 new file mode 100644 index 000000000..7051f856e Binary files /dev/null and b/ar-SA/solutions/Fresh Space Fruit.sb3 differ diff --git a/ar-SA/solutions/Vending machine.sb3 b/ar-SA/solutions/Vending machine.sb3 new file mode 100644 index 000000000..4e0191208 Binary files /dev/null and b/ar-SA/solutions/Vending machine.sb3 differ diff --git a/ar-SA/solutions/ice cream shop.sb3 b/ar-SA/solutions/ice cream shop.sb3 new file mode 100644 index 000000000..4d02be2fb Binary files /dev/null and b/ar-SA/solutions/ice cream shop.sb3 differ diff --git a/ar-SA/step_1.md b/ar-SA/step_1.md new file mode 100644 index 000000000..f05a9f285 --- /dev/null +++ b/ar-SA/step_1.md @@ -0,0 +1,52 @@ +## سوف تصنع + +أنشئ تطبيق متجر حيث يمكن للعميل شراء سلع من متجرك. سيكون المشروع من منظور الشخص الأول حيث يكون اللاعب عميلاً. + +--- no-print --- + +Click on Space Fruit to buy them and watch the total go up. عندما تكون جاهزًا ، انقر فوق شخصية كيرن للمغادرة. + ++ What happens if you try to checkout before you have chosen any fruit? ++ How do you think the project knows that you haven't added any fruit yet? + +
+** فواكه الفضاء الطازجة **: [راجع الداخل] (https://scratch.mit.edu/projects/528696418/editor) {: target = "_blank"} +
+ +
+
+ +### احصل على أفكار 💭 + +انقر فوق ايقونة **البائع** في قائمة الكائنات: + +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +
+ +
+ +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +
+ +
+ +**، دبابيس برايد** (مشروع مجتمعي مميز) + +انقر على شارات دبوس برايد لإضافتها إلى حقيبة التسوق الخاصة بك: + +
+ +
+ +--- /no-print --- + +--- print-only --- + +### احصل على أفكار 💭 + +سوف تتخذ بعض قرارات التصميم لإنشاء شخصيتك. See inside example projects in the Scratch 2: Next customer please! Scratch studio at https://scratch.mit.edu/studios/29611454 + +![مثال للمشروع](images/fruit.png) ![مثال للمشروع](images/tshirt.png) ![مثال للمشروع](images/icecream.png) ![مثال للمشروع](images/vending.png) + +--- /print-only --- + diff --git a/ar-SA/step_2.md b/ar-SA/step_2.md new file mode 100644 index 000000000..1bdb67f5b --- /dev/null +++ b/ar-SA/step_2.md @@ -0,0 +1,80 @@ +## Your shop + +
+
+What is your shop idea? يمكن أن يكون شيئًا واقعيًا ، أو شيئًا من كتاب أو فيلم تحبه ، أو شيئًا سخيفًا تمامًا. +
+
+![](images/step2-image.png){:width="300px"} +
+
+ +--- task --- + +افتح [مشروع Scratch جديد](http://rpf.io/scratch-new){: target = "_ blank"} وانظر إلى مجموعة الكائنات والخلفيات التي يمكنك استخدامها. Spend some time thinking about your shop idea. + +--- /task --- + +--- task --- + +**Choose a Backdrop** or paint your own backdrop. + +![](images/choose-backdrop-icon.png) + ++ A backdrop from the Scratch library, or a plain coloured backdrop + +--- /task --- + +--- task --- + +**Choose a Sprite** and add or paint extra scenery sprites. + +![](images/choose-sprite-icon.png) + +--- /task --- + +--- task --- + +Add more scenery. ++ A desk, counter, or window to sell from ++ رف أو خزانة كتب لوضع الأشياء عليها - يمكنك رسم هذا على الخلفية + +--- /task --- + +--- task --- + +أضف كائنًا لتمثيل البائع. + +يمكنك الاختيار: ++ A person or non-player character such as a shopkeeper, farmer, or librarian ++ A machine such as a vending machine, jukebox, or cash register + +![](images/choose-sprite-icon.png) + +--- /task --- + +### Welcome your first customer. + +--- task --- + +Click on your **seller** sprite and add a `broadcast`{:class="block3events"} block. Create a new message called `next customer`. + +```blocks3 +when flag clicked ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +Create a new script for your **seller** sprite to `say`{:class="block3looks"} `Next customer please` when they receive the `broadcast`{:class="block3events"} `next customer`{:class="block3events"}. + +```blocks3 +when I receive [next customer v] +say [Next customer please!] for (2) seconds +``` + +--- /task --- + +--- save --- diff --git a/ar-SA/step_3.md b/ar-SA/step_3.md new file mode 100644 index 000000000..7f08e067c --- /dev/null +++ b/ar-SA/step_3.md @@ -0,0 +1,128 @@ +## بضاعه للبيع + +
+
+متجرك يحتاج إلى عناصر او مواد للبيع للبيع. سيكون لكل عنصر سعر سيتم إضافته إلى متغير `مجموع` {: class =" block3variables "}. +
+
+![](images/step3-image.png){:width="300px"} +
+
+ +ستحتاج الى متابعة مقدار ما ينفقه عميلك او زبونك. + +--- task --- + +أضف متغيرًا جديدًا يسمى `مجموع`{: class = "block3variables"} لجميع الكائنات. + +انقر على الكائن **البائع** وأضف مقطع برمجي إلى `اجعل`{: class = "block3variables"} `مجموع`{: class = "block3variables"} إلى `0` عند بدء المشروع. + +[[[scratch3-create-set-variable]]] + +--- /task --- + +ما ** العناصر ** سيشتريها عميلك (عملاؤك)؟ ++ نوع من الطعام أو الشراب ++ المعدات الرياضية ، الألعاب أو الأدوات ++ العصي السحرية ، عبوات أو الكتب الإملائية ++ الملابس أو عناصر الموضة الأخرى ++ Your own idea + +--- task --- + +أضف كائنًا لأول ** عنصر ** ستبيعه في متجرك. + +إذا أردت ، يمكنك إضافة سعر إلى المظهر باستخدام أداة النص في محرر الرسام. أو أضف سعرًا للخلفية وضع العنصر بجواره. + +![أمثلة على العناصر ذات المبالغ المكتوبة بجانبها.](images/item-amounts.png) + +--- /task --- + +--- task --- + +أضف نصًا إلى `غير`{: class = "block3variables"} `مجموع`{: class = "block3variables"} حسب سعر العنصر الخاص بك عندما ينقر العميل على الكائن. + +--- collapse --- +--- +title: Click to add an item +--- + +```blocks3 +when this sprite clicked +start sound (Coin v) +change [total v] by [10] +``` + +--- /collapse --- + +إنها فكرة جيدة أيضًا أن `بتشغيل صوت`{: class = "block3sound"} لإعطاء ملاحظات العملاء بأنهم قد أضافوا عنصرًا. + +![إضافة أيقونة الصوت](images/add-sound.png) + +[[[scratch3-add-sound]]] + +--- /task --- + +--- task --- + +**اختبار:** انقر فوق العنصر الخاص بك وتحقق من أن قيمة متغير `مجموع`{: class = "block3variables"} تزداد حسب سعر العنصر ، وستسمع المؤثر الصوتي. انقر فوق مرات أكثر لرؤية المجموع يرتفع. + +انقر فوق العلم الأخضر لبدء مشروعك وتأكد من أن `مجموع`{: class = "block3variables"} يبدأ عند `0`. + +--- /task --- + +--- task --- + +أضف المزيد من العناصر إلى متجرك. + +يمكنك ايضاً: ++ قم بتكرار العنصر الأول ثم قم بإضافة مظهر جديد في محرر الرسام ++ أضف كائنًا ثم اسحب `عند النقر على العلم `مقطع برمجي {: class = "block3events"} من العنصر الأول إلى العنصر الجديد + +أضف ملصق سعر إلى المظهر أو الخلفية إذا كنت تستخدمها. + +--- /task --- + +--- task --- + +انقر فوق الكائن الجديد **عنصر** في قائمة الكائن ثم انقر فوق علامة التبويب **المقاطع البرمجية**. + +غيّر المبلغ الذي يتغير `مجموع`{: class = "block3variables"} حسب سعر العنصر الجديد. + +--- /task --- + +--- task --- + +**اختبار:** انقر فوق العلم الأخضر لبدء مشروعك وانقر فوق العناصر لإضافتها. تأكد من أن المجموع يزيد بالمبلغ الصحيح في كل مرة تنقر فيها على عنصر. + +إذا كنت قد أضفت تسميات أسعار ، فتأكد من أنها تتطابق مع المبلغ الذي تمت إضافته إلى `مجموع ` وإلا الزبون يصبح حائر {: class = "block3variables"}. + +--- /task --- + +--- task --- + +**تصحيح:** قد تجد بعض الأخطاء في مشروعك والتي تحتاج إلى إصلاحها. فيما يلي بعض الأخطاء الشائعة. + +--- collapse --- +--- +title: The total doesn't go to 0 when I click the green flag +--- + +تأكد من أنك قمت بتعيين قيمة البداية للمتغير `المجموع`{: class = "block3variables"} في `عند النقر على العلم`{: class = "block3events"} البرنامج النصي على كائن **البائع**. + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't increase by the correct amount when I click on an item +--- + +تحقق من أن كل عنصر يحتوي على `عندما ينقر هذا الكائن على نص برمجي`{: class = "block3events"} يغير `مجموع`{: class = "block3variables"} بالمبلغ الصحيح لهذا العنصر - ربما تكون قد غيّرت سعر الكائن الخطأ. + +تأكد من أنك استخدمت المقطع البرمجي `change`{: class = "block3variables"} وليس المقطع البرمجي المجموعة `{: class = "block3variables"} لتغيير المجموع`{: class"block3variables"}. تحتاج إلى استخدام `غير`{: class = "block3variables"} لإضافة السعر إلى الإجمالي ، ولا تريد تعيين الإجمالي على سعر العنصر الذي تمت إضافته للتو. + +--- /collapse --- + +--- /task --- + +--- save --- diff --git a/ar-SA/step_4.md b/ar-SA/step_4.md new file mode 100644 index 000000000..e0bcc3ea1 --- /dev/null +++ b/ar-SA/step_4.md @@ -0,0 +1,141 @@ +## المشتريات + +
+
+ +يحتاج ** البائع ** sprite إلى: +- السؤال عما إذا كان العميل مستعدًا للدفع مقابل العناصر +- أخذ المبلغ +- الاستعداد للعميل التالي +
+
+![](images/step4-image.png){:width="300px"} +
+
+ +عندما ينتهون من اختيار العناصر ، سينقر العميل على الكائن **بائع** للدفع. + +--- task --- + + أخبر العميل كم ستكلف عناصره. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +``` + +--- /task --- + +--- task --- + +أضف صوت دفع إلى كائن البائع **البائع** حتى يعرف العميل أن الدفع جار. + +![إضافة أيقونة الصوت](images/add-sound.png) + +[[[scratch3-add-sound]]] + +أضف `صوت التشغيل حتى انتهاءه`{: class = "block3sound"} إلى المقطع البرمجي الخاص بك. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ play sound [machine v] until done +``` + +--- /task --- + +--- task --- + +قم بإنهاء البيع. قم بتعيين `مجموع`{: class = "block3variables"} مرة أخرى إلى `0` بعد الدفع ، و `قل`{: class = "block3looks"} وداعًا و `بث`{: class = "block3control"} `العميل التالي`{: class = "block3control"}. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +play sound [machine v] until done ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +**اختبار:** اختبر مشروعك وتأكد من: +- يمكن الزبون التحقق من المؤثرات الصوتية الصحيحة +- يتم إرجاع `مجموع`{: class = "block3variables"} إلى `0` بعد أن يدفع العميل أو يلغي. + +--- /task --- + + +--- task --- + +**تصحيح:** قد تجد بعض الأخطاء في مشروعك والتي تحتاج إلى إصلاحها. + +فيما يلي بعض الأخطاء الشائعة: + +--- collapse --- +--- +title: The seller doesn't do anything when I click on them +--- + +لديك الكثير من الكائنات في مشروعك. تأكد من أن `عند نقر هذا الكائن على`{: class = "block3events"} المقطع البرمجي موجود على **بائع** sprite. + +**نصيحة:** إذا قمت بإضافته إلى الكائن الخطأ ، يمكنك سحب المقطع البرمجي إلى الكائن **البائع** ، ثم حذفه من الكائن الآخر. + +--- /collapse --- + +--- collapse --- +--- +title: The words in the say blocks merge together +--- + +عندما ` تنضم `{: class = "block3operators"} الى قطعتين معًا ، فإنك تحتاج إلى إضافة مسافة في نهاية الجزء الأول من النص أو في بداية الجزء الثاني من النص. + +تحتوي هذه على مسافة في نهاية الجزء الأول من الصلة: + +```blocks3 +say {join [That will be ](total)} for (2) seconds + +say {join [Thanks for shopping at ](name)} for (2) seconds +``` + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't reset after a sale +--- + +تأكد من أنك قد استخدمت: + +```blocks3 +set [total v] to (0) +``` + +**وليس**: + +```blocks3 +change [total v] by (0) +``` + +--- /collapse --- + +--- collapse --- +--- +title: The seller isn't responding +--- + +تأكد من أن `العمليات`{: class = "block3operators"} في الشرط `if`{: class = "block3control"} هو أكبر من الرمز `>`{: class = "block3operators"}. + +```blocks3 +if <(total) > [0]> then +``` + +--- /collapse --- + +**نصيحة:** قارن المقطع البرمجي الخاص بك بأمثلة مقاطع اخرى. هل هناك اختلافات لا ينبغي أن تكون موجودة؟ + +--- /task --- + +--- save --- diff --git a/ar-SA/step_5.md b/ar-SA/step_5.md new file mode 100644 index 000000000..0e92a5fef --- /dev/null +++ b/ar-SA/step_5.md @@ -0,0 +1 @@ +## اختبار سريع \ No newline at end of file diff --git a/ar-SA/step_6.md b/ar-SA/step_6.md new file mode 100644 index 000000000..3f1153638 --- /dev/null +++ b/ar-SA/step_6.md @@ -0,0 +1,230 @@ +## تحدي + +
+
+هناك الكثير من الميزات التي يمكنك إضافتها لتحسين تجربة التسوق لعملائك. لا تحتاج إلى إضافة كل شيء. فقط أضف التحسينات التي تعتقد أنها مهمة. +
+
+![](images/customer-count.png){:width="300px"} +
+
+ +--- task --- + +أضف المزيد من العناصر للبيع. + +--- /task --- + +--- task --- + +أضف المزيد من المؤثرات الصوتية والرسومات. + +--- /task --- + +--- task --- + +ارسم المشهد الخاص بك والأزياء الأخرى. + +--- /task --- + +--- task --- + +قم بعمل نشاط تجاري آخر واسمح للاعبين بزيارتهم على حد سواء. + +--- /task --- + +يحتوي كل مشروع مثال في [مقدمة](.) على رابط انظر داخل لكي تفتح المشروع وتنظر إلى الرمز للحصول على أفكار ومعرفة كيفية عملها. يمكنك "رؤية ما بداخل" أمثلة المشاريع للنظر في كيفية عملها. + +Example projects: **Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Vending machine**: [See inside](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} + +**Tip:** If you are logged in to a Scratch account, then you can use the **Backpack** to copy scripts or sprites to your project. + +[[[scratch-backpack]]] + +### Chatty checkout! + +Your checkout person (or machine) could ask whether the service was good, or if the customer is having a nice day. + +--- task --- + +Add `ask`{:class="block3sensing"} blocks to your **seller**'s `when this sprite clicked`{:class="block3events"} script and `say`{:class="block3looks"} different things depending on the customer's response. + +--- collapse --- + +--- +title: Ask and respond to questions +--- + +```blocks3 +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds +else +say [Maybe I should add more items to my shop] for [2] seconds +end +``` + +**Debug:** Check that you have spelled the options correctly in your code and in your answer. It's OK if you use capital letters, so "Yes" and "YES" will match "yes". + +Add multiple questions to create a chatbot or non-player character that you can talk to. + +--- /collapse --- + +--- /task --- + +### Bag the items + +--- task --- + +The Cool Shirts project has shirts that glide into a bag. + +--- collapse --- + +--- +title: Make items glide into a container +--- + +Add a **Container** sprite. You could use an existing sprite like the **Gift** or **Take out** sprite, or paint your own with simple shapes. + +Add a script to make the **Container** always appear at the front: + +```blocks3 +when flag clicked +forever +go to [front v] layer +end +``` + +Then you'll need to add code to each **Item** you have for sale to make them glide to the container when they are clicked: + +```blocks3 +when this sprite clicked ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite ++hide +change [total v] by [12] ++go to x: [-180] y: [68] // start position ++show +``` + +If you don't want the container there all the time, you can add scripts to make it show and hide at the right time: + +```blocks3 +when I receive [next customer v] +hide // previous customer takes the bag +wait [1] seconds +show +``` + +**Test:** Try your project and make sure items glide to the container and hide. + +**Debug:** Check your scripts carefully and make sure you have updated all of your **Item** sprites. You can look at [Cool Shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} if you need to see a working example. + +--- /collapse --- + +--- /task --- + +###  Stop adding items when the customer is at the checkout + +--- task --- + +Add a `shop`{:class="block3variables"} variable and use it to control when items can be added. + +--- collapse --- + +--- +title: Stop purchases when the customer is at the checkout +--- + +Add a `variable`{:class="block3variables"} called `shop` for all sprites. You will set this to `true` when the customer is in the shop and `false` when they are at the checkout. + +Select your **seller** sprite. Update the `when flag clicked`{:class="block3events"} script to allow shopping when your project starts: + +```blocks3 ++set [shop v] to [true] +``` + +Now add a block to change the `shop`{:class="block3variables"} to `false` at the beginning of your **seller**'s `when this sprite clicked`{:class="block3events"} script: + +```blocks3 ++set [shop v] to [false] +``` + +And a block to set the `shop`{:class="block3variables"} variable back to `true` at the end of the same script: + +```blocks3 ++set [shop v] to [true] +``` + +Now you need to update the items you sell to check the `shop`{:class="block3variables"} variable: + +```blocks3 +when this sprite clicked ++if <(shop) = [true]> then +start sound (Coin v) +change [total v] by [10] +end +``` +You will need to do this for every item you sell in your shop. + +**Test:** Click the green flag then try shopping. Check that you can still add items and checkout, but you can't add items once you have started checking out. + +**Debug:** Check your code really carefully. You can look at the [Space Fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project if you need to see a working example. + +--- /collapse --- + +--- /task --- + +--- task --- + +### Give the customer the option to cancel their shopping. + +--- collapse --- + +--- +title: Set up pay and cancel options +--- + +`Ask`{:class="block3sensing"} `Would you like to pay or cancel?`. Add an `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `pay` and inside it put your existing payment blocks. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end +``` + +Add a second `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `cancel` and inside it add code to cancel the order. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] +end +``` + +--- /collapse --- + +--- /task --- + +Take a look at our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio to see projects created by community members. + +--- save --- diff --git a/ar-SA/step_7.md b/ar-SA/step_7.md new file mode 100644 index 000000000..29f1ca0c2 --- /dev/null +++ b/ar-SA/step_7.md @@ -0,0 +1,9 @@ +## شارك + +إذا كنت في نادٍ ، فلماذا لا تشارك مشروعك مع الأصدقاء؟ + +ألهم مجتمع Raspberry Pi Foundation بمشروعك! + +To submit your project to our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio, please complete [this form](https://form.raspberrypi.org/f/community-project-submissions){:target="_blank"}. + +![مثال لمشاريع متجر في استوديو سكراتش "سوق التسوق بين المجرات".](images/studio-example.png) diff --git a/ar-SA/step_8.md b/ar-SA/step_8.md new file mode 100644 index 000000000..14cc96818 --- /dev/null +++ b/ar-SA/step_8.md @@ -0,0 +1,21 @@ +## What can you do now? + +If you are following the [More Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch) path, you can move on to the [Don't fall in](https://projects.raspberrypi.org/en/projects/dont-fall-in) project. في هذا المشروع ، ستنشئ لعبة من أعلى إلى أسفل حيث يتعين عليك القفز من منصة إلى أخرى وعدم الوقوع فيها. + +--- print-only --- + +![لا تقع في المشروع](images/dont-fall-in-project.png) + +--- /print-only --- + +--- no-print --- + +
+ +
+ +**Instructions:** Press space or tap the Stage to jump. + +--- /no-print --- + +If you want to have more fun exploring Scratch, then you could try out any of [these projects](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). diff --git a/cs-CZ/images/add-friend-projects.png b/cs-CZ/images/add-friend-projects.png new file mode 100644 index 000000000..3ad5bafed Binary files /dev/null and b/cs-CZ/images/add-friend-projects.png differ diff --git a/cs-CZ/images/add-sound.png b/cs-CZ/images/add-sound.png new file mode 100644 index 000000000..123e3628f Binary files /dev/null and b/cs-CZ/images/add-sound.png differ diff --git a/cs-CZ/images/add-your-projects.png b/cs-CZ/images/add-your-projects.png new file mode 100644 index 000000000..016bd757d Binary files /dev/null and b/cs-CZ/images/add-your-projects.png differ diff --git a/cs-CZ/images/banner.png b/cs-CZ/images/banner.png new file mode 100644 index 000000000..f9ac6e053 Binary files /dev/null and b/cs-CZ/images/banner.png differ diff --git a/cs-CZ/images/choose-backdrop-icon.png b/cs-CZ/images/choose-backdrop-icon.png new file mode 100644 index 000000000..6d7d7e298 Binary files /dev/null and b/cs-CZ/images/choose-backdrop-icon.png differ diff --git a/cs-CZ/images/choose-sprite-icon.png b/cs-CZ/images/choose-sprite-icon.png new file mode 100644 index 000000000..7b04d235d Binary files /dev/null and b/cs-CZ/images/choose-sprite-icon.png differ diff --git a/cs-CZ/images/create-studio.png b/cs-CZ/images/create-studio.png new file mode 100644 index 000000000..0ce2440f2 Binary files /dev/null and b/cs-CZ/images/create-studio.png differ diff --git a/cs-CZ/images/customer-count.png b/cs-CZ/images/customer-count.png new file mode 100644 index 000000000..e2c6ce61a Binary files /dev/null and b/cs-CZ/images/customer-count.png differ diff --git a/cs-CZ/images/dont-fall-in-project.png b/cs-CZ/images/dont-fall-in-project.png new file mode 100644 index 000000000..003a7787c Binary files /dev/null and b/cs-CZ/images/dont-fall-in-project.png differ diff --git a/cs-CZ/images/example-strip.png b/cs-CZ/images/example-strip.png new file mode 100644 index 000000000..cecace153 Binary files /dev/null and b/cs-CZ/images/example-strip.png differ diff --git a/cs-CZ/images/fruit.png b/cs-CZ/images/fruit.png new file mode 100644 index 000000000..74b78e59a Binary files /dev/null and b/cs-CZ/images/fruit.png differ diff --git a/cs-CZ/images/icecream.png b/cs-CZ/images/icecream.png new file mode 100644 index 000000000..c72e20f83 Binary files /dev/null and b/cs-CZ/images/icecream.png differ diff --git a/cs-CZ/images/item-amounts.png b/cs-CZ/images/item-amounts.png new file mode 100644 index 000000000..9e6430405 Binary files /dev/null and b/cs-CZ/images/item-amounts.png differ diff --git a/cs-CZ/images/large-readout.png b/cs-CZ/images/large-readout.png new file mode 100644 index 000000000..a3859b991 Binary files /dev/null and b/cs-CZ/images/large-readout.png differ diff --git a/cs-CZ/images/my-stuff-menu.png b/cs-CZ/images/my-stuff-menu.png new file mode 100644 index 000000000..ad6992761 Binary files /dev/null and b/cs-CZ/images/my-stuff-menu.png differ diff --git a/cs-CZ/images/naming-studio.png b/cs-CZ/images/naming-studio.png new file mode 100644 index 000000000..dc25e716e Binary files /dev/null and b/cs-CZ/images/naming-studio.png differ diff --git a/cs-CZ/images/new-variable.png b/cs-CZ/images/new-variable.png new file mode 100644 index 000000000..d937fdd8a Binary files /dev/null and b/cs-CZ/images/new-variable.png differ diff --git a/cs-CZ/images/quiz2.png b/cs-CZ/images/quiz2.png new file mode 100644 index 000000000..b5fe0cfb0 Binary files /dev/null and b/cs-CZ/images/quiz2.png differ diff --git a/cs-CZ/images/sprite-pane-size.png b/cs-CZ/images/sprite-pane-size.png new file mode 100644 index 000000000..568608788 Binary files /dev/null and b/cs-CZ/images/sprite-pane-size.png differ diff --git a/cs-CZ/images/step2-image.png b/cs-CZ/images/step2-image.png new file mode 100644 index 000000000..f52394751 Binary files /dev/null and b/cs-CZ/images/step2-image.png differ diff --git a/cs-CZ/images/step3-image.png b/cs-CZ/images/step3-image.png new file mode 100644 index 000000000..441189fec Binary files /dev/null and b/cs-CZ/images/step3-image.png differ diff --git a/cs-CZ/images/step4-image.png b/cs-CZ/images/step4-image.png new file mode 100644 index 000000000..c92bc3b0b Binary files /dev/null and b/cs-CZ/images/step4-image.png differ diff --git a/cs-CZ/images/studio-example.png b/cs-CZ/images/studio-example.png new file mode 100644 index 000000000..f91ad3daa Binary files /dev/null and b/cs-CZ/images/studio-example.png differ diff --git a/cs-CZ/images/tshirt.png b/cs-CZ/images/tshirt.png new file mode 100644 index 000000000..9e5481d85 Binary files /dev/null and b/cs-CZ/images/tshirt.png differ diff --git a/cs-CZ/images/upgrade-image.png b/cs-CZ/images/upgrade-image.png new file mode 100644 index 000000000..57b6f29d1 Binary files /dev/null and b/cs-CZ/images/upgrade-image.png differ diff --git a/cs-CZ/images/vending.png b/cs-CZ/images/vending.png new file mode 100644 index 000000000..deb1d50d3 Binary files /dev/null and b/cs-CZ/images/vending.png differ diff --git a/cs-CZ/meta.yml b/cs-CZ/meta.yml new file mode 100644 index 000000000..7bb36d04c --- /dev/null +++ b/cs-CZ/meta.yml @@ -0,0 +1,37 @@ +--- +title: Další zákazník prosím +hero_image: images/banner.png +description: A shop simulation project where the customer can buy items. +meta_title: Scratch coding projects for kids and teens | Next customer please +meta_description: Learn Scratch with the Raspberry Pi Foundation's coding projects for kids and teens. Make a Scratch app where the customer can buy items from your shop. +version: 4 +listed: true +copyedit: false +last_tested: "2021-03-26" +steps: + - + title: Co budeš dělat + - + title: Your shop + - + title: Items for sale + completion: + - engaged + - + title: Purchases + completion: + - internal + - + title: Rychlý kvíz + knowledge_quiz: + path: quiz1 + version: 1 + questions: 3 + passing_score: 3 + completion: + - external + - + title: Výzva + challenge: true + - + title: Sdílej diff --git a/cs-CZ/quiz1/question_1.md b/cs-CZ/quiz1/question_1.md new file mode 100644 index 000000000..7c16e6847 --- /dev/null +++ b/cs-CZ/quiz1/question_1.md @@ -0,0 +1,72 @@ +## Rychlý kvíz + +Odpověz na tři otázky. Máš tu tipy co tě dovedou ke správné odpovědi. + +Po zodpovězení každé otázky klikni na **Zkontrolovat mou odpověď**. + +Bav se! + +--- question --- + +--- +legend: Question 1 of 3 +--- + +A shop project uses a `total`{:class="block3variables"} variable to store the total for each customer. + ++ A customer adds items that total `50` and pays ++ A new customer adds items that total `40` but the `total`{:class="block3variables"} is now showing as `90` for the second customer + +Which block would you need to add to the payment script to make the total go back to `0` when each customer pays? + +--- choices --- + +- ( ) +```blocks3 +change [total v] by [0] +``` + + --- feedback --- + +Not quite, `total`{:class="block3variables"} should be `0` after a customer pays, but it is not the `change`{:class="block3variables"} block you need. + + --- /feedback --- + +- ( ) +```blocks3 +set [total v] to [40] +``` + + --- feedback --- + + Not quite, this would work for the second customer but the `total`{:class="block3variables"} would be wrong for other customers. + + --- /feedback --- + +- (x) + +```blocks3 +set [total v] to [0] +``` + + --- feedback --- + +Ano, to je správná odpověď. You need to `set`{:class="block3variables"} the `total`{:class="block3variables"} to `0` after each customer pays. + + --- /feedback --- + +- ( ) + +```blocks3 +change [total v] by [-50] +``` + + --- feedback --- + +That would work for this example, but what if the first customer spent a different amount? Your solution needs to work when the previous customer spends different amounts. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/cs-CZ/quiz1/question_2.md b/cs-CZ/quiz1/question_2.md new file mode 100644 index 000000000..8e233c150 --- /dev/null +++ b/cs-CZ/quiz1/question_2.md @@ -0,0 +1,63 @@ + +--- question --- + +--- +legend: Question 2 of 3 +--- + +In a shop, the **seller** has this code in the checkout script: + +```blocks3 +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds +else +say [Sorry to hear that.] for [2] seconds +end +``` + +When the code runs, the user types the answer 'great'. What will the **seller** sprite say? + +![An 'ask' box with the word 'great' typed in.](images/quiz2.png) + +--- choices --- + +- (x) The **Seller** will say `Sorry to hear that.` + + --- feedback --- + + Ano. Humans know that 'great' means the same as 'good', but the '=' checks whether the letters are the same. + + The **condition** `answer`{:class="block3sensing"} = `good` is 'false' so the `say`{:class="block3looks"} block in the `else`{:class="block3control"} part will run. + + --- /feedback --- + +- ( ) The **seller** will say `That's fantastic!` + + --- feedback --- + +No, only the exact answer `good` will make the **seller** say `That's fantastic!`. Look at the code again to see what message the **seller** will say for all answers that are not `good`. + +**Tip:** 'Good' or 'GOOD' would match 'good'. + + --- /feedback --- + +- ( ) The **seller** won't say anything. + + --- feedback --- + +No, the **seller** will always say something. Look carefully at the code to see what the message will be. + + --- /feedback --- + +- ( ) The **seller** will say `great`. + + --- feedback --- + +No, the **customer** typed the answer 'great' but the **seller** does not say the answer. Look carefully at the code to see what the message will be. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/cs-CZ/quiz1/question_3.md b/cs-CZ/quiz1/question_3.md new file mode 100644 index 000000000..f8f6961b6 --- /dev/null +++ b/cs-CZ/quiz1/question_3.md @@ -0,0 +1,48 @@ + +--- question --- + +--- +legend: Question 3 of 3 +--- + +Your project is not working. What should you do? + +--- choices --- + +- ( ) Panic! + + --- feedback --- + + That's not going to help. You need to think clearly to fix coding problems. + + --- /feedback --- + +- ( ) Give up + + --- feedback --- + + There are lots of things you could try. Great coders often get things wrong the first time and learn a lot from their mistakes. + + --- /feedback --- + +- (x) Read the code carefully and try to debug it. + + --- feedback --- + + Ano. Fixing bugs is part of coding. The more you practise the more experience you get, and the easier it becomes to find and fix bugs. + + --- /feedback --- + +- ( ) Get annoyed with the computer + + --- feedback --- + +A computer only does what we tell it to do, so getting annoyed with it isn't logical. + +Being annoyed won't help to solve the problem, as it will make it harder to think clearly. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/cs-CZ/scratch-comments.txt b/cs-CZ/scratch-comments.txt new file mode 100644 index 000000000..ba0c55d8c --- /dev/null +++ b/cs-CZ/scratch-comments.txt @@ -0,0 +1,9 @@ +zadej název tvojí firmy + +název tvojí firmy + +použij název svého Container sprite + +startovní pozice + +předchozí zákazník si vezme tašku diff --git a/cs-CZ/scratch-translatable.txt b/cs-CZ/scratch-translatable.txt new file mode 100644 index 000000000..0faca04bb --- /dev/null +++ b/cs-CZ/scratch-translatable.txt @@ -0,0 +1,49 @@ +jméno + +můj obchod + +další zákazník + +Další zákazník prosím! + +dohromady + +To bude + +Děkujeme za nákup u + +Chceš zaplatit nebo zrušit nákup? + +platit + +zrušit + +Ok. Žádný problém + +Klikni na položky, které chceš koupit + +Našel jsi dnes vše, co jsi chtěl? + +ano + +To je fantastické! + +Možná bych měl přidat další zboží do svého obchodu + +Taška + +1 kopeček + +kornout + +prodejna + +skutečný + +nepravda + +Jak se dneska máš? + +dobře + +To je mi líto. diff --git a/cs-CZ/solutions/Cool Shirts.sb3 b/cs-CZ/solutions/Cool Shirts.sb3 new file mode 100644 index 000000000..fdc5852be Binary files /dev/null and b/cs-CZ/solutions/Cool Shirts.sb3 differ diff --git a/cs-CZ/solutions/Fresh Space Fruit.sb3 b/cs-CZ/solutions/Fresh Space Fruit.sb3 new file mode 100644 index 000000000..bbbe9eaac Binary files /dev/null and b/cs-CZ/solutions/Fresh Space Fruit.sb3 differ diff --git a/cs-CZ/solutions/Vending machine.sb3 b/cs-CZ/solutions/Vending machine.sb3 new file mode 100644 index 000000000..42dec16a7 Binary files /dev/null and b/cs-CZ/solutions/Vending machine.sb3 differ diff --git a/cs-CZ/solutions/ice cream shop.sb3 b/cs-CZ/solutions/ice cream shop.sb3 new file mode 100644 index 000000000..d6322242c Binary files /dev/null and b/cs-CZ/solutions/ice cream shop.sb3 differ diff --git a/cs-CZ/step_1.md b/cs-CZ/step_1.md new file mode 100644 index 000000000..4d8813b4b --- /dev/null +++ b/cs-CZ/step_1.md @@ -0,0 +1,52 @@ +## Co budeš dělat + +Vytvořte aplikaci pro obchod, kde si zákazník může koupit zboží z vašeho obchodu. Aplikace bude v pohledu první osoby, kde hráč bude v roli zákazníka. + +--- no-print --- + +Click on Space Fruit to buy them and watch the total go up. Až budeš připraven, klikni na Kiran a podívej se. + ++ Co se stane, když se pokusíš zaplatit u pokladny dřív než si vybereš nějaké ovoce? ++ Jak si myslíš, že projekt ví, že jsi zatím nepřidal žádné ovoce? + +
+**Vesmírní ovoce!**: [Podívej se](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +
+ +
+
+ +### Inspiruj se 💭 + +Kliknutím na **prodávajících** spriteů zakoupíš položky: + +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +
+ +
+ +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +
+ +
+ +**⭐ Pride Pins** (doporučený komunitní projekt) + +Kliknutím na odznaky je přidáš do košíka: + +
+ +
+ +--- /no-print --- + +--- print-only --- + +### Inspiruj se 💭 + +Musíš se rozhodnout, jak bude vypadat tvoje postavička. See inside example projects in the Scratch 2: Next customer please! Scratch studio at https://scratch.mit.edu/studios/29611454 + +![Příklad projektu](images/fruit.png) ![Příklad projektu](images/tshirt.png) ![Příklad projektu](images/icecream.png) ![Příklad projektu](images/vending.png) + +--- /print-only --- + diff --git a/cs-CZ/step_2.md b/cs-CZ/step_2.md new file mode 100644 index 000000000..2868e3940 --- /dev/null +++ b/cs-CZ/step_2.md @@ -0,0 +1,80 @@ +## Your shop + +
+
+What is your shop idea? Může to být něco opravdového, oblíbené knižky nebo filmu, nebo něco úplně jiného. +
+
+![](images/step2-image.png){:width="300px"} +
+
+ +--- task --- + +Vytvořte [nový projekt Scratch](http://rpf.io/scratch-new){:target="_blank"} a podívejte se na řadu postav a pozadí, které můžete použít. Spend some time thinking about your shop idea. + +--- /task --- + +--- task --- + +**Choose a Backdrop** or paint your own backdrop. + +![](images/choose-backdrop-icon.png) + ++ A backdrop from the Scratch library, or a plain coloured backdrop + +--- /task --- + +--- task --- + +**Choose a Sprite** and add or paint extra scenery sprites. + +![](images/choose-sprite-icon.png) + +--- /task --- + +--- task --- + +Add more scenery. ++ A desk, counter, or window to sell from ++ A shelf or bookcase to put items on — you could Paint this on the backdrop + +--- /task --- + +--- task --- + +Add a sprite to represent the seller. + +You could choose: ++ A person or non-player character such as a shopkeeper, farmer, or librarian ++ A machine such as a vending machine, jukebox, or cash register + +![](images/choose-sprite-icon.png) + +--- /task --- + +### Welcome your first customer. + +--- task --- + +Click on your **seller** sprite and add a `broadcast`{:class="block3events"} block. Create a new message called `next customer`. + +```blocks3 +when flag clicked ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +Create a new script for your **seller** sprite to `say`{:class="block3looks"} `Next customer please` when they receive the `broadcast`{:class="block3events"} `next customer`{:class="block3events"}. + +```blocks3 +when I receive [next customer v] +say [Next customer please!] for (2) seconds +``` + +--- /task --- + +--- save --- diff --git a/cs-CZ/step_3.md b/cs-CZ/step_3.md new file mode 100644 index 000000000..8c2e88c47 --- /dev/null +++ b/cs-CZ/step_3.md @@ -0,0 +1,128 @@ +## Items for sale + +
+
+Your shop needs items for sale. Each item will have a price that will be added to a `total`{:class="block3variables"} variable. +
+
+![](images/step3-image.png){:width="300px"} +
+
+ +You will need to keep track of how much your customer is spending. + +--- task --- + +Add a new variable called `total`{:class="block3variables"} for all sprites. + +Click on your **seller** sprite and add a script to `set`{:class="block3variables"} the `total`{:class="block3variables"} to `0` when the project starts. + +[[[scratch3-create-set-variable]]] + +--- /task --- + +What **items** will your customer(s) be buying? ++ Some kind of food or drink ++ Sports equipment, toys, or gadgets ++ Magic wands, potions, or spell books ++ Clothing or other fashion items ++ Your own idea + +--- task --- + +Add a sprite for the first **item** you're going to sell in your shop. + +If you like, you can add a price to the costume using the text tool in the Paint editor. Or add a price to the backdrop and position the item next to it. + +![Examples of items with amounts written next to them.](images/item-amounts.png) + +--- /task --- + +--- task --- + +Add a script to `change`{:class="block3variables"} the `total`{:class="block3variables"} by the price of your item when the customer clicks on the sprite. + +--- collapse --- +--- +title: Click to add an item +--- + +```blocks3 +when this sprite clicked +start sound (Coin v) +change [total v] by [10] +``` + +--- /collapse --- + +It's also a good idea to `play a sound`{:class="block3sound"} to give the customer feedback that they have added an item. + +![The add a sound icon](images/add-sound.png) + +[[[scratch3-add-sound]]] + +--- /task --- + +--- task --- + +**Test:** Click on your item and check that the value of the `total`{:class="block3variables"} variable increases by the price of the item, and you hear the sound effect. Click more times to see the total go up. + +Click the green flag to start your project and make sure that the `total`{:class="block3variables"} starts at `0`. + +--- /task --- + +--- task --- + +Add more items to your shop. + +You can either: ++ Duplicate the first item and then add a new costume in the Paint editor ++ Add a sprite and then drag the `when flag clicked`{:class="block3events"} script from the first item to your new item + +Add a price label to the costume or backdrop if you are using them. + +--- /task --- + +--- task --- + +Click on your new **Item** sprite in the Sprite list then click on the **Code** tab. + +Change the amount the `total`{:class="block3variables"} changes by to the price of your new item. + +--- /task --- + +--- task --- + +**Test:** Click the green flag to start your project and click on items to add them. Check that the total increases by the correct amount each time you click on an item. + +If you have added price labels, make sure they match the amount that gets added to the `total`{:class="block3variables"}, or your customers will be confused! + +--- /task --- + +--- task --- + +**Debug:** You might find some bugs in your project that you need to fix. Here are some common bugs. + +--- collapse --- +--- +title: The total doesn't go to 0 when I click the green flag +--- + +Check that you have set the start value of the `total`{:class="block3variables"} variable in the `when flag clicked`{:class="block3events"} script on your **seller** sprite. + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't increase by the correct amount when I click on an item +--- + +Check that each item has a `when this sprite clicked`{:class="block3events"} script that changes the `total`{:class="block3variables"} by the correct amount for that item — you might have changed the price for the wrong sprite. + +Check that you have used the `change`{:class="block3variables"} block and not the `set`{:class="block3variables"} block to change the `total`{:class="block3variables"}. You need to use `change`{:class="block3variables"} to add the price to the total, you don't want to set the total to the price of the item that was just added. + +--- /collapse --- + +--- /task --- + +--- save --- diff --git a/cs-CZ/step_4.md b/cs-CZ/step_4.md new file mode 100644 index 000000000..7e8467f4a --- /dev/null +++ b/cs-CZ/step_4.md @@ -0,0 +1,141 @@ +## Purchases + +
+
+ +The **seller** sprite needs to: +- ask if the customer is ready to pay for the items +- take payment +- get ready for the next customer +
+
+![](images/step4-image.png){:width="300px"} +
+
+ +When they have finished choosing items, the customer will click on the **seller** sprite to pay. + +--- task --- + + Tell the customer how much their items will cost. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +``` + +--- /task --- + +--- task --- + +Add a payment sound to your **seller** sprite so the customer knows that payment is taking place. + +![The add a sound icon](images/add-sound.png) + +[[[scratch3-add-sound]]] + +Add the `play sound until done`{:class="block3sound"} block to your script. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ play sound [machine v] until done +``` + +--- /task --- + +--- task --- + +Finish the sale. Set `total`{:class="block3variables"} back to `0` after payment, `say`{:class="block3looks"} goodbye and `broadcast`{:class="block3control"} `next customer`{:class="block3control"}. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +play sound [machine v] until done ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +**Test:** Test your project and make sure: +- The customer can check out with the correct sound effects +- The `total`{:class="block3variables"} gets set back to `0` after a customer pays or cancels. + +--- /task --- + + +--- task --- + +**Debug:** You might find some bugs in your project that you need to fix. + +Here are some common bugs: + +--- collapse --- +--- +title: The seller doesn't do anything when I click on them +--- + +You have quite a lot of sprites in your project. Make sure the `when this sprite clicked`{:class="block3events"} script is on your **seller** sprite. + +**Tip:** If you have added it to the wrong sprite, you can drag the code to the **seller** sprite, then delete it from the other sprite. + +--- /collapse --- + +--- collapse --- +--- +title: The words in the say blocks merge together +--- + +When you `join`{:class="block3operators"} two pieces together, you need to add a space at the end of your first piece of text or at the beginning of your second piece of text. + +These have a space at the end of the first part of the join: + +```blocks3 +say {join [That will be ](total)} for (2) seconds + +say {join [Thanks for shopping at ](name)} for (2) seconds +``` + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't reset after a sale +--- + +Check that you have used: + +```blocks3 +set [total v] to (0) +``` + +**not**: + +```blocks3 +change [total v] by (0) +``` + +--- /collapse --- + +--- collapse --- +--- +title: The seller isn't responding +--- + +Make sure the `operator`{:class="block3operators"} in the `if`{:class="block3control"} condition is the greater than symbol `>`{:class="block3operators"}. + +```blocks3 +if <(total) > [0]> then +``` + +--- /collapse --- + +**Tip:** Compare your code with the code examples. Are there any differences that shouldn't be there? + +--- /task --- + +--- save --- diff --git a/cs-CZ/step_5.md b/cs-CZ/step_5.md new file mode 100644 index 000000000..4b195a338 --- /dev/null +++ b/cs-CZ/step_5.md @@ -0,0 +1 @@ +## Rychlý kvíz \ No newline at end of file diff --git a/cs-CZ/step_6.md b/cs-CZ/step_6.md new file mode 100644 index 000000000..37aecdfb6 --- /dev/null +++ b/cs-CZ/step_6.md @@ -0,0 +1,230 @@ +## Výzva + +
+
+There are lots of features you could add to improve your customers' shopping experience. You don't need to add everything. Just add improvements that you think are important. +
+
+![](images/customer-count.png){:width="300px"} +
+
+ +--- task --- + +Add more items to sell. + +--- /task --- + +--- task --- + +Add more graphic and sound effects. + +--- /task --- + +--- task --- + +Paint your own scenery and other costumes. + +--- /task --- + +--- task --- + +Make another business and allow players to visit them both. + +--- /task --- + +Each example project in the [Introduction](.) has a ‘See Inside’ link for you to open the project in Scratch, and look at the code to get ideas and see how they work. You can 'See inside' the example projects to look at how they work. + +Example projects: **Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Vending machine**: [See inside](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} + +**Tip:** If you are logged in to a Scratch account, then you can use the **Backpack** to copy scripts or sprites to your project. + +[[[scratch-backpack]]] + +### Chatty checkout! + +Your checkout person (or machine) could ask whether the service was good, or if the customer is having a nice day. + +--- task --- + +Add `ask`{:class="block3sensing"} blocks to your **seller**'s `when this sprite clicked`{:class="block3events"} script and `say`{:class="block3looks"} different things depending on the customer's response. + +--- collapse --- + +--- +title: Ask and respond to questions +--- + +```blocks3 +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds +else +say [Maybe I should add more items to my shop] for [2] seconds +end +``` + +**Debug:** Check that you have spelled the options correctly in your code and in your answer. It's OK if you use capital letters, so "Yes" and "YES" will match "yes". + +Add multiple questions to create a chatbot or non-player character that you can talk to. + +--- /collapse --- + +--- /task --- + +### Bag the items + +--- task --- + +The Cool Shirts project has shirts that glide into a bag. + +--- collapse --- + +--- +title: Make items glide into a container +--- + +Add a **Container** sprite. You could use an existing sprite like the **Gift** or **Take out** sprite, or paint your own with simple shapes. + +Add a script to make the **Container** always appear at the front: + +```blocks3 +when flag clicked +forever +go to [front v] layer +end +``` + +Then you'll need to add code to each **Item** you have for sale to make them glide to the container when they are clicked: + +```blocks3 +when this sprite clicked ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite ++hide +change [total v] by [12] ++go to x: [-180] y: [68] // start position ++show +``` + +If you don't want the container there all the time, you can add scripts to make it show and hide at the right time: + +```blocks3 +when I receive [next customer v] +hide // previous customer takes the bag +wait [1] seconds +show +``` + +**Test:** Try your project and make sure items glide to the container and hide. + +**Debug:** Check your scripts carefully and make sure you have updated all of your **Item** sprites. You can look at [Cool Shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} if you need to see a working example. + +--- /collapse --- + +--- /task --- + +###  Stop adding items when the customer is at the checkout + +--- task --- + +Add a `shop`{:class="block3variables"} variable and use it to control when items can be added. + +--- collapse --- + +--- +title: Stop purchases when the customer is at the checkout +--- + +Add a `variable`{:class="block3variables"} called `shop` for all sprites. You will set this to `true` when the customer is in the shop and `false` when they are at the checkout. + +Select your **seller** sprite. Update the `when flag clicked`{:class="block3events"} script to allow shopping when your project starts: + +```blocks3 ++set [shop v] to [true] +``` + +Now add a block to change the `shop`{:class="block3variables"} to `false` at the beginning of your **seller**'s `when this sprite clicked`{:class="block3events"} script: + +```blocks3 ++set [shop v] to [false] +``` + +And a block to set the `shop`{:class="block3variables"} variable back to `true` at the end of the same script: + +```blocks3 ++set [shop v] to [true] +``` + +Now you need to update the items you sell to check the `shop`{:class="block3variables"} variable: + +```blocks3 +when this sprite clicked ++if <(shop) = [true]> then +start sound (Coin v) +change [total v] by [10] +end +``` +You will need to do this for every item you sell in your shop. + +**Test:** Click the green flag then try shopping. Check that you can still add items and checkout, but you can't add items once you have started checking out. + +**Debug:** Check your code really carefully. You can look at the [Space Fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project if you need to see a working example. + +--- /collapse --- + +--- /task --- + +--- task --- + +### Give the customer the option to cancel their shopping. + +--- collapse --- + +--- +title: Set up pay and cancel options +--- + +`Ask`{:class="block3sensing"} `Would you like to pay or cancel?`. Add an `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `pay` and inside it put your existing payment blocks. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end +``` + +Add a second `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `cancel` and inside it add code to cancel the order. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] +end +``` + +--- /collapse --- + +--- /task --- + +Take a look at our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio to see projects created by community members. + +--- save --- diff --git a/cs-CZ/step_7.md b/cs-CZ/step_7.md new file mode 100644 index 000000000..3c8a6409a --- /dev/null +++ b/cs-CZ/step_7.md @@ -0,0 +1,9 @@ +## Sdílej + +If you are in a club, why not share your project with friends? + +Inspire the Raspberry Pi Foundation community with your project! + +To submit your project to our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio, please complete [this form](https://form.raspberrypi.org/f/community-project-submissions){:target="_blank"}. + +![Example shop projects in the 'Intergalactic shopping market' Scratch studio.](images/studio-example.png) diff --git a/cs-CZ/step_8.md b/cs-CZ/step_8.md new file mode 100644 index 000000000..482ba5b56 --- /dev/null +++ b/cs-CZ/step_8.md @@ -0,0 +1,21 @@ +## What can you do now? + +If you are following the [More Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch) path, you can move on to the [Don't fall in](https://projects.raspberrypi.org/en/projects/dont-fall-in) project. In this project, you will make a top-down game where you have to jump from platform to platform and not fall in. + +--- print-only --- + +![Don't fall in project](images/dont-fall-in-project.png) + +--- /print-only --- + +--- no-print --- + +
+ +
+ +**Instructions:** Press space or tap the Stage to jump. + +--- /no-print --- + +If you want to have more fun exploring Scratch, then you could try out any of [these projects](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). diff --git a/cy-GB/images/dont-fall-in-project.png b/cy-GB/images/dont-fall-in-project.png new file mode 100644 index 000000000..003a7787c Binary files /dev/null and b/cy-GB/images/dont-fall-in-project.png differ diff --git a/cy-GB/meta.yml b/cy-GB/meta.yml index 2a8bfb2c7..211b31e5d 100644 --- a/cy-GB/meta.yml +++ b/cy-GB/meta.yml @@ -2,21 +2,27 @@ title: Cwsmer nesaf plîs hero_image: images/banner.png description: Prosiect sy'n creu efelychiad o siop lle mae cwsmeriaid yn gallu prynu eitemau. +meta_title: Scratch coding projects for kids and teens | Next customer please +meta_description: Learn Scratch with the Raspberry Pi Foundation's coding projects for kids and teens. Make a Scratch app where the customer can buy items from your shop. version: 4 listed: true copyedit: false last_tested: "2021-03-26" steps: - - title: Byddi di'n creu - - title: Dy syniad busnes - - title: Eitemau ar werth + - + title: Byddi di'n creu + - + title: Dy syniad busnes + - + title: Eitemau ar werth completion: - engaged - - title: Prynwyd - - title: Nodweddion ychwanegol + - + title: Prynwyd completion: - internal - - title: Cwis cyflym + - + title: Nodweddion ychwanegol knowledge_quiz: path: quiz1 version: 1 @@ -24,5 +30,8 @@ steps: passing_score: 3 completion: - external - - title: Uwchraddio dy brosiect - - title: Rhannu \ No newline at end of file + - + title: Cwis cyflym + challenge: true + - + title: Uwchraddio dy brosiect diff --git a/cy-GB/quiz1/question_1.md b/cy-GB/quiz1/question_1.md index 68b9eb74a..93f655b92 100644 --- a/cy-GB/quiz1/question_1.md +++ b/cy-GB/quiz1/question_1.md @@ -9,7 +9,7 @@ Mwynha! --- question --- --- -legend: Cwestiwn 1 o 3 +legend: Question 1 of 3 --- Mae prosiect siop yn defnyddio newidyn `cyfanswm`{:class="block3variables"} i storio'r cyfanswm ar gyfer pob cwsmer. @@ -19,22 +19,11 @@ Mae prosiect siop yn defnyddio newidyn `cyfanswm`{:class="block3variables"} i st Pa floc fyddai angen i ti ei ychwanegu at y sgript talu i wneud i'r cyfanswm fynd yn ôl i `0` pan fydd pob cwsmer yn talu? -```blocks3 -when this sprite clicked -ask [Hoffech chi dalu neu ganslo?] and wait -if {(answer) = [talu]} then -say (join [Bydd hynny'n ] (cyfanswm)) for (2) seconds -play sound [coin v] until done -say (join [Diolch am siopa yn ] (enw)) for (2) seconds -broadcast [cwsmer nesaf v] -end -``` - --- choices --- - ( ) ```blocks3 -change [cyfanswm v] by [0] +change [total v] by [0] ``` --- feedback --- @@ -45,7 +34,7 @@ Anghywir, dylai'r `cyfanswm`{:class="block3variables"} fod yn `0` ar ôl i gwsme - ( ) ```blocks3 -set [cyfanswm v] to [40] +set [total v] to [40] ``` --- feedback --- @@ -57,7 +46,7 @@ set [cyfanswm v] to [40] - (x) ```blocks3 -set [cyfanswm v] to [0] +set [total v] to [0] ``` --- feedback --- @@ -69,7 +58,7 @@ Cywir. Mae angen `gosod`{:class="block3variables"} y `cyfanswm`{:class="block3va - ( ) ```blocks3 -change [cyfanswm v] by [-50] +change [total v] by [-50] ``` --- feedback --- diff --git a/cy-GB/quiz1/question_2.md b/cy-GB/quiz1/question_2.md index 31058b166..1caed7773 100644 --- a/cy-GB/quiz1/question_2.md +++ b/cy-GB/quiz1/question_2.md @@ -2,17 +2,17 @@ --- question --- --- -legend: Cwestiwn 2 o 3 +legend: Question 2 of 3 --- Mewn siop, mae gan y **gwerthwr** y cod yma yn y sgript talu: ```blocks3 -ask [Sut wyt ti heddiw?] and wait -if <(answer) = [da]> then -say [Mae hynny'n wych!] for [2] seconds +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds else -say [Mae'n ddrwg gen i glywed hynny.] for [2] seconds +say [Sorry to hear that.] for [2] seconds end ``` diff --git a/cy-GB/quiz1/question_3.md b/cy-GB/quiz1/question_3.md index cf1185776..09561015f 100644 --- a/cy-GB/quiz1/question_3.md +++ b/cy-GB/quiz1/question_3.md @@ -2,10 +2,10 @@ --- question --- --- -legend: Cwestiwn 3 o 3 +legend: Question 3 of 3 --- -Dydy prosiect Jay ddim yn gweithio. Beth ddylai wneud? +Your project is not working. What should you do? --- choices --- @@ -21,7 +21,7 @@ Dydy prosiect Jay ddim yn gweithio. Beth ddylai wneud? --- feedback --- - Mae llawer o bethau gallai Jay roi cynnig arnyn nhw. Mae codwyr gwych yn aml yn gwneud pethau'n anghywir y tro cyntaf ac yn dysgu llawer o'u camgymeriadau. + There are lots of things you could try. Mae codwyr gwych yn aml yn gwneud pethau'n anghywir y tro cyntaf ac yn dysgu llawer o'u camgymeriadau. --- /feedback --- diff --git a/cy-GB/step_1.md b/cy-GB/step_1.md index fca22fa3f..b28fdea61 100644 --- a/cy-GB/step_1.md +++ b/cy-GB/step_1.md @@ -2,63 +2,32 @@ Byddi di'n creu ap siop lle gall y cwsmer brynu eitemau o dy siop. Bydd y prosiect o berspectif person cyntaf lle mae'r chwaraewr yn gwsmer. -

-Mae **Perspectif person cyntaf** yn golygu nad wyt ti'n gweld dy gymeriad ar y sgrin, yn lle hynny rwyt ti'n gweld yr hyn mae'n ei weld. -

- -Byddi di'n: -+ Creu ap siop gydag eitemau i'w prynu a desg dalu -+ Trefnu dy amser i gael fersiwn syml yn gweithio'n gyflym -+ Rhoi cynnig ar siopau a wnaed gan bobl eraill a rhannu dy siop di fel y gall pobl eraill roi cynnig arni - -![](images/example-strip.png) - --- no-print --- ---- task --- +Click on Space Fruit to buy them and watch the total go up. Pan fyddi di'n barod, clicia ar Kiran i dalu. -
-
- -### Chwarae ▶️ - -Clicia ar y Ffrwyth Gofod i'w prynu a gweld y cyfanswm yn codi. Pan fyddi di'n barod, clicia ar Kiran i dalu. - -+ Beth sy'n digwydd os wyt ti'n ceisio talu cyn i ti ddewis unrhyw ffrwyth? -+ Sut wyt ti'n meddwl mae'r prosiect yn gwybod nad wyt ti wedi ychwanegu unrhyw ffrwyth eto? ++ Creu ap siop gydag eitemau i'w prynu a desg dalu ++ Trefnu dy amser i gael fersiwn syml yn gweithio'n gyflym -
-**Ffrwyth Gofod Ffres**: [Gweler y tu mewn](https://scratch.mit.edu/projects/812347333/editor){:target="_blank"} +**Ffrwyth Gofod Ffres**: [Gweler y tu mewn](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"}
- +
---- /task --- - ### Cael ysbrydoliaeth 💭 -Rwyt ti'n mynd i wneud rhai penderfyniadau dylunio i ddewis pa eitemau bydd dy fusnes yn eu cynnig a sut bydd y cwsmer yn talu. - ---- task --- - -Cymer olwg ar y siopau enghreifftiol hyn i gael mwy o syniadau. - -⭐ Rhannwch eich prosiect “Cwsmer Nesaf Os Gwelwch Yn Dda” am gyfle i’w gynnwys yma. - -Pa brosiectau sy'n caniatáu i ti brynu sawl eitem ar unwaith? Pa rai sy'n caniatáu i ti brynu un eitem ar y tro? - Clicia ar y corlun **Gwerthwr** i brynu eitemau: -**Crysau Cŵl**: [Gweld tu mewn](https://scratch.mit.edu/projects/812469262/editor){:target="_blank"} +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"}
- +
-**Siop hufen iâ**: [Gweld tu mewn](https://scratch.mit.edu/projects/812475975/editor){:target="_blank"} +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"}
- +
**⭐ Piniau balchder** (prosiect cymunedol dan sylw) @@ -69,20 +38,15 @@ Cliciwch ar y piniau balchder i’w hychwanegu i’ch bag siopa:
---- /task --- - --- /no-print --- --- print-only --- ### Cael ysbrydoliaeth -Rwyt ti'n mynd i wneud rhai penderfyniadau dylunio i greu dy gymeriad. Cymer olwg tu mewn i brosiectau enghreifftiol yn [Scratch 2: Cwsmer nesaf plîs! - Enghreifftiau](https://scratch.mit.edu/studios/29611454/){:target="_blank"} Scratch studio. +Rwyt ti'n mynd i wneud rhai penderfyniadau dylunio i greu dy gymeriad. See inside example projects in the Scratch 2: Next customer please! Scratch studio at https://scratch.mit.edu/studios/29611454 -![Prosiect enghreifftiol](images/fruit.png) -![Prosiect enghreifftiol](images/tshirt.png) -![Prosiect enghreifftiol](images/icecream.png) -![Prosiect enghreifftiol](images/vending.png) +![Prosiect enghreifftiol](images/fruit.png) ![Prosiect enghreifftiol](images/tshirt.png) ![Prosiect enghreifftiol](images/icecream.png) ![Prosiect enghreifftiol](images/vending.png) --- /print-only --- diff --git a/cy-GB/step_2.md b/cy-GB/step_2.md index 0727bb634..9c3f92516 100644 --- a/cy-GB/step_2.md +++ b/cy-GB/step_2.md @@ -2,7 +2,7 @@
-Beth yw dy syniad busnes? Gallai fod yn rhywbeth realistig, fel rhywbeth o lyfr neu ffilm rwyt ti'n ei hoffi, neu'n rhywbeth hollol wirion. +What is your shop idea? Gallai fod yn rhywbeth realistig, fel rhywbeth o lyfr neu ffilm rwyt ti'n ei hoffi, neu'n rhywbeth hollol wirion.
![](images/step2-image.png){:width="300px"} @@ -11,148 +11,70 @@ Beth yw dy syniad busnes? Gallai fod yn rhywbeth realistig, fel rhywbeth o lyfr --- task --- -Agora [brosiect Scratch newydd](http://rpf.io/scratch-new){:target="_blank"} a tharo golwg ar yr amrywiaeth o gorluniau a chefnlenni y galli di eu defnyddio. Treulia ychydig o amser yn meddwl am dy syniad busnes. - -[[[working-offline]]] +Agora [brosiect Scratch newydd](http://rpf.io/scratch-new){:target="_blank"} a tharo golwg ar yr amrywiaeth o gorluniau a chefnlenni y galli di eu defnyddio. Spend some time thinking about your shop idea. --- /task --- -Pa gefnlen a chorluniau golygfeydd ychwanegol bydd eu hangen arnat ti? -+ Cefnlen o lyfrgell Scratch, neu gefnlen lliw plaen? -+ Desg, cownter, neu ffenestr i werthu ohoni? -+ Silff neu gwpwrdd llyfrau i roi eitemau arno - fe allech chi Beintio hwn ar y gefnlen - --- task --- -Cliciwch **Dewiswch Gefnlen** neu beintio dy gefndir dy hun. +Pa gefnlen a chorluniau golygfeydd ychwanegol bydd eu hangen arnat ti? ![](images/choose-backdrop-icon.png) -Clicia **Dewiswch Gorlun** ac ychwanegu neu beintio corluniau golygfeydd ychwanegol. - -![](images/choose-sprite-icon.png) - -Galli di bob amser ychwanegu mwy o olygfeydd yn ddiweddarach os byddi di'n gweld bod angen gwneud hynny. ++ Cefnlen o lyfrgell Scratch, neu gefnlen lliw plaen? --- /task --- -Sut fydd corlun y **gwerthwr** yn edrych? -+ Person neu gymeriad sydd ddim yn chwaraewr (NPC) fel siopwr, ffermwr, neu lyfrgellydd? -+ Peiriant fel peiriant gwerthu, jiwcbocs, neu gofrestr arian? - -

-Mae **NPC** yn gymeriad sydd ddim yn chwaraewr y galli di ryngweithio ag ef mewn gêm neu stori ryngweithiol. Alli di feddwl am gemau rwyt ti wedi'u chwarae sydd â NPCs? Tro nesaf byddi di'n chwarae, ystyria mai gwaith rhywun oedd creu'r cymeriad hwnnw. -

- --- task --- -Ychwanega gorlun i gynrychioli'r gwerthwr. +Clicia **Dewiswch Gorlun** ac ychwanegu neu beintio corluniau golygfeydd ychwanegol. ![](images/choose-sprite-icon.png) --- /task --- -Beth ydy enw dy fusnes? - --- task --- -Crea `newidyn`{:class="block3variables"} o'r enw `enw`: - ---- collapse --- - ---- -title: Creu newidyn ---- - -O'r ddewislen blociau `Newidynnau`{:class="block3variables"} clicia'r botwm **Creu Newidyn**. - -Rho'r enw `enw` i dy newidyn newydd: - -![Y ffenestr naid New Variable gyda'r testun 'name'.](images/new-variable.png) - -**Nodyn:** Bydd y newidyn `enw` newydd yn ymddangos ar y Llwyfan a bydd modd ei ddefnyddio nawr yn y blociau `Newidyn`{:class="block3variables"}. - ---- /collapse --- - -Clicia ar dy gorlun **gwerthwr** ac ychwanega god i osod y newidyn i enw dy fusnes: - -```blocks3 -when flag clicked -set [enw v] to () //teipia enw dy fusnes -``` - -Crea arwydd ar y Llwyfan gyda dy newidyn: - ---- collapse --- - ---- - -title: Newid ymddangosiad a lleoliad newidynnau - ---- - -De-glicia ar y `newidyn`{:class="block3variables"} ar y Llwyfan a dewis sgrîn fawr: - -![Dewislen naid yn dangos opsiynau fformatio gyda 'large readout' wedi'i ddewis.](images/large-readout.png) - -Llusga dy `newidyn`{:class="block3variables"} i'w osod ar y Llwyfan fel rhan o olygfa'r siop. - ---- /collapse --- +Sut fydd corlun y **gwerthwr** yn edrych? ++ Person neu gymeriad sydd ddim yn chwaraewr (NPC) fel siopwr, ffermwr, neu lyfrgellydd? ++ Silff neu gwpwrdd llyfrau i roi eitemau arno - fe allech chi Beintio hwn ar y gefnlen --- /task --- --- task --- -**Prawf:** Gwna'n siŵr dy fod yn gallu gweld enw dy fusnes fel gwerth y newidyn ar y Llwyfan. - ---- /task --- - -Bydd yn barod i groesawu dy gwsmer cyntaf. - ---- task --- +Ychwanega gorlun i gynrychioli'r gwerthwr. -Clicia ar dy gorlun **gwerthwr** ac ychwanega floc `darlledu`{:class="block3control"}. Crea neges newydd o'r enw `cwsmer nesaf`. +You could choose: ++ Person neu gymeriad sydd ddim yn chwaraewr (NPC) fel siopwr, ffermwr, neu lyfrgellydd ++ Peiriant fel peiriant gwerthu, jiwcbocs, neu gofrestr arian -```blocks3 -when flag clicked -set [enw v] to [fy siop] // enw dy fusnes -+ broadcast (cwsmer nesaf v) -``` +![](images/choose-sprite-icon.png) --- /task --- +### Welcome your first customer. + --- task --- -Crea sgript newydd ar gyfer dy gorlun **gwerthwr** i `ddweud`{:class="block3looks"} `Cwsmer nesaf plîs` pan fyddan nhw'n derbyn y `darllediad`{:class="block3control"} `cwsmer nesaf`{:class="block3control"}. +Click on your **seller** sprite and add a `broadcast`{:class="block3events"} block. Create a new message called `next customer`. ```blocks3 -when I receive [cwsmer nesaf v] -say [Cwsmer nesaf plîs!] for (2) seconds +when flag clicked +set [enw v] to () //teipia enw dy fusnes ``` --- /task --- --- task --- -**Difa chwilod:** Efallai bydd angen i ti ddifa chwilod yn dy brosiect. Dyma chwilen gyffredin. - ---- collapse --- - ---- - -title: Newidyn yn dangos `0` - ---- - -Dylet ti ddefnyddio'r bloc `gosod [enw v] i ()`{:class="block3variables"} er mwyn gosod y newidyn i dy enw di. Os wyt ti eisoes wedi ychwanegu sgript, gwna'n siŵr dy fod wedi teipio enw dy fusnes i mewn i'r gwerth ac wedi clicio ar y faner werdd. +Rho'r enw `enw` i dy newidyn newydd: ```blocks3 -when flag clicked -set [enw v] to [fy siop] // enw dy fusnes +when I receive [next customer v] +say [Next customer please!] for (2) seconds ``` ---- /collapse --- - --- /task --- --- save --- diff --git a/cy-GB/step_3.md b/cy-GB/step_3.md index 82cc349fb..c48a50b70 100644 --- a/cy-GB/step_3.md +++ b/cy-GB/step_3.md @@ -40,17 +40,17 @@ Os wyt ti'n dymuno, galli di ychwanegu pris at y wisg drwy ddefnyddio'r offeryn --- task --- -Ychwanega sgript i `newid`{:class="block3variables"} y `cyfanswm`{:class="block3variables"} yn ôl pris dy eitem pan fydd y cwsmer yn clicio ar y corlun. +Ychwanega sgript i `newid`{:class="block3variables"} y ` cyfanswm`{:class="block3variables"} yn ôl pris dy eitem pan fydd y cwsmer yn clicio ar y corlun. --- collapse --- --- -title: Clicio i ychwanegu eitem +title: Click to add an item --- ```blocks3 when this sprite clicked start sound (Coin v) -change [cyfanswm v] by [10] +change [total v] by [10] ``` --- /collapse --- @@ -105,7 +105,7 @@ Os wyt ti'n ychwanegu labeli prisiau, gwna'n siŵr eu bod yn cyfateb i'r swm sy' --- collapse --- --- -title: Dydy'r cyfanswm ddim yn mynd i 0 pan fydda i'n clicio ar y faner werdd +title: The total doesn't go to 0 when I click the green flag --- Gwna'n siŵr dy fod wedi gosod gwerth cychwynnol y newidyn `cyfanswm`{:class="block3variables"} yn y sgript `pan fydd y faner wedi'i chlicio`{:class="block3events"} ar dy gorlun **gwerthwr**. @@ -114,7 +114,7 @@ Gwna'n siŵr dy fod wedi gosod gwerth cychwynnol y newidyn `cyfanswm`{:class="bl --- collapse --- --- -title: Dydy'r cyfanswm ddim yn cynyddu yn ôl y swm cywir pan fydda i'n clicio ar eitem +title: The total doesn't increase by the correct amount when I click on an item --- Gwna'n siŵr fod gan bob eitem sgript `pan gaiff y corlun hwn ei glicio`{:class="block3events"} sy'n newid y `cyfanswm`{:class="block3variables"} yn ôl y swm cywir ar gyfer yr eitem honno - efallai dy fod ti wedi newid y pris ar gyfer y corlun anghywir. diff --git a/cy-GB/step_4.md b/cy-GB/step_4.md index 4f603be97..b3225e501 100644 --- a/cy-GB/step_4.md +++ b/cy-GB/step_4.md @@ -2,6 +2,7 @@
+ Mae angen i'r corlun **gwerthwr**: - ofyn a ydy'r cwsmer yn barod i dalu am yr eitemau - cymryd taliad @@ -20,7 +21,7 @@ Pan fydd wedi gorffen dewis eitemau, bydd y cwsmer yn clicio ar y corlun **gwert ```blocks3 when this sprite clicked -say (join [Bydd hynny'n ] (cyfanswm)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds ``` --- /task --- @@ -37,7 +38,7 @@ Ychwanega floc `chwarae sain tan y diwedd`{:class="block3sound"} i dy sgript. ```blocks3 when this sprite clicked -say (join [Bydd hynny'n ] (cyfanswm)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds + play sound [machine v] until done ``` @@ -45,101 +46,17 @@ say (join [Bydd hynny'n ] (cyfanswm)) for (2) seconds --- task --- -Gorffena'r broses talu. Gosoda'r `cyfanswm`{:class="block3variables"} yn ôl i `0` ar ôl talu, `dweud`{:class="block3looks"} hwyl fawr a `darlledu`{:class="block3control"} `cwsmer nesaf`{:class="block3control"}. - -```blocks3 -when this sprite clicked -say (join [Bydd hynny'n ] (cyfanswm)) for (2) seconds -play sound [machine v] until done -+ set [cyfanswm v] to (0) -+ say (join [Diolch am siopa yn ] (enw)) for (2) seconds -+ broadcast (cwsmer nesaf v) -``` - ---- /task --- - ---- task --- - -Efallai hoffet ti roi'r dewis i'r cwsmer ganslo'r broses siopa. - ---- collapse --- ---- -title: Gosod dewisiadau talu a chanslo ---- - -`Gofyn`{:class="block3sensing"} `Hoffech chi dalu neu ganslo?`. Ychwanega floc `Os`{:class="block3control"} ar gyfer `ateb`{:class="block3sensing"} `=`{:class="block3operators"} `talu` a rho dy flociau talu sy'n bodoli y tu mewn iddo. +Gorffena'r broses talu. Gosoda'r `cyfanswm`{:class="block3variables"} yn ôl i `0` ar ôl talu, `dweud`{:class="block3looks"} hwyl fawr a `darlledu`{:class="block3control"} `cwsmer nesaf`{: class="block3control"}. ```blocks3 when this sprite clicked -say (join [Bydd hynny'n ] (cyfanswm)) for (2) seconds -+ ask [Hoffech chi dalu neu ganslo?] and wait -+ if {(answer) = [talu]} then +say (join [That will be ] (total)) for (2) seconds play sound [machine v] until done -set [cyfanswm v] to (0) -say (join [Diolch am siopa yn ] (enw)) for (2) seconds -broadcast [cwsmer nesaf v] -end ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) ``` -Ychwanega ail floc `Os`{:class="block3control"} ar gyfer `ateb`{:class="block3sensing"} `=`{:class="block3operators"} `canslo` a rho god y tu mewn iddo i ganslo'r archeb. - -```blocks3 -when this sprite clicked -say (join [Bydd hynny'n ] (cyfanswm)) for (2) seconds -ask [Hoffech chi dalu neu ganslo?] and wait -if {(answer) = [talu]} then -play sound [machine v] until done -set [cyfanswm v] to (0) -say (join [Diolch am siopa yn ] (enw)) for (2) seconds -broadcast [cwsmer nesaf v] -end -+ if {(answer) = [canslo]} then -set [cyfanswm v] to (0) -say [Ok. Dim problem.] for (2) seconds -broadcast [cwsmer nesaf v] -end -``` - ---- /collapse --- - ---- /task --- - ---- task --- - -Er mwyn sicrhau bod gan dy gwsmer eitemau yn ei fasged cyn talu, galli di fewnosod bloc `os...yna`{:class="block3control"}. - ---- collapse --- ---- -title: Gwirio'r cyfanswm ---- - -`If`{:class="block3control"} `cyfanswm`{:class="block3variables"} `>`{:class="block3operators"} `0` yna mewnosoda dy sgript sy'n bodoli. - -`Fel arall`{:class="block3control"} `dweud`{:class="block3looks"} neges ddefnyddiol. - -```blocks3 -when this sprite clicked -+ if <(cyfanswm) > [0]>then -say (join [Bydd hynny'n ] (cyfanswm)) for (2) seconds -ask [Hoffech chi dalu neu ganslo?] and wait -if {(answer) = [talu]} then -play sound [machine v] until done -set [cyfanswm v] to (0) -say (join [Diolch am siopa yn ] (enw)) for (2) seconds -broadcast [cwsmer nesaf v] -end -if {(answer) = [canslo]} then -set [cyfanswm v] to (0) -say [Iawn. Dim problem.] for (2) seconds -broadcast [cwsmer nesaf v] -end -else -say [Clicia ar yr eitemau yr hoffet ti] for (2) seconds -end -``` - ---- /collapse --- - --- /task --- --- task --- @@ -159,7 +76,7 @@ Dyma rai chwilod cyffredin: --- collapse --- --- -title: Dydy'r gwerthwr ddim yn gwneud unrhyw beth pan dw i'n clicio arno +title: The seller doesn't do anything when I click on them --- Mae gen ti gryn dipyn o gorluniau yn dy brosiect. Gwna'n siŵr fod y sgript `pan gaiff y corlun ei glicio`{:class="block3events"} ar dy gorlun **gwerthwr**. @@ -170,21 +87,7 @@ Mae gen ti gryn dipyn o gorluniau yn dy brosiect. Gwna'n siŵr fod y sgript `pan --- collapse --- --- -title: Mae'r gwerthwr yn dweud y gair 'cyfanswm' yn lle'r cyfanswm go iawn ---- - -Gwna'n siŵr fod gan dy floc `dweud`{:class="block3looks"} y bloc newidyn `cyfanswm`{:class="block3variables"}, a dim y gair `cyfanswm`. - -```blocks3 - when this sprite clicked - say {join [Bydd hynny'n ](cyfanswm)} for (2) seconds - ``` - ---- /collapse --- - ---- collapse --- ---- -title: Mae'r geiriau yn y blociau dweud yn uno +title: The words in the say blocks merge together --- Pan fyddi di'n `uno`{:class="block3operators"} dau ddarn at ei gilydd, mae angen ychwanegu bwlch ar ddiwedd dy ddarn cyntaf o destun neu ar ddechrau dy ail ddarn o destun. @@ -192,41 +95,41 @@ Pan fyddi di'n `uno`{:class="block3operators"} dau ddarn at ei gilydd, mae angen Mae gan y rhain fwlch ar ddiwedd rhan gyntaf yr uniad: ```blocks3 -say {join [Bydd hynny'n ](cyfanswm)} for (2) seconds +say {join [That will be ](total)} for (2) seconds -say {join [Diolch am siopa yn ](enw)} for (2) seconds +say {join [Thanks for shopping at ](name)} for (2) seconds ``` --- /collapse --- --- collapse --- --- -title: Dydy'r cyfanswm ddim yn ailosod ar ôl gwerthu +title: The total doesn't reset after a sale --- Gwna'n siŵr dy fod ti wedi defnyddio: ```blocks3 -set [cyfanswm v] to (0) +set [total v] to (0) ``` **nid**: ```blocks3 -change [cyfanswm v] by (0) +change [total v] by (0) ``` --- /collapse --- --- collapse --- --- -title: Dydy'r gwerthwr ddim yn ymateb +title: The seller isn't responding --- Gwna'n siŵr mai'r `gweithredwr`{:class="block3operators"} yn yr amod `os`{:class="block3control"} yw'r symbol "mwy na" `>`{:class="block3operators"}. ```blocks3 -if <(cyfanswm) > [0]> then +if <(total) > [0]> then ``` --- /collapse --- diff --git a/cy-GB/step_5.md b/cy-GB/step_5.md index 0d1bbc4c0..b26c5d72e 100644 --- a/cy-GB/step_5.md +++ b/cy-GB/step_5.md @@ -1,200 +1 @@ -## Nodweddion ychwanegol - -
-
-Mae llawer o nodweddion y gallet ti eu hychwanegu i wella profiad siopa dy gwsmeriaid. Does dim angen i ti ychwanegu popeth. Dim ond y gwelliannau ti'n meddwl sy'n bwysig mae'n rhaid eu hychwanegu. - -
-
-![](images/customer-count.png){:width="300px"} -
-
- -Galli di 'Weld tu mewn' i brosiectau enghreifftiol i daro golwg ar sut maen nhw'n gweithio. - -Prosiectau enghreifftiol: **Ffrwyth Gofod Ffres**: [Gweld tu mewn](https://scratch.mit.edu/projects/812347333/editor){:target="_blank"} -**Crysau Cŵl**: [Gweld tu mewn](https://scratch.mit.edu/projects/812469262/editor){:target="_blank"} -**Siop hufen iâ**: [Gweld tu mewn](https://scratch.mit.edu/projects/812475975/editor){:target="_blank"} -**Peiriant gwerthu**: [Gweld tu mewn](https://scratch.mit.edu/projects/812482537/editor){:target="_blank"} - -**Awgrym:** Os wyt ti wedi mewngofnodi i gyfrif Scratch, galli di ddefnyddio'r **Pecyn Cefn** i gopïo sgriptiau neu gorluniau i dy brosiect. - -[[[scratch-backpack]]] - ---- task --- - -Wyt ti'n meddwl y dylai'r person wrth y cownter (neu beiriant) ofyn mwy o gwestiynau? - -Galli di ychwanegu flociau `gofyn`{:class="block3sensing"} i sgript `pan gaiff y corlun hwn ei glicio`{:class="block3events"} dy **werthwr** a `dweud`{:class="block3looks"} gwahanol bethau gan ddibynnu ar ymateb y cwsmer. - -Fe allet ti ofyn os oedd y gwasanaeth yn dda neu beidio, neu ydyn nhw'n cael diwrnod braf. Neu rywbeth penodol i dy siop, fel "Beth wyt ti'n mynd i'w goginio?" - ---- collapse --- - ---- - -title: Gofyn ac ymateb i gwestiynau - ---- - -```blocks3 -ask [Ddes di o hyd i bob dim roeddet ti eisiau heddiw?] and wait -if <(answer) = [do]> then -say [Mae hynny'n wych!] for [2] seconds -else -say [Falle ddylwn i ychwanegu mwy o eitemau i fy siop] for [2] seconds -end -``` - -**Difa chwilod:** Gwna'n siŵr dy fod wedi sillafu'r opsiynau yn gywir yn dy god ac yn dy ateb. Mae'n iawn os wyt ti'n defnyddio priflythrennau, felly bydd "Do" a "DO" yn cyfateb i "do". - -Ychwanega fwy nag un cwestiwn i greu bot sgwrsio neu gymeriad nad yw'n chwaraewr (NPC) y galli di siarad ag ef. - ---- /collapse --- - ---- /task --- - -Wyt ti eisiau i rywbeth arall ddigwydd pan fyddi di'n ychwanegu eitem? - ---- task --- - -Mae gan y prosiect Crysau Cŵl grysau sy'n llithro i mewn i fag. - ---- collapse --- - ---- - -title: Gwneud i eitemau lithro i mewn i gynhwysydd - ---- - -Ychwanega gorlun **Cynhwysydd**. Fe allet ti ddefnyddio corlun sy'n bodoli eisoes fel y corlun **Gift** neu **Take out**, neu beintio dy rai dy hun gyda siapiau syml. - -Ychwanega sgript i wneud i'r **Cynhwysydd** ymddangos ar y blaen bob amser: - -```blocks3 -when flag clicked -forever -go to [front v] layer -end -``` - -Wedyn bydd angen i ti ychwanegu cod at bob **Eitem** sydd gen ti ar werth i wneud iddyn nhw lithro i'r cynhwysydd ar ôl iddyn nhw gael eu clicio: - -```blocks3 -when this sprite clicked -+go to [front v] layer -+glide [1] secs to (Bag v) // defnyddia enw dy gorlun Container -+hide -change [cyfanswm v] by [12] -+go to x: [-180] y: [68] // safle cychwyn -+show -``` - -Os nad wyt ti am i'r cynhwysydd fod yno drwy'r amser, galli di ychwanegu sgriptiau i wneud iddyn nhw ymddangos a chuddio ar yr amser cywir: - -```blocks3 -when I receive [cwsmer nesaf v] -hide // cwsmer blaenorol yn cymryd y bag -wait [1] seconds -show -``` - -**Profi:** Rho gynnig ar dy brosiect a gwa'n siŵr bod eitemau'n llithro i'r cynhwysydd ac yn cuddio. - -**Difa chwilod:** Gwiria dy sgriptiau'n ofalus a gwna'n siŵr dy fod wedi diweddaru pob un o dy gorluniau **Eitem**. Galli di daro golwg ar [Crysau Cŵl](https://scratch.mit.edu/projects/812469262/editor){:target="_blank"} os oes angen i ti weld enghraifft weithredol. - ---- /collapse --- - -Mae'r prosiect Hufen iâ yn dangos yr hufen iâ wrth i'r cwsmer ddewis. - ---- collapse --- - ---- - -title: Addasu a dangos corlun - ---- - -Mae angen i bob eitem `ddarlledu`{:class="block3events"} yn ei sgript `pan gaiff y corlun hwn ei glicio`{:class="block3events"}: - -```blocks3 -+broadcast (1 sgŵp v) -``` - -Wedyn mae angen i'r corlun rwyt ti am ei ddangos neu ei newid ymateb i'r neges honno: - -```blocks3 -when I receive [1 sgŵp v] -play sound (Chomp v) until done -switch costume to (1 sgŵp v) -``` - -Efallai y byddi di hefyd am newid neu guddio'r corlun ar gyfer cwsmer newydd: - -```blocks3 -when I receive [cwsmer nesaf v] -switch costume to (côn v) -``` - -Os oes gen ti sawl eitem, bydd angen i ti ychwanegu mwy o negeseuon a sgriptiau i'w derbyn. - ---- /collapse --- - ---- /task --- - -Wyt ti wedi sylwi y gall dy gwsmer ychwanegu eitemau ar ôl iddyn nhw ddechrau talu? - ---- task --- - -Os wyt ti am rwystro'r cwsmer rhag ychwanegu eitemau pan fyddan nhw wrth y ddesg dalu, galli di ychwanegu newidyn `siop`{:class="block3variables"} a'i ddefnyddio i reoli pryd mae modd ychwanegu eitemau. - ---- collapse --- - ---- -title: Caniatáu prynu dim ond pan dydy'r cwsmer ddim wrth y ddesg dalu - ---- - -Ychwanega `newidyn`{:class="block3variables"} o'r enw `siop` ar gyfer pob corlun. Byddi di'n gosod hwn i `gwir` pan fydd y cwsmer yn y siop ac `anwir` pan fydd wrth y ddesg dalu. - -Dewisa dy gorlun **gwerthwr**. Diweddara dy sgript `pan fo'r flag werdd yn cael ei glicio`{:class="block3events"} i ganiatáu siopa pan fydd dy brosiect yn dechrau: - -```blocks3 -+set [siop v] to [gwir] -``` - -Nawr ychwanega floc i newid y `siop`{:class="block3variables"} i `anwir` ar ddechrau sgript `pan gaiff y ciplun yma ei glicio`{:class="block3events"} dy **werthwr**: - -```blocks3 -+set [siop v] to [anwir] -``` - -A bloc i osod y newidyn `siop`{:class="block3variables"} yn ôl i `gwir` ar ddiwedd yr un sgript: - -```blocks3 -+set [siop v] to [gwir] -``` - -Nawr mae angen i ti ddiweddaru'r eitemau rwyt ti'n eu gwerthu i wirio'r newidyn `siop`{:class="block3variables"}: - -```blocks3 -when this sprite clicked -+if <(siop) = [gwir]> then -start sound (Coin v) -change [cyfanswm v] by [10] -end -``` - -Bydd angen gwneud hyn ar gyfer pob eitem rwyt ti'n ei werthu yn dy siop. - -**Profi:** Clicia'r faner werdd ac wedyn rho gynnig ar siopa. Gwna'n siŵr y galli di ychwanegu eitemau a thalu o hyd, ond nad yw hi'n bosib ychwanegu eitemau ar ôl i ti ddechrau talu. - -**Difa chwilod:** Cymer olwg ofalus dros dy god. Galli di edrych ar y prosiect [Ffrwyth o'r Gofod](https://scratch.mit.edu/projects/812347333/editor){:target="_blank"} os oes angen i ti weld enghraifft weithredol. - ---- /collapse --- - ---- /task --- - ---- save --- - +## Nodweddion ychwanegol \ No newline at end of file diff --git a/cy-GB/step_6.md b/cy-GB/step_6.md index ba78c484e..9f280685a 100644 --- a/cy-GB/step_6.md +++ b/cy-GB/step_6.md @@ -1 +1,230 @@ -## Cwis cyflym \ No newline at end of file +## Cwis cyflym + +
+
+Mae llawer o nodweddion y gallet ti eu hychwanegu i wella profiad siopa dy gwsmeriaid. Does dim angen i ti ychwanegu popeth. Dim ond y gwelliannau ti'n meddwl sy'n bwysig mae'n rhaid eu hychwanegu. +
+
+![](images/customer-count.png){:width="300px"} +
+
+ +--- task --- + +Ychwanegu mwy o eitemau i'w gwerthu. + +--- /task --- + +--- task --- + +Ychwanegu mwy o effeithiau graffeg a sain. + +--- /task --- + +--- task --- + +Paentio dy olygfeydd dy hun a gwisgoedd eraill. + +--- /task --- + +--- task --- + +Creu busnes arall a chaniatáu i chwaraewyr ymweld â'r ddau. + +--- /task --- + +Mae gan bob prosiect enghreifftiol yn [Cyflwyniad](.) ddolen Gweld tu mewn er mwyn i ti allu agor y prosiect ac edrych ar y cod i gael syniadau, a gweld sut maen nhw'n gweithio. Galli di 'Weld tu mewn' i brosiectau enghreifftiol i daro golwg ar sut maen nhw'n gweithio. + +Example projects: **Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Vending machine**: [See inside](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} + +**Tip:** If you are logged in to a Scratch account, then you can use the **Backpack** to copy scripts or sprites to your project. + +[[[scratch-backpack]]] + +### Chatty checkout! + +Your checkout person (or machine) could ask whether the service was good, or if the customer is having a nice day. + +--- task --- + +Add `ask`{:class="block3sensing"} blocks to your **seller**'s `when this sprite clicked`{:class="block3events"} script and `say`{:class="block3looks"} different things depending on the customer's response. + +--- collapse --- + +--- +title: Ask and respond to questions +--- + +```blocks3 +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds +else +say [Maybe I should add more items to my shop] for [2] seconds +end +``` + +**Debug:** Check that you have spelled the options correctly in your code and in your answer. It's OK if you use capital letters, so "Yes" and "YES" will match "yes". + +Add multiple questions to create a chatbot or non-player character that you can talk to. + +--- /collapse --- + +--- /task --- + +### Bag the items + +--- task --- + +The Cool Shirts project has shirts that glide into a bag. + +--- collapse --- + +--- +title: Make items glide into a container +--- + +Add a **Container** sprite. You could use an existing sprite like the **Gift** or **Take out** sprite, or paint your own with simple shapes. + +Add a script to make the **Container** always appear at the front: + +```blocks3 +when flag clicked +forever +go to [front v] layer +end +``` + +Then you'll need to add code to each **Item** you have for sale to make them glide to the container when they are clicked: + +```blocks3 +when this sprite clicked ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite ++hide +change [total v] by [12] ++go to x: [-180] y: [68] // start position ++show +``` + +If you don't want the container there all the time, you can add scripts to make it show and hide at the right time: + +```blocks3 +when I receive [next customer v] +hide // previous customer takes the bag +wait [1] seconds +show +``` + +**Test:** Try your project and make sure items glide to the container and hide. + +**Debug:** Check your scripts carefully and make sure you have updated all of your **Item** sprites. You can look at [Cool Shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} if you need to see a working example. + +--- /collapse --- + +--- /task --- + +###  Stop adding items when the customer is at the checkout + +--- task --- + +Add a `shop`{:class="block3variables"} variable and use it to control when items can be added. + +--- collapse --- + +--- +title: Stop purchases when the customer is at the checkout +--- + +Add a `variable`{:class="block3variables"} called `shop` for all sprites. You will set this to `true` when the customer is in the shop and `false` when they are at the checkout. + +Select your **seller** sprite. Update the `when flag clicked`{:class="block3events"} script to allow shopping when your project starts: + +```blocks3 ++set [shop v] to [true] +``` + +Now add a block to change the `shop`{:class="block3variables"} to `false` at the beginning of your **seller**'s `when this sprite clicked`{:class="block3events"} script: + +```blocks3 ++set [shop v] to [false] +``` + +And a block to set the `shop`{:class="block3variables"} variable back to `true` at the end of the same script: + +```blocks3 ++set [shop v] to [true] +``` + +Now you need to update the items you sell to check the `shop`{:class="block3variables"} variable: + +```blocks3 +when this sprite clicked ++if <(shop) = [true]> then +start sound (Coin v) +change [total v] by [10] +end +``` +You will need to do this for every item you sell in your shop. + +**Test:** Click the green flag then try shopping. Check that you can still add items and checkout, but you can't add items once you have started checking out. + +**Debug:** Check your code really carefully. You can look at the [Space Fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project if you need to see a working example. + +--- /collapse --- + +--- /task --- + +--- task --- + +### Give the customer the option to cancel their shopping. + +--- collapse --- + +--- +title: Set up pay and cancel options +--- + +`Ask`{:class="block3sensing"} `Would you like to pay or cancel?`. Add an `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `pay` and inside it put your existing payment blocks. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end +``` + +Add a second `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `cancel` and inside it add code to cancel the order. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] +end +``` + +--- /collapse --- + +--- /task --- + +Take a look at our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio to see projects created by community members. + +--- save --- diff --git a/cy-GB/step_7.md b/cy-GB/step_7.md index 90ac06d5e..f41fc373e 100644 --- a/cy-GB/step_7.md +++ b/cy-GB/step_7.md @@ -1,22 +1,9 @@ ## Uwchraddio dy brosiect -
-
-Os oes gen ti amser, fe allet ti uwchraddio dy brosiect. -
-
-![](images/upgrade-image.png){:width="300px"} -
-
- Dyma rai syniadau gallet ti roi cynnig arnyn nhw: -- Ychwanegu mwy o eitemau i'w gwerthu -- Ychwanegu mwy o effeithiau graffeg a sain -- Paentio dy olygfeydd dy hun a gwisgoedd eraill -- Creu busnes arall a chaniatáu i chwaraewyr ymweld â'r ddau Mae gan bob prosiect enghreifftiol yn [Cyflwyniad](.) ddolen Gweld tu mewn er mwyn i ti allu agor y prosiect ac edrych ar y cod i gael syniadau, a gweld sut maen nhw'n gweithio. Cymer olwg ar ein stiwdio Scratch ['Marchnad siopa rhyngalaethol'](https://scratch.mit.edu/studios/29662180){:target="_blank"} i weld prosiectau a grëwyd gan aelodau'r gymuned. ---- save --- +![Prosiectau siop enghreifftiol yn y stiwdio Scratch 'Marchnad siopa rhyngalaethol'.](images/studio-example.png) diff --git a/cy-GB/step_8.md b/cy-GB/step_8.md index f7624f107..048521e11 100644 --- a/cy-GB/step_8.md +++ b/cy-GB/step_8.md @@ -1,53 +1,21 @@ ## Rhannu -Os wyt ti mewn clwb, beth am rannu dy brosiect â dy ffrindiau? +If you are following the [More Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch) path, you can move on to the [Don't fall in](https://projects.raspberrypi.org/en/projects/dont-fall-in) project. Yn y prosiect yma, byddi di'n creu gêm o'r brig i lawr lle mae'n rhaid i ti neidio o blatfform i blatfform a pheidio disgyn i mewn. -Os wyt ti wedi mewngofnodi ar Scratch, galli di greu stiwdio ac ychwanegu dy brosiect **Cwsmer nesaf plîs**. Galli di hefyd ychwanegu prosiectau **prosiect cwsmer plîs** dy ffrindiau greu canolfan o wahanol siopau a busnesau. +--- print-only --- ---- collapse --- +![Prosiect Paid disgyn i mewn](images/dont-fall-in-project.png) ---- -title: Adeiladu marchnad siopa ---- +--- /print-only --- -Cadwa dy brosiect, ac wedyn clicio ar dy enw defnyddiwr a dewis **Fy Mhethau**. +--- no-print --- -![y ddewislen naid o dan dy enw cyfrif ar y dde uchaf.](images/my-stuff-menu.png) +
+ +
O dy dudalen **Fy Mhethau**, clicia ar y botwm **+ Stiwdio Newydd**. -![Y botwm llwyd 'Stiwdio Newydd' ar y dudalen 'Fy Mhethau'.](images/create-studio.png) +--- /no-print --- Rho enw a disgrifiad i dy stiwdio newydd. - -![Y blwch enw ar frig y stiwdio a'r blwch disgrifiad ar ochr chwith y stiwdio.](images/naming-studio.png) - -Clicia ar y botwm **Pori Projectau**. Galli di ychwanegu dy brosiect dy hun drwy ei ddewis o'r rhestr ar waelod y dudalen. - -![Y neidlen 'Pori Projectau' ar waelod y dudalen gydag oriel o fân-luniau prosiectau. ](images/add-your-projects.png) - -Galli di hefyd ychwanegu prosiectau mae dy ffrindiau wedi'u creu. Gofynna iddyn nhw rannu eu prosiect a rhoi'r ddolen i ti. Teipia neu ludo'r ddolen i'r blwch url, ac wedyn clicio ar y botwm **Ychwanegu trwy URL**. - -![Y blwch url o dan y botwm 'Pori Projectau' a'r botwm 'Ychwanegu trwy URL'.](images/path.png) - ---- /collapse --- - -Rhanna dy brosiect ac anfona ddolen at bobl rwyt ti'n eu hadnabod. Bydd cymuned Scratch gyfan hefyd yn gallu dod o hyd i dy prosiect a rhoi cynnig arno. - -[[[share-scratch]]] - -Beth am wahodd dy ffrindiau i greu prosiect? Gad iddyn nhw wybod dy fod wedi cael hwyl. - -Os oes gen ti gyfrif Scratch, ac rwyt ti wedi rhannu dy brosiect **Cwsmer nesaf, plîs** yn barod, cadwa lygad am sylwadau efallai bydd pobl eraill yn eu gwneud am dy greadigaeth. Mae adborth yn ffordd wych o fyfyrio ar dy waith. Anwybydda unrhyw sylwadau sy'n ddi-fudd neu'n amherthnasol. - -[[[comments-feedback-scratch]]] - ---- task --- - -Dyro ysbrydoliaeth i gymuned y Raspberry Pi Foundation gyda dy brosiect! - -I gyflwyno dy brosiect i'n ['marchnad siopa rhyngalaethol'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Stiwdio Scratch, cwblha'r [ffurflen hon](https://form.raspberrypi.org/f/community-project-submissions){:target="_blank"}. - -![Prosiectau siop enghreifftiol yn y stiwdio Scratch 'Marchnad siopa rhyngalaethol'.](images/studio-example.png) - ---- /task --- diff --git a/el-GR/images/dont-fall-in-project.png b/el-GR/images/dont-fall-in-project.png new file mode 100644 index 000000000..003a7787c Binary files /dev/null and b/el-GR/images/dont-fall-in-project.png differ diff --git a/el-GR/meta.yml b/el-GR/meta.yml index 2489cca62..4f687810c 100644 --- a/el-GR/meta.yml +++ b/el-GR/meta.yml @@ -2,21 +2,27 @@ title: Επόμενος πελάτης παρακαλώ hero_image: images/banner.png description: Ένα έργο προσομοίωσης καταστήματος όπου ο πελάτης μπορεί να αγοράσει αντικείμενα. +meta_title: Scratch coding projects for kids and teens | Next customer please +meta_description: Learn Scratch with the Raspberry Pi Foundation's coding projects for kids and teens. Make a Scratch app where the customer can buy items from your shop. version: 4 listed: true copyedit: false -last_tested: '2021-03-26' +last_tested: "2021-03-26" steps: - - title: Εισαγωγή - - title: Η επιχειρηματική σου ιδέα - - title: Αντικείμενα προς πώληση + - + title: Εισαγωγή + - + title: Η επιχειρηματική σου ιδέα + - + title: Αντικείμενα προς πώληση completion: - engaged - - title: Αγορές - - title: Επιπρόσθετα χαρακτηριστικά + - + title: Αγορές completion: - internal - - title: Αναστοχασμός + - + title: Επιπρόσθετα χαρακτηριστικά knowledge_quiz: path: quiz1 version: 1 @@ -24,5 +30,8 @@ steps: passing_score: 3 completion: - external - - title: Αναβάθμισε το έργο σου - - title: Κοινοποίηση \ No newline at end of file + - + title: Αναστοχασμός + challenge: true + - + title: Αναβάθμισε το έργο σου diff --git a/el-GR/quiz1/question_1.md b/el-GR/quiz1/question_1.md index 4dc34e73c..7b1d1c3ec 100644 --- a/el-GR/quiz1/question_1.md +++ b/el-GR/quiz1/question_1.md @@ -1,21 +1,15 @@ ## Και τώρα; -Μπράβο, χρησιμοποίησες τις δεξιότητές σου για να σχεδιάσεις και να δημιουργήσεις μια εφαρμογή καταστήματος! +Απάντησε στις τρεις ερωτήσεις. Υπάρχουν συμβουλές που θα σε καθοδηγήσουν στη σωστή απάντηση. Έχεις χρησιμοποιήσει τα μπλοκ `Συμβάντα`{:class="block3events"}, `Έλεγχος`{:class="block3control"}, `Αισθητήρες`{:class="block3sensing"}, `Τελεστές`{:class="block3operators"}, `Μεταβλητές`{:class="block3motion"}, `Όψεις`{:class="block3looks"} και `Ήχος`{:class="block3sound"}! Τώρα, ήρθε η ώρα να εξετάσεις τις νέες γνώσεις- ο αναστοχασμός είναι σημαντικό μέρος της μάθησης, επειδή βοηθά στη δημιουργία νέων συνδέσεων στον εγκέφαλό σου. -Απάντησε στις τρεις ερωτήσεις παρακάτω για να διαπιστώσεις τι έμαθες. - -Μετά από κάθε ερώτηση, πάτησε Υποβολή. Θα οδηγηθείς στη σωστή απάντηση. Μπορείς να επαναλάβεις αυτήν τη δραστηριότητα όσες φορές θέλεις. - -Καλή διασκέδαση! - --- question --- --- -legend: Ερώτηση 1 από 3 +legend: Question 1 of 3 --- Ένα έργο καταστήματος χρησιμοποιεί μια μεταβλητή `σύνολο`{:class="block3variables"} για την αποθήκευση του συνόλου για κάθε πελάτη. @@ -23,59 +17,48 @@ legend: Ερώτηση 1 από 3 + Ένας πελάτης προσθέτει αντικείμενα που συνολικά κοστίζουν `50` και πληρώνει + Ένας νέος πελάτης προσθέτει αντικείμενα που συνολικά κοστίζουν `40`, αλλά το `σύνολο`{:class="block3variables"} εμφανίζεται τώρα ως `90` για τον δεύτερο πελάτη -Ποιο μπλοκ θα πρέπει να προσθέσεις στο script πληρωμής για να επιστρέψει το σύνολο στο `0` όταν πληρώνει κάθε πελάτης; - -```blocks3 -when this sprite clicked -ask [Θέλεις να πληρώσεις ή να ακυρώσεις;] and wait -if {(answer) = [πληρωμή]} then -say (join [Αυτό θα είναι ] (σύνολο)) for (2) seconds -play sound [coin v] until done -say (join [Ευχαριστώ για τις αγορές σου στο ] (όνομα)) for (2) seconds -broadcast [επόμενος πελάτης v] -end -``` +Καλή διασκέδαση! --- choices --- - ( ) ```blocks3 -change [σύνολο v] by [0] +change [total v] by [0] ``` --- feedback --- -Όχι ακριβώς, το `σύνολο`{:class="block3variables"} θα πρέπει να είναι `0` μετά την πληρωμή ενός πελάτη, αλλά δεν είναι το μπλοκ `άλλαξε`{:class="block3variables"} που χρειάζεσαι. +Ποιο μπλοκ θα πρέπει να προσθέσεις στο script πληρωμής για να επιστρέψει το σύνολο στο `0` όταν πληρώνει κάθε πελάτης; --- /feedback --- - ( ) ```blocks3 -set [σύνολο v] to [40] +set [total v] to [40] ``` --- feedback --- - Όχι ακριβώς, αυτό θα λειτουργούσε για τον δεύτερο πελάτη, αλλά το `σύνολο`{:class="block3variables"} θα ήταν λάθος για άλλους πελάτες. + Όχι ακριβώς, το `σύνολο`{:class="block3variables"} θα πρέπει να είναι `0` μετά την πληρωμή ενός πελάτη, αλλά δεν είναι το μπλοκ `άλλαξε`{:class="block3variables"} που χρειάζεσαι. --- /feedback --- - (x) ```blocks3 -set [σύνολο v] to [0] +set [total v] to [0] ``` --- feedback --- -Ναι, αυτό είναι σωστό. Πρέπει να `ορίσεις`{:class="block3variables"} το `σύνολο`{:class="block3variables"} σε `0` μετά την πληρωμή κάθε πελάτη. +Ναι, αυτό είναι σωστό. Πρέπει να ορίσεις ``{:class="block3variables"} το `σύνολο`{:class="block3variables"} σε `0` μετά την πληρωμή κάθε πελάτη. --- /feedback --- - ( ) ```blocks3 -change [σύνολο v] by [-50] +change [total v] by [-50] ``` --- feedback --- diff --git a/el-GR/quiz1/question_2.md b/el-GR/quiz1/question_2.md index 50628b4d1..d22c76db1 100644 --- a/el-GR/quiz1/question_2.md +++ b/el-GR/quiz1/question_2.md @@ -2,17 +2,17 @@ --- question --- --- -legend: Ερώτηση 2 από 3 +legend: Question 2 of 3 --- Σε ένα κατάστημα, ο **πωλητής** έχει αυτόν τον κώδικα στο script ολοκλήρωσης της αγοράς: ```blocks3 -ask [Πώς είσαι σήμερα;] and wait -if <(answer) = [καλά]> then -say [Αυτό είναι φανταστικό!] for [2] seconds +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds else -say [Λυπάμαι που το ακούω αυτό.] for [2] seconds +say [Sorry to hear that.] for [2] seconds end ``` @@ -32,7 +32,7 @@ end --- /feedback --- -- ( ) Ο **Πωλητής** θα πει `Αυτό είναι φανταστικό!` +- (x) Ο **Πωλητής** θα πει `Αυτό είναι φανταστικό!` --- feedback --- @@ -50,7 +50,7 @@ end --- /feedback --- -- ( ) Ο **πωλητής** θα πει `υπέροχο`. +- (x) Ο **πωλητής** θα πει `υπέροχο`. --- feedback --- diff --git a/el-GR/quiz1/question_3.md b/el-GR/quiz1/question_3.md index 6d5d94a87..ee9daa390 100644 --- a/el-GR/quiz1/question_3.md +++ b/el-GR/quiz1/question_3.md @@ -2,10 +2,10 @@ --- question --- --- -legend: Ερώτηση 3 από 3 +legend: Question 3 of 3 --- -Το έργο του Jay δεν λειτουργεί. Τι πρέπει να κάνει; +Your project is not working. What should you do? --- choices --- @@ -21,7 +21,7 @@ legend: Ερώτηση 3 από 3 --- feedback --- - Υπάρχουν πολλά πράγματα που θα μπορούσε να δοκιμάσει ο Jay. Οι σπουδαίοι/ες προγραμματιστές/τριες συχνά κάνουν λάθη την πρώτη φορά και μαθαίνουν πολλά από τα λάθη τους. + There are lots of things you could try. Οι σπουδαίοι/ες προγραμματιστές/τριες συχνά κάνουν λάθη την πρώτη φορά και μαθαίνουν πολλά από τα λάθη τους. --- /feedback --- diff --git a/el-GR/scratch-translatable.txt b/el-GR/scratch-translatable.txt index 0ad9debf6..a8cf177ce 100644 --- a/el-GR/scratch-translatable.txt +++ b/el-GR/scratch-translatable.txt @@ -38,7 +38,7 @@ κατάστημα -true +αληθής ψευδές diff --git a/el-GR/step_1.md b/el-GR/step_1.md index 519aea137..b1567f3c2 100644 --- a/el-GR/step_1.md +++ b/el-GR/step_1.md @@ -2,80 +2,51 @@ Δημιούργησε μια εφαρμογή καταστήματος όπου ο πελάτης μπορεί να αγοράσει προϊόντα από το κατάστημά σου. Το έργο θα είναι σε προβολή πρώτου προσώπου όπου ο παίκτης είναι πελάτης. -

-**Προβολή πρώτου προσώπου** σημαίνει ότι δεν βλέπεις τον χαρακτήρα σου στην οθόνη, αντίθετα βλέπεις αυτό που βλέπει. -

- -Θα χρειαστεί να: -+ Δημιουργήσεις μια εφαρμογή καταστήματος με προϊόντα προς αγορά και ένα ταμείο -+ Προγραμματίσεις το χρόνο σου για να αποκτήσεις γρήγορα μια απλή έκδοση -+ Δοκιμάσεις καταστήματα από άλλους και να μοιραστείς το κατάστημά σου, ώστε να το δοκιμάσουν και άλλοι - -![](images/example-strip.png) - --- no-print --- ---- task --- +Click on Space Fruit to buy them and watch the total go up. Όταν είσαι έτοιμος/η, κάνε κλικ στο Kiran για να το πας στο ταμείο. -
-
- -### Δοκίμασε το - -Κάνε κλικ στα Διαστημικά Φρούτα για να τα αγοράσεις και δεις το σύνολο να αυξάνεται. Όταν είσαι έτοιμος/η, κάνε κλικ στο Kiran για να το πας στο ταμείο. - -+ Τι θα συμβεί αν προσπαθήσεις να πας στο ταμείο πριν επιλέξεις κάποιο φρούτο; -+ Πώς πιστεύεις ότι το έργο γνωρίζει ότι δεν έχεις προσθέσει κανένα φρούτο ακόμα; ++ Δημιουργήσεις μια εφαρμογή καταστήματος με προϊόντα προς αγορά και ένα ταμείο ++ Προγραμματίσεις το χρόνο σου για να αποκτήσεις γρήγορα μια απλή έκδοση -
-**Φρέσκα Διαστημικά Φρούτα**: [Δες μέσα](https://scratch.mit.edu/projects/707264633/editor){:target="_blank"} +**Φρέσκα Διαστημικά Φρούτα**: [Δες μέσα](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"}
- +
---- /task --- - ### Πάρε έμπνευση -Θα πάρεις κάποιες σχεδιαστικές αποφάσεις για να επιλέξεις ποια είδη θα προσφέρει η επιχείρησή σου και πώς θα πληρώσει ο πελάτης. - ---- task --- - -Μελέτησε τα παρακάτω παραδείγματα καταστημάτων για να πάρεις ιδέες. Ποια έργα σου επιτρέπουν να αγοράζεις πολλά προϊόντα ταυτόχρονα; Ποια σου επιτρέπουν να αγοράζεις προϊόντα ένα-ένα; - -Κάνε κλικ στο αντικείμενο **πωλητής** για να αγοράσεις προϊόντα: +**Κατάστημα Παγωτού**: [Δες μέσα](https://scratch.mit.edu/projects/707265403/editor){:target="_blank"} -**Καταπληκτικά Μπλουζάκια**: [Δες μέσα](https://scratch.mit.edu/projects/707261374/editor){:target="_blank"} +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"}
- +
-**Κατάστημα Παγωτού**: [Δες μέσα](https://scratch.mit.edu/projects/707265403/editor){:target="_blank"} +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"}
- +
-**Αυτόματος πωλητής**: [Δες μέσα](https://scratch.mit.edu/projects/707265597/editor){:target="_blank"} +**⭐ Pride pins** (featured community project) + +Click on the pride pin badges to add them to your shopping bag: +
- +
---- /task --- - --- /no-print --- --- print-only --- ### Πάρε έμπνευση -Θα πάρεις μερικές σχεδιαστικές αποφάσεις για να δημιουργήσεις τον χαρακτήρα σου. Δες τις λεπτομέρειες για τα παραδείγματα έργων στο [Scratch 2: Επόμενος πελάτης παρακαλώ! - Παραδείγματα](https://scratch.mit.edu/studios/29611454/){:target="_blank"} Scratch studio. +Θα πάρεις μερικές σχεδιαστικές αποφάσεις για να δημιουργήσεις τον χαρακτήρα σου. See inside example projects in the Scratch 2: Next customer please! Scratch studio at https://scratch.mit.edu/studios/29611454 -![Παράδειγμα έργου](images/fruit.png) -![Παράδειγμα έργου](images/tshirt.png) -![Παράδειγμα έργου](images/icecream.png) -![Παράδειγμα έργου](images/vending.png) +![Παράδειγμα έργου](images/fruit.png) ![Παράδειγμα έργου](images/tshirt.png) ![Παράδειγμα έργου](images/icecream.png) ![Παράδειγμα έργου](images/vending.png) --- /print-only --- diff --git a/el-GR/step_2.md b/el-GR/step_2.md index a4a7340b3..cb0341a9d 100644 --- a/el-GR/step_2.md +++ b/el-GR/step_2.md @@ -2,7 +2,7 @@
-Ποια είναι η επιχειρηματική σου ιδέα; Θα μπορούσε να είναι κάτι ρεαλιστικό, κάτι από βιβλίο ή ταινία που σου αρέσει ή κάτι εντελώς τρελό. +What is your shop idea? Θα μπορούσε να είναι κάτι ρεαλιστικό, κάτι από βιβλίο ή ταινία που σου αρέσει ή κάτι εντελώς τρελό.
![](images/step2-image.png){:width="300px"} @@ -11,150 +11,70 @@ --- task --- -Άνοιξε ένα [νέο έργο Scratch](http://rpf.io/scratch-new){:target="_blank"} και δες την ποικιλία των αντικειμένων και υποβάθρων που μπορείς να χρησιμοποιήσεις. Αφιέρωσε λίγο χρόνο για να σκεφτείς την επιχειρηματική σου ιδέα. - -[[[working-offline]]] +Άνοιξε ένα [νέο έργο Scratch](http://rpf.io/scratch-new){:target="_ blank"} και δες την ποικιλία των αντικειμένων και υποβάθρων που μπορείς να χρησιμοποιήσεις. Spend some time thinking about your shop idea. --- /task --- -Τι υπόβαθρο και επιπλέον αντικείμενα για την σκηνή σου θα χρειαστείς; -+ Ένα υπόβαθρο από τη βιβλιοθήκη του Scratch ή ένα απλό έγχρωμο υπόβαθρο; -+ Ένα γραφείο, πάγκο ή παράθυρο για να εκθέσεις τα προϊόντα προς πώληση; -+ Ένα ράφι ή βιβλιοθήκη για να τοποθετήσεις προϊόντα — μπορείς να το δημιουργήσεις με τη Ζωγραφική στο υπόβαθρο - --- task --- -Κάνε κλικ στο **Επιλέξτε Υπόβαθρο** ή ζωγράφισε το δικό σου υπόβαθρο. +Τι υπόβαθρο και επιπλέον αντικείμενα για την σκηνή σου θα χρειαστείς; ![](images/choose-backdrop-icon.png) -Κάνε κλικ στο **Επιλέξτε ένα Αντικείμενο** και πρόσθεσε ή ζωγράφισε επιπλέον αντικείμενα στο σκηνικό. - -![](images/choose-sprite-icon.png) - -Μπορείς να προσθέσεις περισσότερα αντικείμενα στο σκηνικό αργότερα, εάν διαπιστώσεις ότι το χρειάζεσαι. ++ Ένα υπόβαθρο από τη βιβλιοθήκη του Scratch ή ένα απλό έγχρωμο υπόβαθρο; --- /task --- -Πώς θα μοιάζει το αντικείμενο του **πωλητή**; -+ Ένα άτομο ή NPC, όπως καταστηματάρχης, αγρότης ή βιβλιοθηκάριος; -+ Ένα μηχάνημα όπως αυτόματος πωλητής, jukebox ή ταμειακή μηχανή; - -

**NPC** είναι ένας χαρακτήρας που δεν διαχειρίζεται ο παίκτης με τον οποίο μπορείς να αλληλεπιδράσεις σε ένα παιχνίδι ή διαδραστική ιστορία. Μπορείς να σκεφτείς παιχνίδια που έχεις παίξει και έχουν NPC; Την επόμενη φορά που θα παίξεις, σκέψου πως ήταν δουλειά κάποιου να φτιάξει αυτόν τον χαρακτήρα. -

- --- task --- -Πρόσθεσε ένα αντικείμενο που θα παίξει τον ρόλο του πωλητή. +Κάνε κλικ στο **Επιλέξτε ένα Αντικείμενο** και πρόσθεσε ή ζωγράφισε επιπλέον αντικείμενα στο σκηνικό. ![](images/choose-sprite-icon.png) --- /task --- -Ποιο είναι το όνομα της επιχείρησής σου; - --- task --- -Δημιούργησε μία `μεταβλητή`{:class="block3variables"} που να ονομάζεται `όνομα`: - ---- collapse --- - ---- - -title: Δημιουργία μεταβλητής - ---- - -Από το μενού μπλοκ `Μεταβλητές`{:class="block3variables"} κάνε κλικ στο κουμπί **Δημιουργία μεταβλητής**. - -Κάλεσε τη νέα σου μεταβλητή `όνομα`: - -![Το αναδυόμενο παράθυρο Νέα μεταβλητή με εισαγωγή κειμένου «όνομα».](images/new-variable.png) - -**Σημείωση:** Η νέα μεταβλητή `όνομα` εμφανίζεται στη Σκηνή και μπορεί πλέον να χρησιμοποιηθεί στα μπλοκ `Μεταβλητές`{:class="block3variables"}. - ---- /collapse --- - -Κάνε κλικ στο δικό σου αντικείμενο **πωλητή** και πρόσθεσε κώδικα για να ορίσεις τη μεταβλητή ως το όνομα της επιχείρησής σου: - -```blocks3 -when flag clicked -set [όνομα v] to () //πληκτρολόγησε το όνομα της επιχείρησής σου -``` - -Δημιούργησε μία πινακίδα στο Σκηνικό με τη μεταβλητή σου: - ---- collapse --- - ---- - -title: Άλλαξε την εμφάνιση και τη θέση των μεταβλητών - ---- - -Κάνε δεξί κλικ ξανά στη `μεταβλητή`{:class="block3variables"} που εμφανίζεται στη Σκηνή και επίλεξε μεγάλη προβολή κειμένου: - -![Αναδυόμενο μενού που εμφανίζει επιλογές μορφοποίησης με επιλεγμένη τη «μεγάλη προβολή κειμένου».](images/large-readout.png) - -Σύρε τη `μεταβλητή`{:class="block3variables"} για να την τοποθετήσεις ως μέρος του σκηνικού του καταστήματος. - ---- /collapse --- +Πώς θα μοιάζει το αντικείμενο του **πωλητή**; ++ Ένα άτομο ή NPC, όπως καταστηματάρχης, αγρότης ή βιβλιοθηκάριος; ++ Ένα ράφι ή βιβλιοθήκη για να τοποθετήσεις προϊόντα — μπορείς να το δημιουργήσεις με τη Ζωγραφική στο υπόβαθρο --- /task --- --- task --- -**Δοκιμή:** Βεβαιώσου ότι μπορείς να δεις το όνομα της επιχείρησής σου ως την τιμή της μεταβλητής στο Σκηνικό. - ---- /task --- - -Ετοιμάσου να υποδεχτείς τον πρώτο σου πελάτη. - ---- task --- +Πρόσθεσε ένα αντικείμενο που θα παίξει τον ρόλο του πωλητή. -Κάνε κλικ στο αντικείμενο του **πωλητή** και πρόσθεσε ένα μπλοκ `μετάδωσε`{:class="block3control"}. Δημιούργησε ένα νέο μήνυμα που ονομάζεται `επόμενος πελάτης`. +Θα μπορούσες να επιλέξεις: ++ A person or non-player character such as a shopkeeper, farmer, or librarian ++ A machine such as a vending machine, jukebox, or cash register -```blocks3 -when flag clicked -set [όνομα v] to [το κατάστημά μου] // το όνομα της επιχείρησής σου -+ broadcast (επόμενος πελάτης v) -``` +![](images/choose-sprite-icon.png) --- /task --- +### Welcome your first customer. + --- task --- -Δημιούργησε ένα νέο script για τον **πωλητή** σου για να `πει`{:class="block3looks"} `Επόμενος πελάτης παρακαλώ` όταν λάβει την `μετάδοση`{:class="block3control"} `επόμενος πελάτης`{:class="block3control"}. +Click on your **seller** sprite and add a `broadcast`{:class="block3events"} block. Create a new message called `next customer`. ```blocks3 -when I receive [επόμενος πελάτης v] -say [Επόμενος πελάτης παρακαλώ!] for (2) seconds +when flag clicked +set [όνομα v] to () //πληκτρολόγησε το όνομα της επιχείρησής σου ``` --- /task --- --- task --- -**Εντοπισμός σφαλμάτων:** Ενδέχεται να βρεις κάποια σφάλματα στο έργο σου που πρέπει να διορθώσεις. Εδώ είναι ένα συνηθισμένο σφάλμα. - ---- collapse --- - ---- - -title: Η μεταβλητή δείχνει `0` - ---- - -Θα πρέπει να χρησιμοποιήσεις το μπλοκ `όρισε [όνομα v] σε ()`{:class="block3variables"} για να ορίσεις τη μεταβλητή σύμφωνα με το δικό σου όνομα. Εάν έχεις ήδη προσθέσει ένα script, έλεγξε ότι έχεις πληκτρολογήσει το όνομα της επιχείρησής σου στην τιμή και ότι έχεις κάνει κλικ στην πράσινη σημαία. +Από το μενού μπλοκ `Μεταβλητές`{:class="block3variables"} κάνε κλικ στο κουμπί **Δημιουργία μεταβλητής**. ```blocks3 -when flag clicked -set [όνομα v] to [το κατάστημά μου] // το όνομα της επιχείρησής σου +when I receive [next customer v] +say [Next customer please!] for (2) seconds ``` ---- /collapse --- - --- /task --- --- save --- diff --git a/el-GR/step_3.md b/el-GR/step_3.md index 13a33cb0d..4a92e48b0 100644 --- a/el-GR/step_3.md +++ b/el-GR/step_3.md @@ -30,7 +30,7 @@ --- task --- -Πρόσθεσε ένα αντικείμενο για το πρώτο **προϊόν** που πρόκειται να πουλήσεις στο κατάστημά σου. +Πρόσθεσε ένα αντικείμενο για το πρώτο **προϊόν ** που πρόκειται να πουλήσεις στο κατάστημά σου. Εάν θέλεις, μπορείς να προσθέσεις μια τιμή στην ενδυμασία χρησιμοποιώντας το εργαλείο κειμένου στο πρόγραμμα επεξεργασίας Ζωγραφική. Ή να προσθέσεις μια τιμή στο υπόβαθρο και να τοποθετήσεις το αντικείμενο δίπλα της. @@ -44,13 +44,13 @@ --- collapse --- --- -title: Κάνε κλικ για να προσθέσεις ένα αντικείμενο +title: Click to add an item --- ```blocks3 when this sprite clicked start sound (Coin v) -change [σύνολο v] by [10] +change [total v] by [10] ``` --- /collapse --- @@ -87,7 +87,7 @@ change [σύνολο v] by [10] Κάνε κλικ στο νέο σου αντικείμενο για το **Προϊόν** στη λίστα Αντικειμένων και στη συνέχεια, κάνε κλικ στην καρτέλα **Κώδικας**. -Άλλαξε το ποσό στο `σύνολο`{:class="block3variables"} κατά την τιμή του νέου σου προϊόντος. +Άλλαξε το ποσό στο `σύνολο `{:class="block3variables"} κατά την τιμή του νέου σου προϊόντος. --- /task --- @@ -105,7 +105,7 @@ change [σύνολο v] by [10] --- collapse --- --- -title: Το σύνολο δεν πηγαίνει στο 0 όταν κάνω κλικ στην πράσινη σημαία +title: The total doesn't go to 0 when I click the green flag --- Βεβαιώσου ότι έχεις ορίσει την τιμή έναρξης της μεταβλητής `σύνολο`{:class="block3variables"} στο script `όταν γίνει κλικ στη σημαία`{:class="block3events"} στο αντικείμενο του **πωλητή** σου. @@ -114,7 +114,7 @@ title: Το σύνολο δεν πηγαίνει στο 0 όταν κάνω κλ --- collapse --- --- -title: Το σύνολο δεν αυξάνεται κατά το σωστό ποσό όταν κάνω κλικ σε ένα προϊόν +title: The total doesn't increase by the correct amount when I click on an item --- Βεβαιώσου ότι κάθε προϊόν έχει ένα script `όταν γίνει κλικ σε αυτό το αντικείμενο`{:class="block3events"} που αλλάζει το `σύνολο`{:class="block3variables"} κατά το σωστό ποσό για αυτό το προϊόν— ίσως έχεις αλλάξει την τιμή για το λάθος αντικείμενο. diff --git a/el-GR/step_4.md b/el-GR/step_4.md index 64084bc80..e46ef90ce 100644 --- a/el-GR/step_4.md +++ b/el-GR/step_4.md @@ -2,6 +2,7 @@
+ Το αντικείμενο **πωλητής** πρέπει: - να ρωτήσει αν ο πελάτης είναι έτοιμος να πληρώσει για τα προϊόντα - να λάβει την πληρωμή @@ -20,7 +21,7 @@ ```blocks3 when this sprite clicked -say (join [Αυτό θα είναι ] (σύνολο)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds ``` --- /task --- @@ -37,7 +38,7 @@ say (join [Αυτό θα είναι ] (σύνολο)) for (2) seconds ```blocks3 when this sprite clicked -say (join [Αυτό θα είναι ] (σύνολο)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds + play sound [machine v] until done ``` @@ -45,101 +46,17 @@ say (join [Αυτό θα είναι ] (σύνολο)) for (2) seconds --- task --- -Ολοκλήρωσε την πώληση. Όρισε το `σύνολο`{:class="block3variables"} πάλι σε `0` μετά την πληρωμή, `πες`{:class="block3looks"} αντίο και `μετάδωσε`{:class="block3control"} `επόμενος πελάτης`{:class="block3control"}. - -```blocks3 -when this sprite clicked -say (join [Αυτό θα είναι ] (σύνολο)) for (2) seconds -play sound [machine v] until done -+ set [σύνολο v] to (0) -+ say (join [Ευχαριστώ για τις αγορές σου στο ] (όνομα)) for (2) seconds -+ broadcast (επόμενος πελάτης v) -``` - ---- /task --- - ---- task --- - -Ίσως θέλεις να δώσεις στον πελάτη την επιλογή να ακυρώσει τις αγορές του. - ---- collapse --- ---- -title: Ρύθμιση επιλογών πληρωμής και ακύρωσης ---- - -`Ρώτησε`{:class="block3sensing"} `Θέλετε να πληρώσετε ή να ακυρώσετε;`. Πρόσθεσε ένα μπλοκ `Εάν`{:class="block3control"} για την `απάντηση`{:class="block3sensing"} `=`{:class="block3operators"} `πληρωμή` και βάλε μέσα σε αυτό τα υπάρχοντα μπλοκ πληρωμών. +Ολοκλήρωσε την πώληση. Όρισε το `σύνολο`{:class="block3variables"} πάλι σε `0` μετά την πληρωμή, `πες`{:class="block3looks"} αντίο και `μετάδωσε`{:class="block3control"} `επόμενος πελάτης`{: class="block3control"}. ```blocks3 when this sprite clicked -say (join [Αυτό θα είναι ] (σύνολο)) for (2) seconds -+ ask [Θέλεις να πληρώσεις ή να ακυρώσεις;] and wait -+ if {(answer) = [πληρωμή]} then +say (join [That will be ] (total)) for (2) seconds play sound [machine v] until done -set [σύνολο v] to (0) -say (join [Ευχαριστώ για τις αγορές σου στο ] (όνομα)) for (2) seconds -broadcast [επόμενος πελάτης v] -end ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) ``` -Πρόσθεσε ένα δεύτερο μπλοκ `Εάν`{:class="block3control"} για την `απάντηση`{:class="block3sensing"} `=`{:class="block3operators"} `ακύρωση` και πρόσθεσε μέσα σε αυτό τον κώδικα για να ακυρώσεις την παραγγελία. - -```blocks3 -when this sprite clicked -say (join [Αυτό θα είναι ] (σύνολο)) for (2) seconds -ask [Θέλεις να πληρώσεις ή να ακυρώσεις;] and wait -if {(answer) = [πληρωμή]} then -play sound [machine v] until done -set [σύνολο v] to (0) -say (join [Ευχαριστώ για τις αγορές σου στο ] (όνομα)) for (2) seconds -broadcast [επόμενος πελάτης v] -end -+ if {(answer) = [ακύρωση]} then -set [σύνολο v] to (0) -say [Εντάξει. Κανένα πρόβλημα] for (2) seconds -broadcast [επόμενος πελάτης v] -end -``` - ---- /collapse --- - ---- /task --- - ---- task --- - -Για να βεβαιωθείς ότι ο πελάτης σου έχει προϊόντα στο καλάθι του προτού πληρώσει, μπορείς να εισαγάγεις ένα μπλοκ `εάν...αλλιώς`{:class="block3control"}. - ---- collapse --- ---- -title: Έλεγξε το συνολικό ποσό ---- - -`Εάν`{:class="block3control"} `σύνολο`{:class="block3variables"} `>`{:class="block3operators"} `0` τότε τοποθέτησε το υπάρχον script σου. - -`Αλλιώς`{:class="block3control"} `πες`{:class="block3looks"} ένα χρήσιμο μήνυμα. - -```blocks3 -when this sprite clicked -+ if <(σύνολο) > [0]>then -say (join [Αυτό θα είναι ] (σύνολο)) for (2) seconds -ask [Θέλεις να πληρώσεις ή να ακυρώσεις;] and wait -if {(answer) = [πληρωμή]} then -play sound [machine v] until done -set [σύνολο v] to (0) -say (join [Ευχαριστώ για τις αγορές σου στο ] (όνομα)) for (2) seconds -broadcast [επόμενος πελάτης v] -end -if {(answer) = [ακύρωση]} then -set [σύνολο v] to (0) -say [Εντάξει. Κανένα πρόβλημα] for (2) seconds -broadcast [επόμενος πελάτης v] -end -else -say [Κάνε κλικ στα προϊόντα που θέλεις] for (2) seconds -end -``` - ---- /collapse --- - --- /task --- --- task --- @@ -159,10 +76,10 @@ end --- collapse --- --- -title: Ο πωλητής δεν κάνει τίποτα όταν κάνω κλικ πάνω του +title: The seller doesn't do anything when I click on them --- -Έχεις πολλά αντικείμενα στο έργο σου. Βεβαιώσου ότι το script `όταν γίνει κλικ σε αυτό το αντικείμενο`{:class="block3events"} βρίσκεται στο αντικείμενό σου **πωλητής**. +Έχεις πολλά αντικείμενα στο έργο σου. Βεβαιώσου ότι το script `όταν γίνει κλικ σε αυτό το αντικείμενο`{: class = "block3events"} βρίσκεται στο αντικείμενό σου **πωλητής**. **Συμβουλή:** Εάν το έχεις προσθέσει σε λάθος αντικείμενο, μπορείς να σύρεις τον κώδικα στο αντικείμενο **πωλητής** και μετά να το διαγράψεις από το άλλο αντικείμενο. @@ -170,21 +87,7 @@ title: Ο πωλητής δεν κάνει τίποτα όταν κάνω κλι --- collapse --- --- -title: Ο πωλητής λέει "σύνολο" όχι το συνολικό ποσό ---- - -Βεβαιώσου ότι το μπλοκ `πες`{:class="block3looks"} έχει το μπλοκ μεταβλητής `σύνολο`{:class="block3variables"} και όχι τη λέξη `σύνολο`. - -```blocks3 - when this sprite clicked - say {join [Αυτό θα είναι ](σύνολο)} for (2) seconds - ``` - ---- /collapse --- - ---- collapse --- ---- -title: Οι λέξεις στα μπλοκ "πες" συγχωνεύονται μεταξύ τους +title: The words in the say blocks merge together --- Όταν `ενώνεις`{:class="block3operators"} δύο κείμενα μαζί, πρέπει να προσθέτεις ένα κενό στο τέλος του πρώτου σου κειμένου ή στην αρχή του δεύτερου κειμένου. @@ -192,41 +95,41 @@ title: Οι λέξεις στα μπλοκ "πες" συγχωνεύονται Αυτά έχουν ένα κενό στο τέλος του πρώτου μέρους της ένωσης: ```blocks3 -say {join [Αυτό θα είναι ](σύνολο)} for (2) seconds +say {join [That will be ](total)} for (2) seconds -say {join [Ευχαριστώ για τις αγορές σου στο ](όνομα)} for (2) seconds +say {join [Thanks for shopping at ](name)} for (2) seconds ``` --- /collapse --- --- collapse --- --- -title: Το σύνολο δεν επανέρχεται στην αρχική τιμή μετά την πώληση +title: The total doesn't reset after a sale --- Έλεγξε ότι έχεις χρησιμοποιήσει: ```blocks3 -set [σύνολο v] to (0) +set [total v] to (0) ``` **όχι**: ```blocks3 -change [σύνολο v] by (0) +change [total v] by (0) ``` --- /collapse --- --- collapse --- --- -title: Ο πωλητής δεν ανταποκρίνεται +title: The seller isn't responding --- Βεβαιώσου ότι ο `τελεστής`{:class="block3operators"} στη συνθήκη `εάν`{:class="block3control"} είναι το σύμβολο μεγαλύτερο από `>`{:class="block3operators"}. ```blocks3 -if <(σύνολο) > [0]> then +if <(total) > [0]> then ``` --- /collapse --- diff --git a/el-GR/step_5.md b/el-GR/step_5.md index 94dd3ee7a..3f37eb423 100644 --- a/el-GR/step_5.md +++ b/el-GR/step_5.md @@ -1,200 +1 @@ -## Επιπρόσθετα χαρακτηριστικά - -
-
-Υπάρχουν πολλές δυνατότητες που θα μπορούσες να προσθέσεις για να βελτιώσεις την εμπειρία αγορών των πελατών σου. Δεν χρειάζεται να προσθέσεις τα πάντα. Απλώς πρόσθεσε βελτιώσεις που πιστεύεις ότι είναι σημαντικές. - -
-
-![](images/customer-count.png){:width="300px"} -
-
- -Μπορείς να πατήσεις το «Δες μέσα» στα παραδείγματα έργων για να δεις πώς λειτουργούν. - -Παραδείγματα έργων: **Φρέσκα Διαστημικά Φρούτα**: [Δες μέσα](https://scratch.mit.edu/projects/707264633/editor){:target="_blank"} -**Καταπληκτικά μπλουζάκια**: [Δες μέσα](https://scratch.mit.edu/projects/707261374/editor){:target="_blank"} -**Κατάστημα Παγωτού**: [Δες μέσα](https://scratch.mit.edu/projects/707265403/editor){:target="_blank"} -**Αυτόματος πωλητής**: [Δες μέσα](https://scratch.mit.edu/projects/707265597/editor){:target="_blank"} - -**Συμβουλή:** Εάν είσαι συνδεδεμένος/η σε λογαριασμό Scratch, τότε μπορείς να χρησιμοποιήσεις το **Σακίδιο** για να αντιγράψεις scripts ή αντικείμενα στο έργο σου. - -[[[scratch-backpack]]] - ---- task --- - -Πιστεύεις ότι το άτομο (ή το μηχάνημα) που έχεις στο ταμείο θα πρέπει να κάνει περισσότερες ερωτήσεις; - -Μπορείς να προσθέσεις μπλοκ `ρώτησε`{:class="block3sensing"} στο script `όταν γίνει κλικ σε αυτό το αντικείμενο`{:class="block3events"} του **πωλητή** και να `λέει`{:class="block3looks"} διαφορετικά πράγματα ανάλογα με την ανταπόκριση του πελάτη. - -Θα μπορούσες να ρωτήσεις αν η εξυπηρέτηση ήταν καλή ή αν είχαν μια καλή ημέρα. Ή κάτι συγκεκριμένο για το μαγαζί σου, όπως "Τι θα μαγειρέψετε;" - ---- collapse --- - ---- - -title: Ρώτησε και απάντησε σε ερωτήσεις - ---- - -```blocks3 -ask [Βρήκες όλα όσα ήθελες σήμερα;] and wait -if <(answer) = [ναι]> then -say [Αυτό είναι φανταστικό!] for [2] seconds -else -say [Ίσως θα έπρεπε να προσθέσω περισσότερα προϊ'όντα στο κατάστημά μου] for [2] seconds -end -``` - -**Εντοπισμός σφαλμάτων:** Έλεγξε ότι έχεις γράψει σωστά τις επιλογές στον κώδικά σου και στην απάντησή σου. Δεν πειράζει αν χρησιμοποίησες κεφαλαία γράμματα, οπότε το "Ναι" και το "ΝΑΙ" θα ταιριάζουν με το "ναι". - -Πρόσθεσε πολλές ερωτήσεις για να δημιουργήσεις έναν χαρακτήρα chatbot ή NPC με τον οποίο μπορείς να μιλήσεις. - ---- /collapse --- - ---- /task --- - -Θέλεις να συμβεί κάτι άλλο όταν προσθέτεις ένα αντικείμενο; - ---- task --- - -Το έργο Καταπληκτικά Μπλουζάκια έχει μπλουζάκια που γλιστρούν σε μια τσάντα. - ---- collapse --- - ---- - -title: Κάνε τα προϊόντα να γλιστρούν μέσα σε ένα δοχείο - ---- - -Πρόσθεσε ένα αντικείμενο για το **Δοχείο**. Θα μπορούσες να χρησιμοποιήσεις ένα υπάρχον αντικείμενο όπως το **Gift** ή το **Take out** ή να ζωγραφίσεις το δικό σου με απλά σχήματα. - -Πρόσθεσε ένα script για να κάνεις το **Δοχείο** να εμφανίζεται πάντα στο προσκήνιο: - -```blocks3 -when flag clicked -forever -go to [front v] layer -end -``` - -Στη συνέχεια, θα χρειαστεί να προσθέσεις κώδικα σε κάθε **Προϊόν** που διαθέτεις προς πώληση για να τα κάνεις να γλιστρήσουν στο δοχείο όταν κάνεις κλικ σε αυτά: - -```blocks3 -when this sprite clicked -+go to [front v] layer -+glide [1] secs to (Τσάντα v) // χρησιμοποίησε το όνομα του αντικειμένου σου για το Δοχείο -+hide -change [σύνολο v] by [12] -+go to x: [-180] y: [68] // αρχική θέση -+show -``` - -Εάν δεν θέλεις το δοχείο να εμφανίζεται συνέχεια, μπορείς να προσθέσεις scripts για να εμφανίζεται και να εξαφανίζεται την κατάλληλη στιγμή: - -```blocks3 -when I receive [επόμενος πελάτης v] -hide // ο προηγούμενος πελάτης παίρνει την τσάντα -wait [1] seconds -show -``` - -**Δοκιμή:** Δοκίμασε το έργο σου και βεβαιώσου ότι τα προϊόντα γλιστρούν στο δοχείο και εξαφανίζονται. - -**Εντοπισμός σφαλμάτων:** Έλεγξε προσεκτικά τα σενάρια και βεβαιώσου ότι έχεις ενημερώσει και όλα τα Αντικείμενα για τα**Προϊόντα** σου. Μπορείς να δεις το έργο [Καταπληκτικά Μπλουζάκια](https://scratch.mit.edu/projects/707261374/editor){:target="_blank"} εάν θέλεις να δεις ένα λειτουργικό παράδειγμα. - ---- /collapse --- - -Το έργο Παγωτό δείχνει το παγωτό καθώς ο πελάτης κάνει τις επιλογές του. - ---- collapse --- - ---- - -title: Προσάρμοσε κι εμφάνισε ένα αντικείμενο - ---- - -Κάθε αντικείμενο χρειάζεται να `μεταδίδει`{:class="block3events"} στα script του `όταν γίνει κλικ σε αυτό το αντικείμενο`{:class="block3events"}: - -```blocks3 -+broadcast (1 μεζούρα v) -``` - -Στη συνέχεια, το αντικείμενο που θέλεις να εμφανίσεις ή να αλλάξεις πρέπει να ανταποκριθεί σε αυτό το μήνυμα: - -```blocks3 -when I receive [1 μεζούρα v] -play sound (Chomp v) until done -switch costume to (1 μεζούρα v) -``` - -Μπορεί επίσης να θέλεις να αλλάξεις ή να εξαφανίσεις το αντικείμενο για έναν νέο πελάτη: - -```blocks3 -when I receive [επόμενος πελάτης v] -switch costume to (κώνος v) -``` - -Εάν έχεις πολλά προϊόντα, τότε θα χρειαστεί να προσθέσεις περισσότερα μηνύματα και scripts. - ---- /collapse --- - ---- /task --- - -Έχεις παρατηρήσει ότι ο πελάτης σου μπορεί να προσθέσει προϊόντα αφού έχει αρχίσει τη διαδικασία πληρωμής; - ---- task --- - -Εάν θέλεις να σταματήσεις τον πελάτη να προσθέτει προϊόντα όταν είναι στο ταμείο, μπορείς να προσθέσεις μια μεταβλητή `αγορά`{:class="block3variables"} και να τη χρησιμοποιήσεις για να ελέγξεις πότε μπορούν να προστεθούν προϊόντα. - ---- collapse --- - ---- -title: Επιτρέπονται οι αγορές μόνο όταν ο πελάτης δεν είναι στο ταμείο - ---- - -Πρόσθεσε μία `μεταβλητή`{:class="block3variables"} που ονομάζεται `αγορά`. Θα την ορίσεις σε `αληθές` όταν ο πελάτης είναι στο κατάστημα και `ψευδές` όταν είναι στο ταμείο. - -Επίλεξε το αντικείμενο **πωλητή**. Ενημέρωσε το script `όταν γίνει κλικ στη σημαία`{:class="block3events"} για να επιτρέψεις τις αγορές κατά την έναρξη του έργου σου: - -```blocks3 -+set [κατάστημα v] to [αληθής] -``` - -Τώρα πρόσθεσε ένα μπλοκ για να αλλάξεις την `αγορά`{:class="block3variables"} σε `ψευδές` στην αρχή του script `όταν γίνει κλικ σε αυτό το αντικείμενο`{:class="block3events"} του **πωλητή**: - -```blocks3 -+set [κατάστημα v] to [ψευδές] -``` - -Και ένα μπλοκ για να επαναφέρεις τη μεταβλητή `αγορά`{:class="block3variables"} σε `αληθές` στο τέλος του ίδιου σεναρίου: - -```blocks3 -+set [κατάστημα v] to [αληθής] -``` - -Τώρα πρέπει να ενημερώσεις τα προϊόντα που πουλάς για να ελέγχουν τη μεταβλητή `αγορά`{:class="block3variables"}: - -```blocks3 -when this sprite clicked -+if <(κατάστημα) = [αληθής]> then -start sound (Coin v) -change [σύνολο v] by [10] -end -``` - -Θα χρειαστεί να το κάνεις αυτό για κάθε προϊόν που πουλάς στο κατάστημά σου. - -**Δοκιμή:** Κάνε κλικ στην πράσινη σημαία και δοκίμασε να αγοράσεις. Βεβαιώσου ότι μπορείς ακόμα να προσθέσεις αντικείμενα και να κάνεις ολοκλήρωση αγοράς, αλλά δεν μπορείς να προσθέσεις αντικείμενα αφού ξεκινήσεις την ολοκλήρωση της αγοράς. - -**Εντοπισμός σφαλμάτων:** Έλεγξε τον κώδικά σου πολύ προσεκτικά. Μπορείς να δεις το έργο [Διαστημικά Φρούτα](https://scratch.mit.edu/projects/707264633/editor){:target="_blank"} εάν θέλεις να δεις ένα λειτουργικό παράδειγμα. - ---- /collapse --- - ---- /task --- - ---- save --- - +## Επιπρόσθετα χαρακτηριστικά \ No newline at end of file diff --git a/el-GR/step_6.md b/el-GR/step_6.md index d876e50ef..c91f75ab1 100644 --- a/el-GR/step_6.md +++ b/el-GR/step_6.md @@ -1 +1,230 @@ -## Αναστοχασμός \ No newline at end of file +## Αναστοχασμός + +
+
+Υπάρχουν πολλές δυνατότητες που θα μπορούσες να προσθέσεις για να βελτιώσεις την εμπειρία αγορών των πελατών σου. Δεν χρειάζεται να προσθέσεις τα πάντα. Απλώς πρόσθεσε βελτιώσεις που πιστεύεις ότι είναι σημαντικές. +
+
+![](images/customer-count.png){:width="300px"} +
+
+ +--- task --- + +Πρόσθεσε επιπλέον προϊόντα για να πουλήσεις. + +--- /task --- + +--- task --- + +Πρόσθεσε περισσότερα γραφικά και ηχητικά εφέ. + +--- /task --- + +--- task --- + +Ζωγράφισε τα δικά σου σκηνικά και άλλες ενδυμασίες. + +--- /task --- + +--- task --- + +Δημιούργησε άλλη μία επιχείρηση και προσκάλεσε παίκτες να επισκεφτούν και τις δύο. + +--- /task --- + +Κάθε παράδειγμα έργου στην [Εισαγωγή](.) έχει έναν σύνδεσμο 'Δες μέσα' για να ανοίξεις το έργο στο Scratch και να δεις τον κώδικα για να πάρεις ιδέες και να δεις πώς λειτουργούν. Μπορείς να πατήσεις το «Δες μέσα» στα παραδείγματα έργων για να δεις πώς λειτουργούν. + +Example projects: **Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Vending machine**: [See inside](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} + +**Tip:** If you are logged in to a Scratch account, then you can use the **Backpack** to copy scripts or sprites to your project. + +[[[scratch-backpack]]] + +### Chatty checkout! + +Your checkout person (or machine) could ask whether the service was good, or if the customer is having a nice day. + +--- task --- + +Add `ask`{:class="block3sensing"} blocks to your **seller**'s `when this sprite clicked`{:class="block3events"} script and `say`{:class="block3looks"} different things depending on the customer's response. + +--- collapse --- + +--- +title: Ask and respond to questions +--- + +```blocks3 +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds +else +say [Maybe I should add more items to my shop] for [2] seconds +end +``` + +**Debug:** Check that you have spelled the options correctly in your code and in your answer. It's OK if you use capital letters, so "Yes" and "YES" will match "yes". + +Add multiple questions to create a chatbot or non-player character that you can talk to. + +--- /collapse --- + +--- /task --- + +### Bag the items + +--- task --- + +The Cool Shirts project has shirts that glide into a bag. + +--- collapse --- + +--- +title: Make items glide into a container +--- + +Add a **Container** sprite. You could use an existing sprite like the **Gift** or **Take out** sprite, or paint your own with simple shapes. + +Add a script to make the **Container** always appear at the front: + +```blocks3 +when flag clicked +forever +go to [front v] layer +end +``` + +Then you'll need to add code to each **Item** you have for sale to make them glide to the container when they are clicked: + +```blocks3 +when this sprite clicked ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite ++hide +change [total v] by [12] ++go to x: [-180] y: [68] // start position ++show +``` + +If you don't want the container there all the time, you can add scripts to make it show and hide at the right time: + +```blocks3 +when I receive [next customer v] +hide // previous customer takes the bag +wait [1] seconds +show +``` + +**Test:** Try your project and make sure items glide to the container and hide. + +**Debug:** Check your scripts carefully and make sure you have updated all of your **Item** sprites. You can look at [Cool Shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} if you need to see a working example. + +--- /collapse --- + +--- /task --- + +###  Stop adding items when the customer is at the checkout + +--- task --- + +Add a `shop`{:class="block3variables"} variable and use it to control when items can be added. + +--- collapse --- + +--- +title: Stop purchases when the customer is at the checkout +--- + +Add a `variable`{:class="block3variables"} called `shop` for all sprites. You will set this to `true` when the customer is in the shop and `false` when they are at the checkout. + +Select your **seller** sprite. Update the `when flag clicked`{:class="block3events"} script to allow shopping when your project starts: + +```blocks3 ++set [shop v] to [true] +``` + +Now add a block to change the `shop`{:class="block3variables"} to `false` at the beginning of your **seller**'s `when this sprite clicked`{:class="block3events"} script: + +```blocks3 ++set [shop v] to [false] +``` + +And a block to set the `shop`{:class="block3variables"} variable back to `true` at the end of the same script: + +```blocks3 ++set [shop v] to [true] +``` + +Now you need to update the items you sell to check the `shop`{:class="block3variables"} variable: + +```blocks3 +when this sprite clicked ++if <(shop) = [true]> then +start sound (Coin v) +change [total v] by [10] +end +``` +You will need to do this for every item you sell in your shop. + +**Test:** Click the green flag then try shopping. Check that you can still add items and checkout, but you can't add items once you have started checking out. + +**Debug:** Check your code really carefully. You can look at the [Space Fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project if you need to see a working example. + +--- /collapse --- + +--- /task --- + +--- task --- + +### Give the customer the option to cancel their shopping. + +--- collapse --- + +--- +title: Set up pay and cancel options +--- + +`Ask`{:class="block3sensing"} `Would you like to pay or cancel?`. Add an `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `pay` and inside it put your existing payment blocks. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end +``` + +Add a second `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `cancel` and inside it add code to cancel the order. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] +end +``` + +--- /collapse --- + +--- /task --- + +Take a look at our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio to see projects created by community members. + +--- save --- diff --git a/el-GR/step_7.md b/el-GR/step_7.md index 2478bc0c1..54f3ddf9f 100644 --- a/el-GR/step_7.md +++ b/el-GR/step_7.md @@ -1,22 +1,9 @@ ## Αναβάθμισε το έργο σου -
-
-Εάν έχεις χρόνο, μπορείς να αναβαθμίσεις το έργο σου. -
-
-![](images/upgrade-image.png){:width="300px"} -
-
- Εδώ είναι μερικές ιδέες που μπορείς να δοκιμάσεις: -- Πρόσθεσε επιπλέον προϊόντα για να πουλήσεις -- Πρόσθεσε περισσότερα γραφικά και ηχητικά εφέ -- Ζωγράφισε τα δικά σου σκηνικά και άλλες ενδυμασίες -- Δημιούργησε άλλη μία επιχείρηση και προσκάλεσε παίκτες να επισκεφτούν και τις δύο Κάθε παράδειγμα έργου στην [Εισαγωγή](.) έχει έναν σύνδεσμο 'Δες μέσα' για να ανοίξεις το έργο στο Scratch και να δεις τον κώδικα για να πάρεις ιδέες και να δεις πώς λειτουργούν. Ρίξε μια ματιά στο Scratch studio ['Διαγαλαξιακή αγορά'](https://scratch.mit.edu/studios/29662180){:target="_blank"} για να δεις έργα που δημιουργούνται από μέλη της κοινότητας. ---- save --- +![Παραδείγματα έργων καταστημάτων στη συλλογή Scratch «Διαγαλαξιακή αγορά».](images/studio-example.png) diff --git a/el-GR/step_8.md b/el-GR/step_8.md index 93a61f3f2..e32478ae4 100644 --- a/el-GR/step_8.md +++ b/el-GR/step_8.md @@ -1,55 +1,21 @@ ## Κοινοποίηση -Εάν είσαι σε μια λέσχη, γιατί να μην μοιραστείς το έργο σου με φίλους; +If you are following the [More Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch) path, you can move on to the [Don't fall in](https://projects.raspberrypi.org/en/projects/dont-fall-in) project. Σε αυτό το έργο, θα δημιουργήσεις ένα παιχνίδι με οπτική γωνία από ψηλά όπου πρέπει να πηδάς από πλατφόρμα σε πλατφόρμα και να μην πέσεις μέσα. -Εάν είσαι συνδεδεμένος/η στο Scratch, μπορείς να δημιουργήσεις μία συλλογή και να προσθέσεις το έργο **Επόμενος πελάτης παρακαλώ**. Μπορείς επίσης να προσθέσεις τα έργα των φίλων σου **επόμενος πελάτης παρακαλώ** για να δημιουργήσετε ένα εμπορικό κέντρο με διαφορετικά καταστήματα και επιχειρήσεις. +--- print-only --- ---- collapse --- +![Έργο "Μην πέσεις"](images/dont-fall-in-project.png) ---- +--- /print-only --- -title: Δημιούργησε ένα εμπορικό κέντρο +--- no-print --- ---- +
+ +
-Αποθήκευσε το έργο σου και, στη συνέχεια, κάνε κλικ στο όνομα χρήστη και επίλεξε **Τα πράγματά μου**. +**Instructions:** Press space or tap the Stage to jump. -![το αναδυόμενο μενού κάτω από το όνομα του λογαριασμού σου επάνω δεξιά.](images/my-stuff-menu.png) +--- /no-print --- -Από τη σελίδα **Τα πράγματά μου**, κάνε κλικ στο κουμπί **+ Νέα Συλλογή**. - -![Το γκρι κουμπί "Νέα Συλλογή" στη σελίδα "Τα πράγματά μου".](images/create-studio.png) - -Δώσε στη νέα σου συλλογή ένα όνομα και μια περιγραφή. - -![Το πλαίσιο ονόματος στο επάνω μέρος της συλλογής και το πλαίσιο περιγραφής στα αριστερά της συλλογής.](images/naming-studio.png) - -Κάνε κλικ στο κουμπί **Προσθήκη έργων**. Μπορείς να προσθέσεις το δικό σου έργο επιλέγοντάς το από τη λίστα στο κάτω μέρος της σελίδας. - -![Η «Προσθήκη έργων» εμφανίζεται στο κάτω μέρος της σελίδας με μια συλλογή με μικρογραφίες έργων. ](images/add-your-projects.png) - -Μπορείς επίσης να προσθέσεις έργα που έχουν δημιουργήσει οι φίλοι σου. Ζήτησέ τους να μοιραστούν το έργο τους και να σου δώσουν τον σύνδεσμο. Πληκτρολόγησε ή επικόλλησε το σύνδεσμο στο πλαίσιο url και, στη συνέχεια, κάνε κλικ στο κουμπί **Add by url**. - -![Το πλαίσιο url κάτω από το κουμπί "Προσθήκη έργων" και το κουμπί "Add by url".](images/path.png) - ---- /collapse --- - -Μοιράσου το έργο σου και στείλε έναν σύνδεσμο σε άτομα που γνωρίζεις. Ολόκληρη η κοινότητα του Scratch θα μπορεί επίσης να βρει το έργο σου και να το δοκιμάσει. - -[[[share-scratch]]] - -Γιατί να μην καλέσεις τους φίλους σου να δημιουργήσουν ένα έργο; Πες τους πως ήταν διασκεδαστικό. - -Εάν έχεις λογαριασμό Scratch και έχεις μοιραστεί το έργο σου **Επόμενος πελάτης παρακαλώ**, πρόσεξε τα σχόλια που μπορεί να κάνουν άλλοι σχετικά με τη δημιουργία σου. Η ανατροφοδότηση είναι ένας πολύ καλός τρόπος για να αναστοχαστείς πάνω στη δουλειά σου. Αγνόησε οποιαδήποτε σχόλια δεν σε βοηθούν ή είναι άσχετα. - -[[[comments-feedback-scratch]]] - ---- task --- - -Δώσε έμπνευση στην κοινότητα του Ιδρύματος Raspberry Pi με το έργο σου! - -Για να υποβάλεις το έργο σου στη δική μας συλλογή ['Διαγαλαξιακή αγορά'](https://scratch.mit.edu/studios/29662180){:target="_blank"} για να το δουν κι άλλα άτομα, συμπλήρωσε [αυτήν τη φόρμα](https://form.raspberrypi.org/f/community-project-submissions){:target="_blank"}. - -![Παραδείγματα έργων καταστημάτων στη συλλογή Scratch «Διαγαλαξιακή αγορά».](images/studio-example.png) - ---- /task --- +If you want to have more fun exploring Scratch, then you could try out any of [these projects](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). diff --git a/en-US/images/add-friend-projects.png b/en-US/images/add-friend-projects.png new file mode 100644 index 000000000..3ad5bafed Binary files /dev/null and b/en-US/images/add-friend-projects.png differ diff --git a/en-US/images/add-sound.png b/en-US/images/add-sound.png new file mode 100644 index 000000000..123e3628f Binary files /dev/null and b/en-US/images/add-sound.png differ diff --git a/en-US/images/add-your-projects.png b/en-US/images/add-your-projects.png new file mode 100644 index 000000000..016bd757d Binary files /dev/null and b/en-US/images/add-your-projects.png differ diff --git a/en-US/images/banner.png b/en-US/images/banner.png new file mode 100644 index 000000000..f9ac6e053 Binary files /dev/null and b/en-US/images/banner.png differ diff --git a/en-US/images/choose-backdrop-icon.png b/en-US/images/choose-backdrop-icon.png new file mode 100644 index 000000000..6d7d7e298 Binary files /dev/null and b/en-US/images/choose-backdrop-icon.png differ diff --git a/en-US/images/choose-sprite-icon.png b/en-US/images/choose-sprite-icon.png new file mode 100644 index 000000000..7b04d235d Binary files /dev/null and b/en-US/images/choose-sprite-icon.png differ diff --git a/en-US/images/create-studio.png b/en-US/images/create-studio.png new file mode 100644 index 000000000..0ce2440f2 Binary files /dev/null and b/en-US/images/create-studio.png differ diff --git a/en-US/images/customer-count.png b/en-US/images/customer-count.png new file mode 100644 index 000000000..e2c6ce61a Binary files /dev/null and b/en-US/images/customer-count.png differ diff --git a/en-US/images/dont-fall-in-project.png b/en-US/images/dont-fall-in-project.png new file mode 100644 index 000000000..003a7787c Binary files /dev/null and b/en-US/images/dont-fall-in-project.png differ diff --git a/en-US/images/example-strip.png b/en-US/images/example-strip.png new file mode 100644 index 000000000..cecace153 Binary files /dev/null and b/en-US/images/example-strip.png differ diff --git a/en-US/images/fruit.png b/en-US/images/fruit.png new file mode 100644 index 000000000..74b78e59a Binary files /dev/null and b/en-US/images/fruit.png differ diff --git a/en-US/images/icecream.png b/en-US/images/icecream.png new file mode 100644 index 000000000..c72e20f83 Binary files /dev/null and b/en-US/images/icecream.png differ diff --git a/en-US/images/item-amounts.png b/en-US/images/item-amounts.png new file mode 100644 index 000000000..9e6430405 Binary files /dev/null and b/en-US/images/item-amounts.png differ diff --git a/en-US/images/large-readout.png b/en-US/images/large-readout.png new file mode 100644 index 000000000..a3859b991 Binary files /dev/null and b/en-US/images/large-readout.png differ diff --git a/en-US/images/my-stuff-menu.png b/en-US/images/my-stuff-menu.png new file mode 100644 index 000000000..ad6992761 Binary files /dev/null and b/en-US/images/my-stuff-menu.png differ diff --git a/en-US/images/naming-studio.png b/en-US/images/naming-studio.png new file mode 100644 index 000000000..dc25e716e Binary files /dev/null and b/en-US/images/naming-studio.png differ diff --git a/en-US/images/new-variable.png b/en-US/images/new-variable.png new file mode 100644 index 000000000..d937fdd8a Binary files /dev/null and b/en-US/images/new-variable.png differ diff --git a/en-US/images/quiz2.png b/en-US/images/quiz2.png new file mode 100644 index 000000000..b5fe0cfb0 Binary files /dev/null and b/en-US/images/quiz2.png differ diff --git a/en-US/images/sprite-pane-size.png b/en-US/images/sprite-pane-size.png new file mode 100644 index 000000000..568608788 Binary files /dev/null and b/en-US/images/sprite-pane-size.png differ diff --git a/en-US/images/step2-image.png b/en-US/images/step2-image.png new file mode 100644 index 000000000..f52394751 Binary files /dev/null and b/en-US/images/step2-image.png differ diff --git a/en-US/images/step3-image.png b/en-US/images/step3-image.png new file mode 100644 index 000000000..441189fec Binary files /dev/null and b/en-US/images/step3-image.png differ diff --git a/en-US/images/step4-image.png b/en-US/images/step4-image.png new file mode 100644 index 000000000..c92bc3b0b Binary files /dev/null and b/en-US/images/step4-image.png differ diff --git a/en-US/images/studio-example.png b/en-US/images/studio-example.png new file mode 100644 index 000000000..f91ad3daa Binary files /dev/null and b/en-US/images/studio-example.png differ diff --git a/en-US/images/tshirt.png b/en-US/images/tshirt.png new file mode 100644 index 000000000..9e5481d85 Binary files /dev/null and b/en-US/images/tshirt.png differ diff --git a/en-US/images/upgrade-image.png b/en-US/images/upgrade-image.png new file mode 100644 index 000000000..57b6f29d1 Binary files /dev/null and b/en-US/images/upgrade-image.png differ diff --git a/en-US/images/vending.png b/en-US/images/vending.png new file mode 100644 index 000000000..deb1d50d3 Binary files /dev/null and b/en-US/images/vending.png differ diff --git a/en-US/meta.yml b/en-US/meta.yml new file mode 100644 index 000000000..4fcc051d2 --- /dev/null +++ b/en-US/meta.yml @@ -0,0 +1,37 @@ +--- +title: Next customer please +hero_image: images/banner.png +description: A shop simulation project where the customer can buy items. +meta_title: Scratch coding projects for kids and teens | Next customer please +meta_description: Learn Scratch with the Raspberry Pi Foundation's coding projects for kids and teens. Make a Scratch app where the customer can buy items from your shop. +version: 4 +listed: true +copyedit: false +last_tested: "2021-03-26" +steps: + - + title: What you will make + - + title: Your shop + - + title: Items for sale + completion: + - engaged + - + title: Purchases + completion: + - internal + - + title: Quick quiz + knowledge_quiz: + path: quiz1 + version: 1 + questions: 3 + passing_score: 3 + completion: + - external + - + title: Challenge + challenge: true + - + title: Share diff --git a/en-US/quiz1/question_1.md b/en-US/quiz1/question_1.md new file mode 100644 index 000000000..9f9662f16 --- /dev/null +++ b/en-US/quiz1/question_1.md @@ -0,0 +1,72 @@ +## Quick quiz + +Answer the three questions. There are hints to guide you to the correct answer. + +When you have answered each question, click on **Check my answer**. + +Have fun! + +--- question --- + +--- +legend: Question 1 of 3 +--- + +A shop project uses a `total`{:class="block3variables"} variable to store the total for each customer. + ++ A customer adds items that total `50` and pays ++ A new customer adds items that total `40` but the `total`{:class="block3variables"} is now showing as `90` for the second customer + +Which block would you need to add to the payment script to make the total go back to `0` when each customer pays? + +--- choices --- + +- ( ) +```blocks3 +change [total v] by [0] +``` + + --- feedback --- + +Not quite, `total`{:class="block3variables"} should be `0` after a customer pays, but it is not the `change`{:class="block3variables"} block you need. + + --- /feedback --- + +- ( ) +```blocks3 +set [total v] to [40] +``` + + --- feedback --- + + Not quite, this would work for the second customer but the `total`{:class="block3variables"} would be wrong for other customers. + + --- /feedback --- + +- (x) + +```blocks3 +set [total v] to [0] +``` + + --- feedback --- + +Yes, that's correct. You need to `set`{:class="block3variables"} the `total`{:class="block3variables"} to `0` after each customer pays. + + --- /feedback --- + +- ( ) + +```blocks3 +change [total v] by [-50] +``` + + --- feedback --- + +That would work for this example, but what if the first customer spent a different amount? Your solution needs to work when the previous customer spends different amounts. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/en-US/quiz1/question_2.md b/en-US/quiz1/question_2.md new file mode 100644 index 000000000..e5b43905c --- /dev/null +++ b/en-US/quiz1/question_2.md @@ -0,0 +1,63 @@ + +--- question --- + +--- +legend: Question 2 of 3 +--- + +In a shop, the **seller** has this code in the checkout script: + +```blocks3 +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds +else +say [Sorry to hear that.] for [2] seconds +end +``` + +When the code runs, the user types the answer 'great'. What will the **seller** sprite say? + +![An 'ask' box with the word 'great' typed in.](images/quiz2.png) + +--- choices --- + +- (x) The **Seller** will say `Sorry to hear that.` + + --- feedback --- + + Yes. Humans know that 'great' means the same as 'good', but the '=' checks whether the letters are the same. + + The **condition** `answer`{:class="block3sensing"} = `good` is 'false' so the `say`{:class="block3looks"} block in the `else`{:class="block3control"} part will run. + + --- /feedback --- + +- ( ) The **seller** will say `That's fantastic!` + + --- feedback --- + +No, only the exact answer `good` will make the **seller** say `That's fantastic!`. Look at the code again to see what message the **seller** will say for all answers that are not `good`. + +**Tip:** 'Good' or 'GOOD' would match 'good'. + + --- /feedback --- + +- ( ) The **seller** won't say anything. + + --- feedback --- + +No, the **seller** will always say something. Look carefully at the code to see what the message will be. + + --- /feedback --- + +- ( ) The **seller** will say `great`. + + --- feedback --- + +No, the **customer** typed the answer 'great' but the **seller** does not say the answer. Look carefully at the code to see what the message will be. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/en-US/quiz1/question_3.md b/en-US/quiz1/question_3.md new file mode 100644 index 000000000..9e74cc8f9 --- /dev/null +++ b/en-US/quiz1/question_3.md @@ -0,0 +1,48 @@ + +--- question --- + +--- +legend: Question 3 of 3 +--- + +Your project is not working. What should you do? + +--- choices --- + +- ( ) Panic! + + --- feedback --- + + That's not going to help. You need to think clearly to fix coding problems. + + --- /feedback --- + +- ( ) Give up + + --- feedback --- + + There are lots of things you could try. Great coders often get things wrong the first time and learn a lot from their mistakes. + + --- /feedback --- + +- (x) Read the code carefully and try to debug it. + + --- feedback --- + + Yes. Fixing bugs is part of coding. The more you practise the more experience you get, and the easier it becomes to find and fix bugs. + + --- /feedback --- + +- ( ) Get annoyed with the computer + + --- feedback --- + +A computer only does what we tell it to do, so getting annoyed with it isn't logical. + +Being annoyed won't help to solve the problem, as it will make it harder to think clearly. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/en-US/scratch-comments.txt b/en-US/scratch-comments.txt new file mode 100644 index 000000000..c5fe4c8c8 --- /dev/null +++ b/en-US/scratch-comments.txt @@ -0,0 +1,9 @@ +type the name of your business + +your business name + +use the name of your Container sprite + +start position + +previous customer takes the bag diff --git a/en-US/scratch-translatable.txt b/en-US/scratch-translatable.txt new file mode 100644 index 000000000..06cc175a3 --- /dev/null +++ b/en-US/scratch-translatable.txt @@ -0,0 +1,49 @@ +name + +my shop + +next customer + +Next customer please! + +total + +That will be + +Thanks for shopping at + +Would you like to pay or cancel? + +pay + +cancel + +Ok. No problem + +Click on the items you'd like + +Did you find everything you wanted today? + +yes + +That's fantastic! + +Maybe I should add more items to my shop + +Bag + +1 scoop + +cone + +shop + +true + +false + +How are you today? + +good + +Sorry to hear that. diff --git a/en-US/solutions/Cool Shirts.sb3 b/en-US/solutions/Cool Shirts.sb3 new file mode 100644 index 000000000..fdc5852be Binary files /dev/null and b/en-US/solutions/Cool Shirts.sb3 differ diff --git a/en-US/solutions/Fresh Space Fruit.sb3 b/en-US/solutions/Fresh Space Fruit.sb3 new file mode 100644 index 000000000..bbbe9eaac Binary files /dev/null and b/en-US/solutions/Fresh Space Fruit.sb3 differ diff --git a/en-US/solutions/Vending machine.sb3 b/en-US/solutions/Vending machine.sb3 new file mode 100644 index 000000000..42dec16a7 Binary files /dev/null and b/en-US/solutions/Vending machine.sb3 differ diff --git a/en-US/solutions/ice cream shop.sb3 b/en-US/solutions/ice cream shop.sb3 new file mode 100644 index 000000000..d6322242c Binary files /dev/null and b/en-US/solutions/ice cream shop.sb3 differ diff --git a/en-US/step_1.md b/en-US/step_1.md new file mode 100644 index 000000000..e41514d8a --- /dev/null +++ b/en-US/step_1.md @@ -0,0 +1,52 @@ +## What you will make + +Make a shop app where the customer can buy items from your shop. The project will be in first-person view where the player is a customer. + +--- no-print --- + +Click on Space Fruit to buy them and watch the total go up. When you're ready, click on Kiran to check out. + ++ What happens if you try to checkout before you have chosen any fruit? ++ How do you think the project knows that you haven't added any fruit yet? + +
+**Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +
+ +
+
+ +### Get ideas 💭 + +Click on the **seller** sprites to buy items: + +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +
+ +
+ +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +
+ +
+ +**⭐ Pride pins** (featured community project) + +Click on the pride pin badges to add them to your shopping bag: + +
+ +
+ +--- /no-print --- + +--- print-only --- + +### Get ideas 💭 + +You are going to make some design decisions to create your character. See inside example projects in the Scratch 2: Next customer please! Scratch studio at https://scratch.mit.edu/studios/29611454 + +![Example project](images/fruit.png) ![Example project](images/tshirt.png) ![Example project](images/icecream.png) ![Example project](images/vending.png) + +--- /print-only --- + diff --git a/en-US/step_2.md b/en-US/step_2.md new file mode 100644 index 000000000..fb48837ea --- /dev/null +++ b/en-US/step_2.md @@ -0,0 +1,80 @@ +## Your shop + +
+
+What is your shop idea? It could be something realistic, something from a book or movie you like, or something completely silly. +
+
+![](images/step2-image.png){:width="300px"} +
+
+ +--- task --- + +Open a [new Scratch project](http://rpf.io/scratch-new){:target="_blank"} and look at the range of sprites and backdrops that you can use. Spend some time thinking about your shop idea. + +--- /task --- + +--- task --- + +**Choose a Backdrop** or paint your own backdrop. + +![](images/choose-backdrop-icon.png) + ++ A backdrop from the Scratch library, or a plain coloured backdrop + +--- /task --- + +--- task --- + +**Choose a Sprite** and add or paint extra scenery sprites. + +![](images/choose-sprite-icon.png) + +--- /task --- + +--- task --- + +Add more scenery. ++ A desk, counter, or window to sell from ++ A shelf or bookcase to put items on — you could Paint this on the backdrop + +--- /task --- + +--- task --- + +Add a sprite to represent the seller. + +You could choose: ++ A person or non-player character such as a shopkeeper, farmer, or librarian ++ A machine such as a vending machine, jukebox, or cash register + +![](images/choose-sprite-icon.png) + +--- /task --- + +### Welcome your first customer. + +--- task --- + +Click on your **seller** sprite and add a `broadcast`{:class="block3events"} block. Create a new message called `next customer`. + +```blocks3 +when flag clicked ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +Create a new script for your **seller** sprite to `say`{:class="block3looks"} `Next customer please` when they receive the `broadcast`{:class="block3events"} `next customer`{:class="block3events"}. + +```blocks3 +when I receive [next customer v] +say [Next customer please!] for (2) seconds +``` + +--- /task --- + +--- save --- diff --git a/en-US/step_3.md b/en-US/step_3.md new file mode 100644 index 000000000..8c2e88c47 --- /dev/null +++ b/en-US/step_3.md @@ -0,0 +1,128 @@ +## Items for sale + +
+
+Your shop needs items for sale. Each item will have a price that will be added to a `total`{:class="block3variables"} variable. +
+
+![](images/step3-image.png){:width="300px"} +
+
+ +You will need to keep track of how much your customer is spending. + +--- task --- + +Add a new variable called `total`{:class="block3variables"} for all sprites. + +Click on your **seller** sprite and add a script to `set`{:class="block3variables"} the `total`{:class="block3variables"} to `0` when the project starts. + +[[[scratch3-create-set-variable]]] + +--- /task --- + +What **items** will your customer(s) be buying? ++ Some kind of food or drink ++ Sports equipment, toys, or gadgets ++ Magic wands, potions, or spell books ++ Clothing or other fashion items ++ Your own idea + +--- task --- + +Add a sprite for the first **item** you're going to sell in your shop. + +If you like, you can add a price to the costume using the text tool in the Paint editor. Or add a price to the backdrop and position the item next to it. + +![Examples of items with amounts written next to them.](images/item-amounts.png) + +--- /task --- + +--- task --- + +Add a script to `change`{:class="block3variables"} the `total`{:class="block3variables"} by the price of your item when the customer clicks on the sprite. + +--- collapse --- +--- +title: Click to add an item +--- + +```blocks3 +when this sprite clicked +start sound (Coin v) +change [total v] by [10] +``` + +--- /collapse --- + +It's also a good idea to `play a sound`{:class="block3sound"} to give the customer feedback that they have added an item. + +![The add a sound icon](images/add-sound.png) + +[[[scratch3-add-sound]]] + +--- /task --- + +--- task --- + +**Test:** Click on your item and check that the value of the `total`{:class="block3variables"} variable increases by the price of the item, and you hear the sound effect. Click more times to see the total go up. + +Click the green flag to start your project and make sure that the `total`{:class="block3variables"} starts at `0`. + +--- /task --- + +--- task --- + +Add more items to your shop. + +You can either: ++ Duplicate the first item and then add a new costume in the Paint editor ++ Add a sprite and then drag the `when flag clicked`{:class="block3events"} script from the first item to your new item + +Add a price label to the costume or backdrop if you are using them. + +--- /task --- + +--- task --- + +Click on your new **Item** sprite in the Sprite list then click on the **Code** tab. + +Change the amount the `total`{:class="block3variables"} changes by to the price of your new item. + +--- /task --- + +--- task --- + +**Test:** Click the green flag to start your project and click on items to add them. Check that the total increases by the correct amount each time you click on an item. + +If you have added price labels, make sure they match the amount that gets added to the `total`{:class="block3variables"}, or your customers will be confused! + +--- /task --- + +--- task --- + +**Debug:** You might find some bugs in your project that you need to fix. Here are some common bugs. + +--- collapse --- +--- +title: The total doesn't go to 0 when I click the green flag +--- + +Check that you have set the start value of the `total`{:class="block3variables"} variable in the `when flag clicked`{:class="block3events"} script on your **seller** sprite. + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't increase by the correct amount when I click on an item +--- + +Check that each item has a `when this sprite clicked`{:class="block3events"} script that changes the `total`{:class="block3variables"} by the correct amount for that item — you might have changed the price for the wrong sprite. + +Check that you have used the `change`{:class="block3variables"} block and not the `set`{:class="block3variables"} block to change the `total`{:class="block3variables"}. You need to use `change`{:class="block3variables"} to add the price to the total, you don't want to set the total to the price of the item that was just added. + +--- /collapse --- + +--- /task --- + +--- save --- diff --git a/en-US/step_4.md b/en-US/step_4.md new file mode 100644 index 000000000..7e8467f4a --- /dev/null +++ b/en-US/step_4.md @@ -0,0 +1,141 @@ +## Purchases + +
+
+ +The **seller** sprite needs to: +- ask if the customer is ready to pay for the items +- take payment +- get ready for the next customer +
+
+![](images/step4-image.png){:width="300px"} +
+
+ +When they have finished choosing items, the customer will click on the **seller** sprite to pay. + +--- task --- + + Tell the customer how much their items will cost. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +``` + +--- /task --- + +--- task --- + +Add a payment sound to your **seller** sprite so the customer knows that payment is taking place. + +![The add a sound icon](images/add-sound.png) + +[[[scratch3-add-sound]]] + +Add the `play sound until done`{:class="block3sound"} block to your script. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ play sound [machine v] until done +``` + +--- /task --- + +--- task --- + +Finish the sale. Set `total`{:class="block3variables"} back to `0` after payment, `say`{:class="block3looks"} goodbye and `broadcast`{:class="block3control"} `next customer`{:class="block3control"}. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +play sound [machine v] until done ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +**Test:** Test your project and make sure: +- The customer can check out with the correct sound effects +- The `total`{:class="block3variables"} gets set back to `0` after a customer pays or cancels. + +--- /task --- + + +--- task --- + +**Debug:** You might find some bugs in your project that you need to fix. + +Here are some common bugs: + +--- collapse --- +--- +title: The seller doesn't do anything when I click on them +--- + +You have quite a lot of sprites in your project. Make sure the `when this sprite clicked`{:class="block3events"} script is on your **seller** sprite. + +**Tip:** If you have added it to the wrong sprite, you can drag the code to the **seller** sprite, then delete it from the other sprite. + +--- /collapse --- + +--- collapse --- +--- +title: The words in the say blocks merge together +--- + +When you `join`{:class="block3operators"} two pieces together, you need to add a space at the end of your first piece of text or at the beginning of your second piece of text. + +These have a space at the end of the first part of the join: + +```blocks3 +say {join [That will be ](total)} for (2) seconds + +say {join [Thanks for shopping at ](name)} for (2) seconds +``` + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't reset after a sale +--- + +Check that you have used: + +```blocks3 +set [total v] to (0) +``` + +**not**: + +```blocks3 +change [total v] by (0) +``` + +--- /collapse --- + +--- collapse --- +--- +title: The seller isn't responding +--- + +Make sure the `operator`{:class="block3operators"} in the `if`{:class="block3control"} condition is the greater than symbol `>`{:class="block3operators"}. + +```blocks3 +if <(total) > [0]> then +``` + +--- /collapse --- + +**Tip:** Compare your code with the code examples. Are there any differences that shouldn't be there? + +--- /task --- + +--- save --- diff --git a/en-US/step_5.md b/en-US/step_5.md new file mode 100644 index 000000000..ef044b75d --- /dev/null +++ b/en-US/step_5.md @@ -0,0 +1 @@ +## Quick quiz \ No newline at end of file diff --git a/en-US/step_6.md b/en-US/step_6.md new file mode 100644 index 000000000..bc85d2bec --- /dev/null +++ b/en-US/step_6.md @@ -0,0 +1,230 @@ +## Challenge + +
+
+There are lots of features you could add to improve your customers' shopping experience. You don't need to add everything. Just add improvements that you think are important. +
+
+![](images/customer-count.png){:width="300px"} +
+
+ +--- task --- + +Add more items to sell. + +--- /task --- + +--- task --- + +Add more graphic and sound effects. + +--- /task --- + +--- task --- + +Paint your own scenery and other costumes. + +--- /task --- + +--- task --- + +Make another business and allow players to visit them both. + +--- /task --- + +Each example project in the [Introduction](.) has a ‘See Inside’ link for you to open the project in Scratch, and look at the code to get ideas and see how they work. You can 'See inside' the example projects to look at how they work. + +Example projects: **Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Vending machine**: [See inside](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} + +**Tip:** If you are logged in to a Scratch account, then you can use the **Backpack** to copy scripts or sprites to your project. + +[[[scratch-backpack]]] + +### Chatty checkout! + +Your checkout person (or machine) could ask whether the service was good, or if the customer is having a nice day. + +--- task --- + +Add `ask`{:class="block3sensing"} blocks to your **seller**'s `when this sprite clicked`{:class="block3events"} script and `say`{:class="block3looks"} different things depending on the customer's response. + +--- collapse --- + +--- +title: Ask and respond to questions +--- + +```blocks3 +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds +else +say [Maybe I should add more items to my shop] for [2] seconds +end +``` + +**Debug:** Check that you have spelled the options correctly in your code and in your answer. It's OK if you use capital letters, so "Yes" and "YES" will match "yes". + +Add multiple questions to create a chatbot or non-player character that you can talk to. + +--- /collapse --- + +--- /task --- + +### Bag the items + +--- task --- + +The Cool Shirts project has shirts that glide into a bag. + +--- collapse --- + +--- +title: Make items glide into a container +--- + +Add a **Container** sprite. You could use an existing sprite like the **Gift** or **Take out** sprite, or paint your own with simple shapes. + +Add a script to make the **Container** always appear at the front: + +```blocks3 +when flag clicked +forever +go to [front v] layer +end +``` + +Then you'll need to add code to each **Item** you have for sale to make them glide to the container when they are clicked: + +```blocks3 +when this sprite clicked ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite ++hide +change [total v] by [12] ++go to x: [-180] y: [68] // start position ++show +``` + +If you don't want the container there all the time, you can add scripts to make it show and hide at the right time: + +```blocks3 +when I receive [next customer v] +hide // previous customer takes the bag +wait [1] seconds +show +``` + +**Test:** Try your project and make sure items glide to the container and hide. + +**Debug:** Check your scripts carefully and make sure you have updated all of your **Item** sprites. You can look at [Cool Shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} if you need to see a working example. + +--- /collapse --- + +--- /task --- + +###  Stop adding items when the customer is at the checkout + +--- task --- + +Add a `shop`{:class="block3variables"} variable and use it to control when items can be added. + +--- collapse --- + +--- +title: Stop purchases when the customer is at the checkout +--- + +Add a `variable`{:class="block3variables"} called `shop` for all sprites. You will set this to `true` when the customer is in the shop and `false` when they are at the checkout. + +Select your **seller** sprite. Update the `when flag clicked`{:class="block3events"} script to allow shopping when your project starts: + +```blocks3 ++set [shop v] to [true] +``` + +Now add a block to change the `shop`{:class="block3variables"} to `false` at the beginning of your **seller**'s `when this sprite clicked`{:class="block3events"} script: + +```blocks3 ++set [shop v] to [false] +``` + +And a block to set the `shop`{:class="block3variables"} variable back to `true` at the end of the same script: + +```blocks3 ++set [shop v] to [true] +``` + +Now you need to update the items you sell to check the `shop`{:class="block3variables"} variable: + +```blocks3 +when this sprite clicked ++if <(shop) = [true]> then +start sound (Coin v) +change [total v] by [10] +end +``` +You will need to do this for every item you sell in your shop. + +**Test:** Click the green flag then try shopping. Check that you can still add items and checkout, but you can't add items once you have started checking out. + +**Debug:** Check your code really carefully. You can look at the [Space Fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project if you need to see a working example. + +--- /collapse --- + +--- /task --- + +--- task --- + +### Give the customer the option to cancel their shopping. + +--- collapse --- + +--- +title: Set up pay and cancel options +--- + +`Ask`{:class="block3sensing"} `Would you like to pay or cancel?`. Add an `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `pay` and inside it put your existing payment blocks. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end +``` + +Add a second `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `cancel` and inside it add code to cancel the order. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] +end +``` + +--- /collapse --- + +--- /task --- + +Take a look at our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio to see projects created by community members. + +--- save --- diff --git a/en-US/step_7.md b/en-US/step_7.md new file mode 100644 index 000000000..e2bd83321 --- /dev/null +++ b/en-US/step_7.md @@ -0,0 +1,9 @@ +## Share + +If you are in a club, why not share your project with friends? + +Inspire the Raspberry Pi Foundation community with your project! + +To submit your project to our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio, please complete [this form](https://form.raspberrypi.org/f/community-project-submissions){:target="_blank"}. + +![Example shop projects in the 'Intergalactic shopping market' Scratch studio.](images/studio-example.png) diff --git a/en-US/step_8.md b/en-US/step_8.md new file mode 100644 index 000000000..482ba5b56 --- /dev/null +++ b/en-US/step_8.md @@ -0,0 +1,21 @@ +## What can you do now? + +If you are following the [More Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch) path, you can move on to the [Don't fall in](https://projects.raspberrypi.org/en/projects/dont-fall-in) project. In this project, you will make a top-down game where you have to jump from platform to platform and not fall in. + +--- print-only --- + +![Don't fall in project](images/dont-fall-in-project.png) + +--- /print-only --- + +--- no-print --- + +
+ +
+ +**Instructions:** Press space or tap the Stage to jump. + +--- /no-print --- + +If you want to have more fun exploring Scratch, then you could try out any of [these projects](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). diff --git a/es-419/images/add-friend-projects.png b/es-419/images/add-friend-projects.png new file mode 100644 index 000000000..3ad5bafed Binary files /dev/null and b/es-419/images/add-friend-projects.png differ diff --git a/es-419/images/add-sound.png b/es-419/images/add-sound.png new file mode 100644 index 000000000..123e3628f Binary files /dev/null and b/es-419/images/add-sound.png differ diff --git a/es-419/images/add-your-projects.png b/es-419/images/add-your-projects.png new file mode 100644 index 000000000..016bd757d Binary files /dev/null and b/es-419/images/add-your-projects.png differ diff --git a/es-419/images/banner.png b/es-419/images/banner.png new file mode 100644 index 000000000..f9ac6e053 Binary files /dev/null and b/es-419/images/banner.png differ diff --git a/es-419/images/choose-backdrop-icon.png b/es-419/images/choose-backdrop-icon.png new file mode 100644 index 000000000..6d7d7e298 Binary files /dev/null and b/es-419/images/choose-backdrop-icon.png differ diff --git a/es-419/images/choose-sprite-icon.png b/es-419/images/choose-sprite-icon.png new file mode 100644 index 000000000..7b04d235d Binary files /dev/null and b/es-419/images/choose-sprite-icon.png differ diff --git a/es-419/images/create-studio.png b/es-419/images/create-studio.png new file mode 100644 index 000000000..0ce2440f2 Binary files /dev/null and b/es-419/images/create-studio.png differ diff --git a/es-419/images/customer-count.png b/es-419/images/customer-count.png new file mode 100644 index 000000000..80dcafcd6 Binary files /dev/null and b/es-419/images/customer-count.png differ diff --git a/es-419/images/dont-fall-in-project.png b/es-419/images/dont-fall-in-project.png new file mode 100644 index 000000000..003a7787c Binary files /dev/null and b/es-419/images/dont-fall-in-project.png differ diff --git a/es-419/images/example-strip.png b/es-419/images/example-strip.png new file mode 100644 index 000000000..cecace153 Binary files /dev/null and b/es-419/images/example-strip.png differ diff --git a/es-419/images/fruit.png b/es-419/images/fruit.png new file mode 100644 index 000000000..d90edabce Binary files /dev/null and b/es-419/images/fruit.png differ diff --git a/es-419/images/icecream.png b/es-419/images/icecream.png new file mode 100644 index 000000000..a45c8791c Binary files /dev/null and b/es-419/images/icecream.png differ diff --git a/es-419/images/item-amounts.png b/es-419/images/item-amounts.png new file mode 100644 index 000000000..a9d44e807 Binary files /dev/null and b/es-419/images/item-amounts.png differ diff --git a/es-419/images/large-readout.png b/es-419/images/large-readout.png new file mode 100644 index 000000000..27000552a Binary files /dev/null and b/es-419/images/large-readout.png differ diff --git a/es-419/images/my-stuff-menu.png b/es-419/images/my-stuff-menu.png new file mode 100644 index 000000000..ad6992761 Binary files /dev/null and b/es-419/images/my-stuff-menu.png differ diff --git a/es-419/images/naming-studio.png b/es-419/images/naming-studio.png new file mode 100644 index 000000000..dc25e716e Binary files /dev/null and b/es-419/images/naming-studio.png differ diff --git a/es-419/images/new-variable.png b/es-419/images/new-variable.png new file mode 100644 index 000000000..5e017fb27 Binary files /dev/null and b/es-419/images/new-variable.png differ diff --git a/es-419/images/quiz2.png b/es-419/images/quiz2.png new file mode 100644 index 000000000..557a289f9 Binary files /dev/null and b/es-419/images/quiz2.png differ diff --git a/es-419/images/sprite-pane-size.png b/es-419/images/sprite-pane-size.png new file mode 100644 index 000000000..568608788 Binary files /dev/null and b/es-419/images/sprite-pane-size.png differ diff --git a/es-419/images/step2-image.png b/es-419/images/step2-image.png new file mode 100644 index 000000000..13f4abf61 Binary files /dev/null and b/es-419/images/step2-image.png differ diff --git a/es-419/images/step3-image.png b/es-419/images/step3-image.png new file mode 100644 index 000000000..08375a6d5 Binary files /dev/null and b/es-419/images/step3-image.png differ diff --git a/es-419/images/step4-image.png b/es-419/images/step4-image.png new file mode 100644 index 000000000..46a0e9a49 Binary files /dev/null and b/es-419/images/step4-image.png differ diff --git a/es-419/images/studio-example.png b/es-419/images/studio-example.png new file mode 100644 index 000000000..f91ad3daa Binary files /dev/null and b/es-419/images/studio-example.png differ diff --git a/es-419/images/tshirt.png b/es-419/images/tshirt.png new file mode 100644 index 000000000..09629879f Binary files /dev/null and b/es-419/images/tshirt.png differ diff --git a/es-419/images/upgrade-image.png b/es-419/images/upgrade-image.png new file mode 100644 index 000000000..7a3f3ad89 Binary files /dev/null and b/es-419/images/upgrade-image.png differ diff --git a/es-419/images/vending.png b/es-419/images/vending.png new file mode 100644 index 000000000..269b1dcc4 Binary files /dev/null and b/es-419/images/vending.png differ diff --git a/es-419/meta.yml b/es-419/meta.yml new file mode 100644 index 000000000..7c9a5f88d --- /dev/null +++ b/es-419/meta.yml @@ -0,0 +1,37 @@ +--- +title: Siguiente cliente por favor +hero_image: images/banner.png +description: Un proyecto de simulación de tienda donde el cliente puede comprar artículos. +meta_title: Proyectos de codificación de Scratch para niños y adolescentes | Próximo cliente por favor +meta_description: Aprende Scratch con los proyectos de codificación de la Fundación Raspberry Pi para niños y adolescentes. Cree una aplicación Scratch donde el cliente pueda comprar artículos de su tienda. +version: 4 +listed: true +copyedit: false +last_tested: "2021-03-26" +steps: + - + title: Lo que harás + - + title: Your shop + - + title: Productos en venta + completion: + - engaged + - + title: Compras + completion: + - internal + - + title: Examen rápido + knowledge_quiz: + path: quiz1 + version: 1 + questions: 3 + passing_score: 3 + completion: + - external + - + title: Desafío + challenge: true + - + title: Comparte diff --git a/es-419/quiz1/question_1.md b/es-419/quiz1/question_1.md new file mode 100644 index 000000000..417deb9d7 --- /dev/null +++ b/es-419/quiz1/question_1.md @@ -0,0 +1,72 @@ +## Test rápido + +Contesta las tres preguntas. Hay sugerencias para guiarlo a la respuesta correcta. + +Cuando haya respondido a cada pregunta, haga clic en **Verificar mi respuesta**. + +¡Diviértete! + +--- question --- + +--- +legend: Question 1 of 3 +--- + +Un proyecto de tienda utiliza una variable `total`{:class="block3variables"} para almacenar el total de cada cliente. + ++ Un cliente agrega artículos que suman `50` y paga ++ Un nuevo cliente agrega elementos que suman `40`, pero el `total`{:class="block3variables"} ahora se muestra como `90` para el segundo cliente + +¿Qué bloque necesitarías agregar al script de pago para que el total vuelva a `0` cuando cada cliente pague? + +--- choices --- + +- ( ) +```blocks3 +change [total v] by [0] +``` + + --- feedback --- + +No del todo. `total`{:class="block3variables"} debería ser `0` después de que un cliente paga, pero no es el bloque `cambiar`{:class="block3variables"} que necesitas. + + --- /feedback --- + +- ( ) +```blocks3 +set [total v] to [40] +``` + + --- feedback --- + + No del todo; esto funcionaría para el segundo cliente, pero el `total`{:class="block3variables"} sería incorrecto para otros clientes. + + --- /feedback --- + +- (x) + +```blocks3 +set [total v] to [0] +``` + + --- feedback --- + +Sí, correcto. Debes `fijar`{:class="block3variables"} el `total`{:class="block3variables"} a `0` después de que cada cliente pague. + + --- /feedback --- + +- ( ) + +```blocks3 +change [total v] by [-50] +``` + + --- feedback --- + +Eso funcionaría para este ejemplo, pero ¿qué pasa si el primer cliente gastó una cantidad diferente? Tu solución debe funcionar cuando el cliente anterior gasta cantidades diferentes. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/es-419/quiz1/question_2.md b/es-419/quiz1/question_2.md new file mode 100644 index 000000000..783f8f4a2 --- /dev/null +++ b/es-419/quiz1/question_2.md @@ -0,0 +1,63 @@ + +--- question --- + +--- +legend: Question 2 of 3 +--- + +En una tienda, el **vendedor** tiene este código en el script de pago: + +```blocks3 +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds +else +say [Sorry to hear that.] for [2] seconds +end +``` + +Cuando se ejecuta el código, el usuario escribe la respuesta "excelente". ¿Qué dirá el objeto **vendedor**? + +![Un cuadro de 'preguntar' con la palabra 'genial' escrita.](images/quiz2.png) + +--- choices --- + +- (x) El **Vendedor** dirá `Lamento escuchar eso.` + + --- feedback --- + + Sí. Los humanos saben que 'genial' es lo mismo que 'bueno', pero el '=' comprueba si las letras son iguales. + + La **condición** `respuesta`{:class="block3sensing"} = `bueno` es 'falso' entonces se ejecutará el bloque `decir`{:class="block3looks"} en la parte `entonces`{:class="block3control"}. + + --- /feedback --- + +- ( ) El **vendedor** dirá `¡Eso es fantástico!` + + --- feedback --- + +No, solo la respuesta exacta `buena` hará que el **vendedor** diga `¡Eso es fantástico!`. Vuelve a ver el código para ver qué mensaje dirá el **vendedor** para todas las respuestas que no sean `buenas`. + +**Sugerencia:** 'Bueno' o 'BUENO' coincidiría con 'bueno'. + + --- /feedback --- + +- ( ) El **vendedor** no dirá nada. + + --- feedback --- + +No, el **vendedor** siempre dirá algo. Mira cuidadosamente el código para ver cuál será el mensaje. + + --- /feedback --- + +- ( ) El **vendedor** dirá `genial`. + + --- feedback --- + +No, el **cliente** escribió la respuesta 'genial' pero el **vendedor** no dice la respuesta. Mira cuidadosamente el código para ver cuál será el mensaje. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/es-419/quiz1/question_3.md b/es-419/quiz1/question_3.md new file mode 100644 index 000000000..18d9e6681 --- /dev/null +++ b/es-419/quiz1/question_3.md @@ -0,0 +1,48 @@ + +--- question --- + +--- +legend: Question 3 of 3 +--- + +Your project is not working. What should you do? + +--- choices --- + +- ( ) ¡Pánico! + + --- feedback --- + + Eso no va a ayudar. Debes pensar con claridad para solucionar los problemas de codificación. + + --- /feedback --- + +- ( ) Abandonar + + --- feedback --- + + There are lots of things you could try. Los grandes codificadores a menudo se equivocan la primera vez y aprenden mucho de sus errores. + + --- /feedback --- + +- (x) Lee el código detenidamente e intenta depurarlo. + + --- feedback --- + + Sí. La corrección de errores es parte de la codificación. Cuanto más practiques, más experiencia obtendrás y más fácil será encontrar y corregir errores. + + --- /feedback --- + +- ( ) Enojarse con la computadora + + --- feedback --- + +Una computadora solo hace lo que le decimos que haga, por lo que enojarse con ella no es lógico. + +Estar molesto no ayudará a resolver el problema, ya que hará que sea más difícil pensar con claridad. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/es-419/scratch-comments.txt b/es-419/scratch-comments.txt new file mode 100644 index 000000000..44a964074 --- /dev/null +++ b/es-419/scratch-comments.txt @@ -0,0 +1,9 @@ +escribe el nombre de tu negocio + +el nombre de tu negocio + +usa el nombre de tu objeto Contenedor + +posición de salida + +el cliente anterior toma la bolsa diff --git a/es-419/scratch-translatable.txt b/es-419/scratch-translatable.txt new file mode 100644 index 000000000..ce7fc4066 --- /dev/null +++ b/es-419/scratch-translatable.txt @@ -0,0 +1,49 @@ +nombre + +mi tienda + +siguiente cliente + +¡Siguiente cliente por favor! + +total + +Son + +Gracias por comprar en + +¿Quieres pagar o cancelar? + +pagar + +cancelar + +Está bien. No hay problema + +Haz clic en los elementos que quieras + +¿Encontraste todo lo que querías? + +sí + +¡Eso es fantástico! + +Tal vez debería agregar más artículos a mi tienda + +Bolsa + +1 cucharada + +cono + +tienda + +verdadero + +falso + +¿Cómo estás hoy? + +bien + +Lamento escuchar eso. diff --git a/es-419/solutions/Cool Shirts.sb3 b/es-419/solutions/Cool Shirts.sb3 new file mode 100644 index 000000000..ff0e30b75 Binary files /dev/null and b/es-419/solutions/Cool Shirts.sb3 differ diff --git a/es-419/solutions/Fresh Space Fruit.sb3 b/es-419/solutions/Fresh Space Fruit.sb3 new file mode 100644 index 000000000..f38b06841 Binary files /dev/null and b/es-419/solutions/Fresh Space Fruit.sb3 differ diff --git a/es-419/solutions/Vending machine.sb3 b/es-419/solutions/Vending machine.sb3 new file mode 100644 index 000000000..225e75cee Binary files /dev/null and b/es-419/solutions/Vending machine.sb3 differ diff --git a/es-419/solutions/ice cream shop.sb3 b/es-419/solutions/ice cream shop.sb3 new file mode 100644 index 000000000..bd1f9a3d0 Binary files /dev/null and b/es-419/solutions/ice cream shop.sb3 differ diff --git a/es-419/step_1.md b/es-419/step_1.md new file mode 100644 index 000000000..fc347236e --- /dev/null +++ b/es-419/step_1.md @@ -0,0 +1,52 @@ +## Lo que harás + +Crea una aplicación para tiendas donde el cliente pueda comprar artículos de tu tienda. El proyecto estará en primera persona donde el jugador es un cliente. + +--- no-print --- + +Click on Space Fruit to buy them and watch the total go up. Cuando estés listo, haz clic en Kiran para pagar. + ++ What happens if you try to checkout before you have chosen any fruit? ++ How do you think the project knows that you haven't added any fruit yet? + +
+**Fruta espacial fresca**: [Ver interior](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +
+ +
+
+ +### Obtén ideas 💭 + +Haz clic en el objeto de **vendedor** para comprar artículos: + +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +
+ +
+ +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +
+ +
+ +**⭐ Pride pins** (Proyecto destacado de la comunidad) + +Haga clic en las insignias del pin del orgullo para agregarlas a su bolsa de compras: + +
+ +
+ +--- /no-print --- + +--- print-only --- + +### Obtén ideas 💭 + +Vas a tomar algunas decisiones de diseño para crear tu personaje. See inside example projects in the Scratch 2: Next customer please! Scratch studio at https://scratch.mit.edu/studios/29611454 + +![Proyecto de ejemplo](images/fruit.png) ![Proyecto de ejemplo](images/tshirt.png) ![Proyecto de ejemplo](images/icecream.png) ![Proyecto de ejemplo](images/vending.png) + +--- /print-only --- + diff --git a/es-419/step_2.md b/es-419/step_2.md new file mode 100644 index 000000000..51bd433a0 --- /dev/null +++ b/es-419/step_2.md @@ -0,0 +1,80 @@ +## Your shop + +
+
+What is your shop idea? Podría ser algo realista, algo de un libro o una película que te guste, o algo completamente absurdo. +
+
+![](images/step2-image.png){:width="300px"} +
+
+ +--- task --- + +Abre un [nuevo proyecto de Scratch](http://rpf.io/scratch-new){:target="_blank"} y observa la variedad de objetos y fondos que puedes usar. Spend some time thinking about your shop idea. + +--- /task --- + +--- task --- + +**Choose a Backdrop** or paint your own backdrop. + +![](images/choose-backdrop-icon.png) + ++ A backdrop from the Scratch library, or a plain coloured backdrop + +--- /task --- + +--- task --- + +**Choose a Sprite** and add or paint extra scenery sprites. + +![](images/choose-sprite-icon.png) + +--- /task --- + +--- task --- + +Add more scenery. ++ A desk, counter, or window to sell from ++ Un estante o una librería para poner artículos; podrías pintar esto en el fondo + +--- /task --- + +--- task --- + +Agrega un objeto para representar al vendedor. + +You could choose: ++ A person or non-player character such as a shopkeeper, farmer, or librarian ++ A machine such as a vending machine, jukebox, or cash register + +![](images/choose-sprite-icon.png) + +--- /task --- + +### Welcome your first customer. + +--- task --- + +Click on your **seller** sprite and add a `broadcast`{:class="block3events"} block. Create a new message called `next customer`. + +```blocks3 +when flag clicked ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +Create a new script for your **seller** sprite to `say`{:class="block3looks"} `Next customer please` when they receive the `broadcast`{:class="block3events"} `next customer`{:class="block3events"}. + +```blocks3 +when I receive [next customer v] +say [Next customer please!] for (2) seconds +``` + +--- /task --- + +--- save --- diff --git a/es-419/step_3.md b/es-419/step_3.md new file mode 100644 index 000000000..666139f31 --- /dev/null +++ b/es-419/step_3.md @@ -0,0 +1,128 @@ +## Productos en venta + +
+
+Tu tienda necesita artículos para vender. Cada artículo tendrá un precio que se agregará a una variable `total`{:class="block3variables"}. +
+
+![](images/step3-image.png){:width="300px"} +
+
+ +Deberás realizar un seguimiento de cuánto gasta tu cliente. + +--- task --- + +Agrega una nueva variable llamada `total`{:class="block3variables"} para todos los objetos. + +Haz clic en tu objeto **vendedor** y agrega un script para `establecer`{:class="block3variables"} los `totales`{:class="block3variables"} a `0` cuando comience el proyecto. + +[[[scratch3-create-set-variable]]] + +--- /task --- + +¿Qué **artículos** comprarán tus clientes? ++ Algún tipo de comida o bebida ++ Equipo deportivo, juguetes o aparatos ++ Varitas mágicas, pociones o libros de hechizos ++ Ropa u otros artículos de moda ++ Your own idea + +--- task --- + +Agrega un objeto para los primeros **artículos** que vas a vender en tu tienda. + +Si quieres puedes agregar un precio al disfraz usando la herramienta de texto en el editor de Paint. O agrega un precio al fondo y coloca el artículo junto a él. + +![Ejemplos de artículos con cantidades escritas junto a ellos.](images/item-amounts.png) + +--- /task --- + +--- task --- + +Agrega un script a `cambiar`{:class="block3variables"} el `total`{:class="block3variables"} por el precio de tu artículo cuando el cliente hace clic en el objeto. + +--- collapse --- +--- +title: Click to add an item +--- + +```blocks3 +when this sprite clicked +start sound (Coin v) +change [total v] by [10] +``` + +--- /collapse --- + +También es una buena idea `reproducir un sonido`{:class="block3sound"} para informar al cliente de que ha agregado un artículo. + +![El icono para agregar un sonido](images/add-sound.png) + +[[[scratch3-add-sound]]] + +--- /task --- + +--- task --- + +**Prueba:** Haz clic en tu artículo y comprueba que el valor de la variable `total`{:class="block3variables"} aumenta según el precio del artículo, y que escuchas el efecto de sonido. Haz clic más veces para ver cómo sube el total. + +Haz clic en la bandera verde para iniciar tu proyecto y asegúrate de que el `total`{:class="block3variables"} comience en `0`. + +--- /task --- + +--- task --- + +Añade más artículos a tu tienda. + +También puedes: ++ Duplica el primer elemento y luego agrega un nuevo disfraz en el editor de Paint ++ Agrega un objeto y luego arrastra el `cuando la bandera haga clic en` {:class="block3events"} el script desde el primer artículo hasta tu nuevo elemento + +Agrega una etiqueta de precio al disfraz o al telón de fondo, si los estás usando. + +--- /task --- + +--- task --- + +Haz clic en su nuevo articulo **artículo** en la lista de Sprites y luego haz clic en la pestaña **Code**. + +Cambia la cantidad que cambia el `total`{:class="block3variables"} por el precio de tu nuevo artículo. + +--- /task --- + +--- task --- + +**Prueba:** Haz clic en la bandera verde para iniciar tu proyecto y haz clic en los elementos para agregarlos. Comprueba que el total aumenta en la cantidad correcta cada vez que haces clic en un elemento. + +Si agregaste etiquetas de precios, asegúrate de que coincidan con la cantidad que se agrega al `total`{:class="block3variables"}, o tus clientes se confundirán. + +--- /task --- + +--- task --- + +**Depuración:** Es posible que encuentres algunos errores en tu proyecto que necesite corregir. Aquí hay algunos errores comunes. + +--- collapse --- +--- +title: The total doesn't go to 0 when I click the green flag +--- + +Comprueba que hayas establecido el valor inicial de la variable `total`{:class="block3variables"} en el script `al presionar Bandera verde`{:class="block3events"} en tu objeto **vendedor**. + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't increase by the correct amount when I click on an item +--- + +Verifica que cada `al hacer clic en este objeto`{:class="block3events"} tenga una secuencia de comandos que cambia el total de `0`{:class="block3variables"} por la cantidad correcta para ese elemento; es posible que hayas cambiado el precio del objeto equivocado. + +Comprueba que hayas utilizado el bloque `cambiar`{:class="block3variables"} y no el bloque `establecer`{:class="block3variables"} para cambiar el `total`{:class="block3variables"}. Debes usar `cambiar`{:class="block3variables"} para agregar el precio al total, no quieres establecer el total en el precio del artículo que se acaba de agregar. + +--- /collapse --- + +--- /task --- + +--- save --- diff --git a/es-419/step_4.md b/es-419/step_4.md new file mode 100644 index 000000000..feef10ff3 --- /dev/null +++ b/es-419/step_4.md @@ -0,0 +1,141 @@ +## Compras + +
+
+ +El objeto**vendedor** necesita: +- preguntar si el cliente está listo para pagar los artículos +- aceptar el pago +- prepararse para el próximo cliente +
+
+![](images/step4-image.png){:width="300px"} +
+
+ +Cuando hayas terminado de elegir artículos, el cliente hará clic en el sprite **vendedor** para pagar. + +--- task --- + + Dile al cliente cuánto costarán sus artículos. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +``` + +--- /task --- + +--- task --- + +Agrega un sonido de pago a su sprite **vendedor** para que el cliente sepa que se está realizando el pago. + +![El icono para agregar un sonido](images/add-sound.png) + +[[[scratch3-add-sound]]] + +Agrega el sonido de reproducción `hasta que termine el bloque`{:class="block3sound"} a su script. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ play sound [machine v] until done +``` + +--- /task --- + +--- task --- + +Termina la venta. Establece `total`{:class="block3variables"} volver a `0` después del pago, `decir`{:class="block3looks"} adiós y `transmitir`{:class="block3control"} `próximo cliente`{: clase="bloque3control"}. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +play sound [machine v] until done ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +**Prueba:** Prueba tu proyecto y asegúrate de: lo siguiente: +- El cliente puede pagar con los efectos de sonido correctos +- El `total`{:class="block3variables"} se regresa a `0` después de que un cliente paga o cancela. + +--- /task --- + + +--- task --- + +**Depuración:** Es posible que encuentres algunos errores en tu proyecto que necesites corregir. + +Estos son algunos errores comunes: + +--- collapse --- +--- +title: The seller doesn't do anything when I click on them +--- + +Tienes bastantes objetos en tu proyecto. Asegúrate de que el script `al hacer clic en este objeto `{:class="block3events"} esté en tu objeto **vendedor**. + +**Sugerencia:** Si lo agregaste al objeto incorrecto, puedes arrastrar el código al objeto **vendedor** y luego eliminarlo del otro objeto. + +--- /collapse --- + +--- collapse --- +--- +title: The words in the say blocks merge together +--- + +Cuando `unes `{:class="block3operators"} dos piezas, debes agregar un espacio al final de tu primera pieza de texto o al comienzo de tu segunda pieza de texto. + +Estos tienen un espacio al final de la primera parte de la unión: + +```blocks3 +say {join [That will be ](total)} for (2) seconds + +say {join [Thanks for shopping at ](name)} for (2) seconds +``` + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't reset after a sale +--- + +Comprueba que has utilizado: + +```blocks3 +set [total v] to (0) +``` + +**no**: + +```blocks3 +change [total v] by (0) +``` + +--- /collapse --- + +--- collapse --- +--- +title: The seller isn't responding +--- + +Asegúrate de que el `operador`{:class="block3operators"} en la condición `if`{:class="block3control"} sea el símbolo mayor que `>`{:class="block3operators"}. + +```blocks3 +if <(total) > [0]> then +``` + +--- /collapse --- + +**Sugerencia:** Compara tu código con los ejemplos de código. ¿Hay alguna diferencia que no debería estar ahí? + +--- /task --- + +--- save --- diff --git a/es-419/step_5.md b/es-419/step_5.md new file mode 100644 index 000000000..33c047a0d --- /dev/null +++ b/es-419/step_5.md @@ -0,0 +1 @@ +## Test rápido \ No newline at end of file diff --git a/es-419/step_6.md b/es-419/step_6.md new file mode 100644 index 000000000..e1a276cb6 --- /dev/null +++ b/es-419/step_6.md @@ -0,0 +1,230 @@ +## Desafío + +
+
+Hay muchas funciones que podrías agregar para mejorar la experiencia de compra de tus clientes. No es necesario agregar todo. Simplemente agrega las mejoras que creas que son importantes. +
+
+![](images/customer-count.png){:width="300px"} +
+
+ +--- task --- + +Agrega más artículos para vender. + +--- /task --- + +--- task --- + +Añade más gráficos y efectos de sonido. + +--- /task --- + +--- task --- + +Pinta tu propia escenografía y otros disfraces. + +--- /task --- + +--- task --- + +Haz otro negocio y permite que los jugadores los visiten a ambos. + +--- /task --- + +Cada proyecto de ejemplo en la [Introducción](.) tiene un enlace 'Ver adentro' para que puedas abrir el proyecto en Scratch y mirar el código para obtener ideas y ver cómo funcionan. Puedes 'Ver el interior' de los proyectos de ejemplo para ver cómo funcionan. + +Example projects: **Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Vending machine**: [See inside](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} + +**Tip:** If you are logged in to a Scratch account, then you can use the **Backpack** to copy scripts or sprites to your project. + +[[[scratch-backpack]]] + +### Chatty checkout! + +Your checkout person (or machine) could ask whether the service was good, or if the customer is having a nice day. + +--- task --- + +Add `ask`{:class="block3sensing"} blocks to your **seller**'s `when this sprite clicked`{:class="block3events"} script and `say`{:class="block3looks"} different things depending on the customer's response. + +--- collapse --- + +--- +title: Ask and respond to questions +--- + +```blocks3 +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds +else +say [Maybe I should add more items to my shop] for [2] seconds +end +``` + +**Debug:** Check that you have spelled the options correctly in your code and in your answer. It's OK if you use capital letters, so "Yes" and "YES" will match "yes". + +Add multiple questions to create a chatbot or non-player character that you can talk to. + +--- /collapse --- + +--- /task --- + +### Bag the items + +--- task --- + +The Cool Shirts project has shirts that glide into a bag. + +--- collapse --- + +--- +title: Make items glide into a container +--- + +Add a **Container** sprite. You could use an existing sprite like the **Gift** or **Take out** sprite, or paint your own with simple shapes. + +Add a script to make the **Container** always appear at the front: + +```blocks3 +when flag clicked +forever +go to [front v] layer +end +``` + +Then you'll need to add code to each **Item** you have for sale to make them glide to the container when they are clicked: + +```blocks3 +when this sprite clicked ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite ++hide +change [total v] by [12] ++go to x: [-180] y: [68] // start position ++show +``` + +If you don't want the container there all the time, you can add scripts to make it show and hide at the right time: + +```blocks3 +when I receive [next customer v] +hide // previous customer takes the bag +wait [1] seconds +show +``` + +**Test:** Try your project and make sure items glide to the container and hide. + +**Debug:** Check your scripts carefully and make sure you have updated all of your **Item** sprites. You can look at [Cool Shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} if you need to see a working example. + +--- /collapse --- + +--- /task --- + +###  Stop adding items when the customer is at the checkout + +--- task --- + +Add a `shop`{:class="block3variables"} variable and use it to control when items can be added. + +--- collapse --- + +--- +title: Stop purchases when the customer is at the checkout +--- + +Add a `variable`{:class="block3variables"} called `shop` for all sprites. You will set this to `true` when the customer is in the shop and `false` when they are at the checkout. + +Select your **seller** sprite. Update the `when flag clicked`{:class="block3events"} script to allow shopping when your project starts: + +```blocks3 ++set [shop v] to [true] +``` + +Now add a block to change the `shop`{:class="block3variables"} to `false` at the beginning of your **seller**'s `when this sprite clicked`{:class="block3events"} script: + +```blocks3 ++set [shop v] to [false] +``` + +And a block to set the `shop`{:class="block3variables"} variable back to `true` at the end of the same script: + +```blocks3 ++set [shop v] to [true] +``` + +Now you need to update the items you sell to check the `shop`{:class="block3variables"} variable: + +```blocks3 +when this sprite clicked ++if <(shop) = [true]> then +start sound (Coin v) +change [total v] by [10] +end +``` +You will need to do this for every item you sell in your shop. + +**Test:** Click the green flag then try shopping. Check that you can still add items and checkout, but you can't add items once you have started checking out. + +**Debug:** Check your code really carefully. You can look at the [Space Fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project if you need to see a working example. + +--- /collapse --- + +--- /task --- + +--- task --- + +### Give the customer the option to cancel their shopping. + +--- collapse --- + +--- +title: Set up pay and cancel options +--- + +`Ask`{:class="block3sensing"} `Would you like to pay or cancel?`. Add an `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `pay` and inside it put your existing payment blocks. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end +``` + +Add a second `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `cancel` and inside it add code to cancel the order. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] +end +``` + +--- /collapse --- + +--- /task --- + +Take a look at our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio to see projects created by community members. + +--- save --- diff --git a/es-419/step_7.md b/es-419/step_7.md new file mode 100644 index 000000000..2f17483ee --- /dev/null +++ b/es-419/step_7.md @@ -0,0 +1,9 @@ +## Comparte + +Si eres miembro de un club, ¿por qué no compartes tu proyecto con tus amigos? + +¡Inspira a la comunidad de la Fundación Raspberry Pi con tu proyecto! + +To submit your project to our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio, please complete [this form](https://form.raspberrypi.org/f/community-project-submissions){:target="_blank"}. + +![Ejemplos de proyectos de tiendas en el estudio Scratch 'Intergalactic shopping market'.](images/studio-example.png) diff --git a/es-419/step_8.md b/es-419/step_8.md new file mode 100644 index 000000000..b18ecedab --- /dev/null +++ b/es-419/step_8.md @@ -0,0 +1,21 @@ +## What can you do now? + +If you are following the [More Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch) path, you can move on to the [Don't fall in](https://projects.raspberrypi.org/en/projects/dont-fall-in) project. En este proyecto, harás un juego de arriba hacia abajo en el que tienes que saltar de plataforma en plataforma y no caerte. + +--- print-only --- + +![Proyecto No te caigas](images/dont-fall-in-project.png) + +--- /print-only --- + +--- no-print --- + +
+ +
+ +**Instructions:** Press space or tap the Stage to jump. + +--- /no-print --- + +If you want to have more fun exploring Scratch, then you could try out any of [these projects](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). diff --git a/fr-FR/images/dont-fall-in-project.png b/fr-FR/images/dont-fall-in-project.png new file mode 100644 index 000000000..003a7787c Binary files /dev/null and b/fr-FR/images/dont-fall-in-project.png differ diff --git a/fr-FR/meta.yml b/fr-FR/meta.yml index f4fd63baa..061977310 100644 --- a/fr-FR/meta.yml +++ b/fr-FR/meta.yml @@ -9,15 +9,20 @@ listed: true copyedit: false last_tested: "2021-03-26" steps: - - title: Ce que tu vas faire - - title: Ta boutique - - title: Articles en vente + - + title: Ce que tu vas faire + - + title: Ta boutique + - + title: Articles en vente completion: - engaged - - title: Achats + - + title: Achats completion: - internal - - title: Questionnaire rapide + - + title: Questionnaire rapide knowledge_quiz: path: quiz1 version: 1 @@ -25,6 +30,8 @@ steps: passing_score: 3 completion: - external - - title: Défi + - + title: Défi challenge: true - - title: Partager + - + title: Partager diff --git a/fr-FR/quiz1/question_2.md b/fr-FR/quiz1/question_2.md index 0fa5ba202..722c83cbe 100644 --- a/fr-FR/quiz1/question_2.md +++ b/fr-FR/quiz1/question_2.md @@ -8,11 +8,11 @@ legend: Question 2 sur 3 Dans une boutique, le/la **vendeur·euse** a ce code dans le script de paiement : ```blocks3 -ask [Comment allez-vous aujourd'hui ?] and wait -if <(answer) = [bien]> then -say [C'est fantastique !] for [2] seconds +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds else -say [Je suis désolé.] for [2] seconds +say [Sorry to hear that.] for [2] seconds end ``` diff --git a/fr-FR/scratch-translatable.txt b/fr-FR/scratch-translatable.txt index 8d88d3884..4f217b617 100644 --- a/fr-FR/scratch-translatable.txt +++ b/fr-FR/scratch-translatable.txt @@ -38,7 +38,7 @@ cône boutique -true +vrai faux diff --git a/fr-FR/step_1.md b/fr-FR/step_1.md index 3352a1c25..f127b0e63 100644 --- a/fr-FR/step_1.md +++ b/fr-FR/step_1.md @@ -12,7 +12,7 @@ Clique sur Fruits de l'espace pour les acheter et regarde le total augmenter. Lo
**Fruits frais de l'espace** : [voir à l'intérieur](https://scratch.mit.edu/projects/707260567/editor){:target="_blank"}
- +
@@ -20,14 +20,14 @@ Clique sur Fruits de l'espace pour les acheter et regarde le total augmenter. Lo Clique sur le sprite **vendeur·euse** pour acheter des articles : -**T-shirts cool** : [voir à l'intérieur](https://scratch.mit.edu/projects/707260366/editor){:target="_blank"} +**T-shirts cool** : [voir à l'intérieur](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"}
- +
-**Glacier** : [voir à l'intérieur](https://scratch.mit.edu/projects/707260702/editor){:target="_blank"} +**Glacier** : [voir à l'intérieur](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"}
- +
**⭐ Badges de fierté** (projet communauté en vedette) @@ -46,10 +46,7 @@ Clique sur les badges de la fierté pour les ajouter à ton panier : Tu vas prendre des décisions de conception pour créer ton personnage. Voir à l'intérieur des exemples de projets dans Scratch 2 : Client suivant, s'il vous plaît ! Studio Scratch sur https://scratch.mit.edu/studios/29611454 -![Exemple de projet](images/fruit.png) -![Exemple de projet](images/tshirt.png) -![Exemple de projet](images/icecream.png) -![Exemple de projet](images/vending.png) +![Exemple de projet](images/fruit.png) ![Exemple de projet](images/tshirt.png) ![Exemple de projet](images/icecream.png) ![Exemple de projet](images/vending.png) --- /print-only --- diff --git a/fr-FR/step_2.md b/fr-FR/step_2.md index f01d54e03..1cb09c6c5 100644 --- a/fr-FR/step_2.md +++ b/fr-FR/step_2.md @@ -61,7 +61,7 @@ Clique sur ton sprite **vendeur·euse** et ajoute un bloc `envoyer à tous`{:cla ```blocks3 when flag clicked -+ broadcast (client suivant v) ++ broadcast (next customer v) ``` --- /task --- @@ -71,8 +71,8 @@ when flag clicked Crée un nouveau script pour ton sprite **vendeur·euse** pour `dire`{:class="block3looks"} `Client suivant, s'il vous plaît` quand il reçoit `envoyer à tous`{:class="block3control"} `client suivant`{:class="block3control"}. ```blocks3 -when I receive [client suivant v] -say [Client suivant, s'il vous plaît !] for (2) seconds +when I receive [next customer v] +say [Next customer please!] for (2) seconds ``` --- /task --- diff --git a/fr-FR/step_4.md b/fr-FR/step_4.md index 82f6fc03d..7afddd6c9 100644 --- a/fr-FR/step_4.md +++ b/fr-FR/step_4.md @@ -21,7 +21,7 @@ Lorsqu'il/elle aura fini de choisir les articles, le/la client·e cliquera sur l ```blocks3 when this sprite clicked -say (join [Cela fera ] (total)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds ``` --- /task --- @@ -38,7 +38,7 @@ Ajoute le bloc `jouer le son jusqu'au bout`{:class="block3sound"} à ton script. ```blocks3 when this sprite clicked -say (join [Cela fera ] (total)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds + play sound [machine v] until done ``` @@ -50,11 +50,11 @@ Termine la vente. Mets `total`{:class="block3variables"} à `0` après le paieme ```blocks3 when this sprite clicked -say (join [Cela fera ] (total)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds play sound [machine v] until done + set [total v] to (0) -+ say (join [Merci d'avoir acheté chez ] (nom)) for (2) seconds -+ broadcast (client suivant v) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) ``` --- /task --- @@ -95,9 +95,9 @@ Lorsque tu `regroupes`{:class="block3operators"} deux morceaux ensemble, tu dois Ceux-ci ont un espace à la fin de la première partie de la jointure : ```blocks3 -say {join [Cela fera ](total)} for (2) seconds +say {join [That will be ](total)} for (2) seconds -say {join [Merci d'avoir acheté chez ](nom)} for (2) seconds +say {join [Thanks for shopping at ](name)} for (2) seconds ``` --- /collapse --- diff --git a/fr-FR/step_6.md b/fr-FR/step_6.md index d8f979c52..6a570ded9 100644 --- a/fr-FR/step_6.md +++ b/fr-FR/step_6.md @@ -35,11 +35,10 @@ Crée un autre commerce et autorise les joueurs à les visiter tous les deux. Chaque exemple de projet dans l'[introduction](.) a un lien « voir à l'intérieur » pour que tu puisses ouvrir le projet dans Scratch et regarder le code pour avoir des idées et voir comment ils fonctionnent. Tu peux « voir à l'intérieur » des exemples de projets pour voir comment ils fonctionnent. -Exemples de projets : -**Fruits frais de l'espace** : [voir à l'intérieur](https://scratch.mit.edu/projects/707260567/editor){:target="_blank"} -**T-shirts cool**: [voir à l'intérieur](https://scratch.mit.edu/projects/707260366/editor){:target="_blank"} -**Glacier** : [voir à l'intérieur](https://scratch.mit.edu/projects/707260702/editor){:target="_blank"} -**Distributeur automatique** : [voir à l'intérieur](https://scratch.mit.edu/projects/707260825/editor){:target="_blank"} +Exemples de projets : **Fruits frais de l'espace** : [voir à l'intérieur](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**T-shirts cool**: [voir à l'intérieur](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Glacier** : [voir à l'intérieur](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Distributeur automatique** : [voir à l'intérieur](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} **Astuce :** si tu es connecté à un compte Scratch, tu peux utiliser le **Sac à dos** pour copier des scripts ou des sprites dans ton projet. @@ -60,11 +59,11 @@ title: Poser des questions et y répondre --- ```blocks3 -ask [Avez-vous trouvé tout ce que vous vouliez aujourd'hui ?] and wait -if <(answer) = [oui]> then -say [C'est fantastique !] for [2] seconds +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds else -say [Peut-être que je devrais ajouter plus d'articles à ma boutique] for [2] seconds +say [Maybe I should add more items to my shop] for [2] seconds end ``` @@ -95,7 +94,7 @@ Ajoute un script pour que le **Conteneur** apparaisse toujours à l'avant plan  ```blocks3 when flag clicked forever -go to [avant v] layer +go to [front v] layer end ``` @@ -103,26 +102,26 @@ Ensuite, tu devras ajouter un code à chaque **article** en vente pour les faire ```blocks3 when this sprite clicked -+go to [avant v] layer -+glide [1] secs to (Bag v) // utiliser le nom du sprite du conteneur ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite +hide change [total v] by [12] -+go to x: [-180] y: [68] // position de départ ++go to x: [-180] y: [68] // start position +show ``` Si tu ne veux pas que le conteneur soit présent en permanence, tu peux ajouter des scripts pour qu'il s'affiche et se cache au bon moment : ```blocks3 -when I receive [client suivant v] -hide // le client précédent prend le sac +when I receive [next customer v] +hide // previous customer takes the bag wait [1] seconds show ``` **Test :** essaie ton projet et assure-toi que les articles glissent vers le conteneur et se cachent. -**Debogage :** vérfie iattentivementment tes scripts et assure-toi d'avoir mis à jour tous tes sprites **Article**. Tu peux consulter le projet [T-shirts cool](https://scratch.mit.edu/projects/707260366/editor){:target="_blank"} si tu as besoin de voir un exemple fonctionnel. +**Debogage :** vérfie iattentivementment tes scripts et assure-toi d'avoir mis à jour tous tes sprites **Article**. Tu peux consulter le projet [T-shirts cool](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} si tu as besoin de voir un exemple fonctionnel. --- /collapse --- @@ -145,26 +144,26 @@ Ajoute une `variable`{:class="block3variables"} appelée `boutique` pour tous le Sélectionne ton sprite **vendeur·euse**. Mets à jour le script `quand le drapeau est cliqué`{:class="block3events"} pour autoriser les achats au démarrage de ton projet : ```blocks3 -+set [boutique v] to [true] ++set [shop v] to [true] ``` Ajoute maintenant un bloc pour changer la `boutique`{:class="block3variables"} sur `faux` au début du script de ton/ta **vendeur·euse** `quand ce sprite est cliqué`{:class="block3events"} : ```blocks3 -+set [boutique v] to [false] ++set [shop v] to [false] ``` Et un bloc pour remettre la variable `boutique`{:class="block3variables"} sur `vrai` à la fin du même script : ```blocks3 -+set [boutique v] to [true] ++set [shop v] to [true] ``` Tu dois maintenant mettre à jour les articles que tu vends pour vérifier la variable `boutique`{:class="block3variables"} : ```blocks3 when this sprite clicked -+if <(boutique) = [true]> then ++if <(shop) = [true]> then start sound (Coin v) change [total v] by [10] end @@ -193,13 +192,13 @@ title: Configurer les options de paiement et d'annulation ```blocks3 when this sprite clicked -say (join [Cela fera ] (total)) for (2) seconds -+ ask [Voulez-vous payer ou annuler ?] and wait -+ if {(answer) = [payer]} then +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then play sound [machine v] until done set [total v] to (0) -say (join [Merci d'avoir acheté chez ] (nom)) for (2) seconds -broadcast [client suivant v] +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] end ``` @@ -207,18 +206,18 @@ Ajoute un deuxième bloc `si`{:class="block3control"} pour `réponse`{:class="bl ```blocks3 when this sprite clicked -say (join [Cela fera ] (total)) for (2) seconds -ask [Voulez-vous payer ou annuler ?] and wait -if {(answer) = [payer]} then +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then play sound [machine v] until done set [total v] to (0) -say (join [Merci d'avoir acheté chez ] (nom)) for (2) seconds -broadcast [client suivant v] +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] end -+ if {(answer) = [annuler]} then ++ if {(answer) = [cancel]} then set [total v] to (0) -say [D'accord. Pas de problème] for (2) seconds -broadcast [client suivant v] +say [Ok. No problem] for (2) seconds +broadcast [next customer v] end ``` @@ -226,6 +225,6 @@ end --- /task --- -Jette un œil à notre studio Scratch [« Intergalactic shopping market »](https://scratch.mit.edu/studios/707260567){:target="_blank"} pour voir les projets créés par les membres de la communauté. +Jette un œil à notre studio Scratch [« Intergalactic shopping market »](https://scratch.mit.edu/studios/29662180){:target="_blank"} pour voir les projets créés par les membres de la communauté. --- save --- diff --git a/fr-FR/step_7.md b/fr-FR/step_7.md index 14cc458c5..a42d46de1 100644 --- a/fr-FR/step_7.md +++ b/fr-FR/step_7.md @@ -4,6 +4,6 @@ Si tu es dans un club, pourquoi ne pas partager ton projet avec des ami·e·s ? Inspire la communauté Raspberry Pi Foundation avec ton projet ! -Jette un œil à notre studio Scratch [« Intergalactic shopping market »](https://scratch.mit.edu/studios/707260567){:target="_blank"} pour voir les projets créés par les membres de la communauté. +Jette un œil à notre studio Scratch [« Intergalactic shopping market »](https://scratch.mit.edu/studios/29662180){:target="_blank"} pour voir les projets créés par les membres de la communauté. ![Exemples de projets de boutique dans le studio Scratch "Intergalactic shopping market".](images/studio-example.png) diff --git a/fr-FR/step_8.md b/fr-FR/step_8.md index 9fc620af6..bde431f5a 100644 --- a/fr-FR/step_8.md +++ b/fr-FR/step_8.md @@ -1,6 +1,6 @@ ## Que peux-tu faire maintenant ? -Si tu suis le parcours [Plus de Scratch](https://projects.raspberrypi.org/fr-FR/raspberrypi/more-scratch), tu peux passer au projet [Ne tombe pas dedans !](https://projects.raspberrypi.org/fr-FR/projects/dont-fall-in). Dans ce projet, tu vas créer un jeu qui défile de haut en bas où tu dois sauter de plateforme en plateforme et ne pas tomber dedans. +Si tu suis le parcours [Plus de Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch), tu peux passer au projet [Ne tombe pas dedans !](https://projects.raspberrypi.org/en/projects/dont-fall-in). Dans ce projet, tu vas créer un jeu qui défile de haut en bas où tu dois sauter de plateforme en plateforme et ne pas tomber dedans. --- print-only --- @@ -11,20 +11,11 @@ Si tu suis le parcours [Plus de Scratch](https://projects.raspberrypi.org/fr-FR/ --- no-print ---
- +
**Instructions :** appuie sur la barre d'espace ou appuie sur la scène pour sauter. --- /no-print --- -Si tu veux t'amuser davantage en explorant Scratch, tu peux essayer l'un de [ces projets](https://projects.raspberrypi.org/fr-FR/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). - -*** - -Ce projet a été traduit par des bénévoles: - -Jonathan Vannieuwkerke -Michel Arnols - -Grâce aux bénévoles, nous pouvons donner aux gens du monde entier la chance d'apprendre dans leur propre langue. Vous pouvez nous aider à atteindre plus de personnes en vous portant volontaire pour la traduction - plus d'informations sur [rpf.io/translate](https://rpf.io/translate). +Si tu veux t'amuser davantage en explorant Scratch, tu peux essayer l'un de [ces projets](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). diff --git a/hi-IN/images/add-friend-projects.png b/hi-IN/images/add-friend-projects.png new file mode 100644 index 000000000..3ad5bafed Binary files /dev/null and b/hi-IN/images/add-friend-projects.png differ diff --git a/hi-IN/images/add-sound.png b/hi-IN/images/add-sound.png new file mode 100644 index 000000000..123e3628f Binary files /dev/null and b/hi-IN/images/add-sound.png differ diff --git a/hi-IN/images/add-your-projects.png b/hi-IN/images/add-your-projects.png new file mode 100644 index 000000000..016bd757d Binary files /dev/null and b/hi-IN/images/add-your-projects.png differ diff --git a/hi-IN/images/banner.png b/hi-IN/images/banner.png new file mode 100644 index 000000000..f9ac6e053 Binary files /dev/null and b/hi-IN/images/banner.png differ diff --git a/hi-IN/images/choose-backdrop-icon.png b/hi-IN/images/choose-backdrop-icon.png new file mode 100644 index 000000000..6d7d7e298 Binary files /dev/null and b/hi-IN/images/choose-backdrop-icon.png differ diff --git a/hi-IN/images/choose-sprite-icon.png b/hi-IN/images/choose-sprite-icon.png new file mode 100644 index 000000000..7b04d235d Binary files /dev/null and b/hi-IN/images/choose-sprite-icon.png differ diff --git a/hi-IN/images/create-studio.png b/hi-IN/images/create-studio.png new file mode 100644 index 000000000..0ce2440f2 Binary files /dev/null and b/hi-IN/images/create-studio.png differ diff --git a/hi-IN/images/customer-count.png b/hi-IN/images/customer-count.png new file mode 100644 index 000000000..e2c6ce61a Binary files /dev/null and b/hi-IN/images/customer-count.png differ diff --git a/hi-IN/images/dont-fall-in-project.png b/hi-IN/images/dont-fall-in-project.png new file mode 100644 index 000000000..003a7787c Binary files /dev/null and b/hi-IN/images/dont-fall-in-project.png differ diff --git a/hi-IN/images/example-strip.png b/hi-IN/images/example-strip.png new file mode 100644 index 000000000..cecace153 Binary files /dev/null and b/hi-IN/images/example-strip.png differ diff --git a/hi-IN/images/fruit.png b/hi-IN/images/fruit.png new file mode 100644 index 000000000..74b78e59a Binary files /dev/null and b/hi-IN/images/fruit.png differ diff --git a/hi-IN/images/icecream.png b/hi-IN/images/icecream.png new file mode 100644 index 000000000..c72e20f83 Binary files /dev/null and b/hi-IN/images/icecream.png differ diff --git a/hi-IN/images/item-amounts.png b/hi-IN/images/item-amounts.png new file mode 100644 index 000000000..9e6430405 Binary files /dev/null and b/hi-IN/images/item-amounts.png differ diff --git a/hi-IN/images/large-readout.png b/hi-IN/images/large-readout.png new file mode 100644 index 000000000..a3859b991 Binary files /dev/null and b/hi-IN/images/large-readout.png differ diff --git a/hi-IN/images/my-stuff-menu.png b/hi-IN/images/my-stuff-menu.png new file mode 100644 index 000000000..ad6992761 Binary files /dev/null and b/hi-IN/images/my-stuff-menu.png differ diff --git a/hi-IN/images/naming-studio.png b/hi-IN/images/naming-studio.png new file mode 100644 index 000000000..dc25e716e Binary files /dev/null and b/hi-IN/images/naming-studio.png differ diff --git a/hi-IN/images/new-variable.png b/hi-IN/images/new-variable.png new file mode 100644 index 000000000..d937fdd8a Binary files /dev/null and b/hi-IN/images/new-variable.png differ diff --git a/hi-IN/images/quiz2.png b/hi-IN/images/quiz2.png new file mode 100644 index 000000000..b5fe0cfb0 Binary files /dev/null and b/hi-IN/images/quiz2.png differ diff --git a/hi-IN/images/sprite-pane-size.png b/hi-IN/images/sprite-pane-size.png new file mode 100644 index 000000000..568608788 Binary files /dev/null and b/hi-IN/images/sprite-pane-size.png differ diff --git a/hi-IN/images/step2-image.png b/hi-IN/images/step2-image.png new file mode 100644 index 000000000..f52394751 Binary files /dev/null and b/hi-IN/images/step2-image.png differ diff --git a/hi-IN/images/step3-image.png b/hi-IN/images/step3-image.png new file mode 100644 index 000000000..441189fec Binary files /dev/null and b/hi-IN/images/step3-image.png differ diff --git a/hi-IN/images/step4-image.png b/hi-IN/images/step4-image.png new file mode 100644 index 000000000..c92bc3b0b Binary files /dev/null and b/hi-IN/images/step4-image.png differ diff --git a/hi-IN/images/studio-example.png b/hi-IN/images/studio-example.png new file mode 100644 index 000000000..f91ad3daa Binary files /dev/null and b/hi-IN/images/studio-example.png differ diff --git a/hi-IN/images/tshirt.png b/hi-IN/images/tshirt.png new file mode 100644 index 000000000..9e5481d85 Binary files /dev/null and b/hi-IN/images/tshirt.png differ diff --git a/hi-IN/images/upgrade-image.png b/hi-IN/images/upgrade-image.png new file mode 100644 index 000000000..57b6f29d1 Binary files /dev/null and b/hi-IN/images/upgrade-image.png differ diff --git a/hi-IN/images/vending.png b/hi-IN/images/vending.png new file mode 100644 index 000000000..deb1d50d3 Binary files /dev/null and b/hi-IN/images/vending.png differ diff --git a/hi-IN/meta.yml b/hi-IN/meta.yml new file mode 100644 index 000000000..483443573 --- /dev/null +++ b/hi-IN/meta.yml @@ -0,0 +1,37 @@ +--- +title: कृपया अगला ग्राहक आगे आए +hero_image: images/banner.png +description: एक शॉप सिमुलेशन प्रोजेक्ट जहाँ ग्राहक वस्तुओं को खरीद सकता है। +meta_title: Scratch coding projects for kids and teens | Next customer please +meta_description: Learn Scratch with the Raspberry Pi Foundation's coding projects for kids and teens. Make a Scratch app where the customer can buy items from your shop. +version: 4 +listed: true +copyedit: false +last_tested: "2021-03-26" +steps: + - + title: परिचय + - + title: Your shop + - + title: सेल के लिए आइटम्स + completion: + - engaged + - + title: खरीदारी करें + completion: + - internal + - + title: प्रश्नोत्तरी + knowledge_quiz: + path: quiz1 + version: 1 + questions: 3 + passing_score: 3 + completion: + - external + - + title: चुनौती + challenge: true + - + title: साझा करना diff --git a/hi-IN/quiz1/question_1.md b/hi-IN/quiz1/question_1.md new file mode 100644 index 000000000..e1aa953a8 --- /dev/null +++ b/hi-IN/quiz1/question_1.md @@ -0,0 +1,72 @@ +## शीघ्र क्विज़ + +तीनों सवालों के जवाब दें। सही उत्तर के लिए आपका मार्गदर्शन करने के लिए संकेत हैं। + +When you have answered each question, click on **Check my answer**. + +आनंद लें! + +--- question --- + +--- +legend: Question 1 of 3 +--- + +एक शॉप प्रोजेक्ट प्रत्येक ग्राहक के लिए कुल को संग्रहीत करने के लिए `total`{:class="block3variables"} वेरिएबल का उपयोग करता है। + ++ एक ग्राहक उन आइटम्स को जोड़ता है जो कुल `50` और भुगतान करते हैं ++ एक नया ग्राहक उन आइटम्स को जोड़ता है जो कुल `40` हैं लेकिन `total`{:class="block3variables"} अब दूसरे ग्राहक के लिए `90` के रूप में दिखाई दे रहा है + +जब प्रत्येक ग्राहक भुगतान करता है तो आपको `0` पर वापस जाने के लिए भुगतान स्क्रिप्ट में कौन-से ब्लॉक को जोड़ने की आवश्यकता होगी? + +--- choices --- + +- ( ) +```blocks3 +[total v] by [0] बदलें +``` + + --- feedback --- + +बिल्कुल नहीं, एक ग्राहक के भुगतान के बाद `total`{:class="block3variables"} `0` होना चाहिए, लेकिन यह `change`{:class="block3variables"} ब्लॉक की आपको आवश्यकता नहीं है। + + --- /feedback --- + +- ( ) +```blocks3 +[total v] से [40] पर सेट करें +``` + + --- feedback --- + + बिल्कुल नहीं, यह दूसरे ग्राहक के लिए काम करेगा लेकिन `total`{:class="block3variables"} अन्य ग्राहकों के लिए गलत होगा। + + --- /feedback --- + +- (x) + +```blocks3 +[total v] से [0] पर सेट करें +``` + + --- feedback --- + +हाँ, यह सही है। आपको `set`{:class="block3variables"} `total`{:class="block3variables"} की आवश्यकता होगी `0` प्रत्येक ग्राहक के भुगतान के बाद। + + --- /feedback --- + +- ( ) + +```blocks3 +[-50] द्वारा [total v] बदलें +``` + + --- feedback --- + +यह इस उदाहरण के लिए काम करेगा, लेकिन क्या होगा यदि पहले ग्राहक ने एक अलग राशि खर्च की? पिछले ग्राहक द्वारा अलग-अलग मात्रा में खर्च करने पर आपके समाधान को काम करने की आवश्यकता है। + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/hi-IN/quiz1/question_2.md b/hi-IN/quiz1/question_2.md new file mode 100644 index 000000000..5b2387586 --- /dev/null +++ b/hi-IN/quiz1/question_2.md @@ -0,0 +1,63 @@ + +--- question --- + +--- +legend: Question 2 of 3 +--- + +एक दुकान में, **विक्रेता** के पास चेक आउट स्क्रिप्ट में यह कोड है: + +```blocks3 +पूछें [आज आप कैसे हैं?] और प्रतीक्षा +करें अगर <(result) = [good]> फिर +कहें [that's शानदार!] [2] सेकंड +के लिए, [ +sorry to sighter to hit.] for [2] seconds +end +``` + +जब कोड चलता है, तो उपयोगकर्ता जवाब को 'शानदार' टाइप करता है। **विक्रेता** स्प्राइट क्या कहेंगे? + +![में लिखे गए 'great' शब्द के साथ एक 'ask' बॉक्स।](images/quiz2.png) + +--- choices --- + +- (x) **विक्रेता** यह कहेगा कि `sorry to sear.` + + --- feedback --- + + हाँ! मनुष्य जानता है कि 'great' का अर्थ 'good' के समान है, लेकिन '=' यह जाँच करता है कि क्या अक्षर समान हैं। + + **शर्त** `response`{:class="block3sensing"} = `good` 'false' है इसलिए `say`{:class="block3looks"} ब्लॉक में `else`else{:class="block3looks"} भाग + + --- /feedback --- + +- () **विक्रेता** कहेंगे `that's शानदार!` + + --- feedback --- + +नहीं, केवल सटीक उत्तर `good` ही **विक्रेता** `That's शानदार!` बनाएगा। कोड को फिर से देखें कि **विक्रेता** उन सभी उत्तरों के लिए क्या संदेश कहेंगे जो `good` नहीं हैं। + +**टिप:** 'अच्छा' या 'अच्छा' 'अच्छा' से मेल खाना होगा। + + --- /feedback --- + +- () **विक्रेता** कुछ नहीं कहेंगे। + + --- feedback --- + +नहीं, **विक्रेता** हमेशा कुछ कहेंगे। संदेश क्या होगा यह देखने के लिए कोड पर ध्यान से देखें। + + --- /feedback --- + +- ( ) **विक्रेता** कहेंगे `great`। + + --- feedback --- + +नहीं, **ग्राहक** ने 'great' टाइप किया लेकिन **विक्रेता** जवाब नहीं कहता है। संदेश क्या होगा यह देखने के लिए कोड पर ध्यान से देखें। + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/hi-IN/quiz1/question_3.md b/hi-IN/quiz1/question_3.md new file mode 100644 index 000000000..9b7dd6aad --- /dev/null +++ b/hi-IN/quiz1/question_3.md @@ -0,0 +1,48 @@ + +--- question --- + +--- +legend: Question 3 of 3 +--- + +Your project is not working. What should you do? + +--- choices --- + +- ( ) घबराहट! + + --- feedback --- + + यह मदद करने वाला नहीं है। आपको कोडिंग समस्याओं को ठीक करने के लिए स्पष्ट रूप से सोचना होगा। + + --- /feedback --- + +- ( ) हार जाना + + --- feedback --- + + There are lots of things you could try. शानदार कोडर अक्सर पहली बार चीजों को गलत पाते हैं और अपनी गलतियों से बहुत कुछ सीखते हैं। + + --- /feedback --- + +- (X) कोड को ध्यान से पढ़ें और इसे खराब करने का प्रयास करें। + + --- feedback --- + + हाँ! बग ठीक करना कोडिंग का हिस्सा है। आप जितना अधिक अनुभव प्राप्त करते हैं उसका अभ्यास करते हैं, और यह बग खोजने और ठीक करने में आसान हो जाता है। + + --- /feedback --- + +- () कंप्यूटर से नाराज हो जाएं + + --- feedback --- + +एक कंप्यूटर केवल वही करता है जो हम इसे करने के लिए कहते हैं, इसलिए इससे नाराज होना तार्किक नहीं है। + +नाराज होने से समस्या को हल करने में मदद नहीं मिलेगी, क्योंकि इससे स्पष्ट रूप से सोचना कठिन हो जाएगा। + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/hi-IN/scratch-comments.txt b/hi-IN/scratch-comments.txt new file mode 100644 index 000000000..4e292a0a2 --- /dev/null +++ b/hi-IN/scratch-comments.txt @@ -0,0 +1,9 @@ +अपने व्यवसाय का नाम लिखें + +आपका व्यवसाय नाम + +अपने कंटेनर स्प्राइट के नाम का उपयोग करें + +प्रारंभ स्थिति + +पिछला ग्राहक बैग ले जाता है diff --git a/hi-IN/scratch-translatable.txt b/hi-IN/scratch-translatable.txt new file mode 100644 index 000000000..5b0ca89c2 --- /dev/null +++ b/hi-IN/scratch-translatable.txt @@ -0,0 +1,49 @@ +नाम + +मेरी दुकान + +अगला ग्राहक + +कृपया अगला ग्राहक आगे आए! + +कुल + +यह होगा + +पर खरीदारी करने के लिए धन्यवाद + +क्या आप भुगतान करना या रद्द करना चाहेंगे? + +भुगतान करें + +रद्द करें + +ठीक है। कोई दिक्कत नहीं है + +अपनी पसंद के आइटम्स पर क्लिक करें + +क्या आपको वह सब कुछ मिला जो आप आज चाहते थे? + +yes + +यह शानदार है! + +हो सकता है कि मुझे अपनी दुकान में और आइटम्स जोड़ने चाहिए + +bag + +1 स्कूप + +cone + +खरीदें + +सही + +False + +आज आप कैसे हैं? + +अच्छा + +यह सुनकर दुख हुआ. diff --git a/hi-IN/solutions/Cool Shirts.sb3 b/hi-IN/solutions/Cool Shirts.sb3 new file mode 100644 index 000000000..fdc5852be Binary files /dev/null and b/hi-IN/solutions/Cool Shirts.sb3 differ diff --git a/hi-IN/solutions/Fresh Space Fruit.sb3 b/hi-IN/solutions/Fresh Space Fruit.sb3 new file mode 100644 index 000000000..bbbe9eaac Binary files /dev/null and b/hi-IN/solutions/Fresh Space Fruit.sb3 differ diff --git a/hi-IN/solutions/Vending machine.sb3 b/hi-IN/solutions/Vending machine.sb3 new file mode 100644 index 000000000..42dec16a7 Binary files /dev/null and b/hi-IN/solutions/Vending machine.sb3 differ diff --git a/hi-IN/solutions/ice cream shop.sb3 b/hi-IN/solutions/ice cream shop.sb3 new file mode 100644 index 000000000..d6322242c Binary files /dev/null and b/hi-IN/solutions/ice cream shop.sb3 differ diff --git a/hi-IN/step_1.md b/hi-IN/step_1.md new file mode 100644 index 000000000..c8fe2b6bf --- /dev/null +++ b/hi-IN/step_1.md @@ -0,0 +1,52 @@ +## परिचय + +एक शॉप एप बनाएँ जहाँ ग्राहक आपकी दुकान से सामान खरीद सकता है। प्रोजेक्ट पहले व्यक्ति के दृश्य में होगा जहाँ खिलाड़ी एक ग्राहक है। + +--- no-print --- + +Click on Space Fruit to buy them and watch the total go up. जब आप तैयार हों, तो चेक आउट करने के लिए किरण पर क्लिक करें। + ++ What happens if you try to checkout before you have chosen any fruit? ++ How do you think the project knows that you haven't added any fruit yet? + +
+mixफ्रेश स्पेस फ्रूट**: [inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} देखें +
+ +
+
+ +### विचार प्राप्त करें 💭 + +Click on the **seller** sprites to buy items: + +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +
+ +
+ +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +
+ +
+ +**⭐ Pride pins** (featured community project) + +Click on the pride pin badges to add them to your shopping bag: + +
+ +
+ +--- /no-print --- + +--- print-only --- + +### विचार प्राप्त करें 💭 + +आप अपना पात्र बनाने के लिए कुछ डिज़ाइन निर्णय लेने जा रहे हैं। See inside example projects in the Scratch 2: Next customer please! Scratch studio at https://scratch.mit.edu/studios/29611454 + +![उदाहरण प्रोजेक्ट](images/fruit.png) ![उदाहरण प्रोजेक्ट](images/tshirt.png) ![उदाहरण प्रोजेक्ट](images/icecream.png) ![उदाहरण प्रोजेक्ट](images/vending.png) + +--- /print-only --- + diff --git a/hi-IN/step_2.md b/hi-IN/step_2.md new file mode 100644 index 000000000..11766afc6 --- /dev/null +++ b/hi-IN/step_2.md @@ -0,0 +1,80 @@ +## Your shop + +
+
+What is your shop idea? यह कुछ यथार्थवादी हो सकता है, आपकी पसंद की किताब या फिल्म से कुछ, या पूरी तरह से मूर्खतापूर्ण हो सकता है। +
+
+![](images/ste2-image.png){:width="300px"} +
+
+ +--- task --- + +[new scratch project](http://rpf.io/scratch-new){:target="_blank"} खोलें और स्प्राइट और बैकड्रॉप की श्रेणी देखें जिसका आप उपयोग कर सकते हैं। Spend some time thinking about your shop idea. + +--- /task --- + +--- task --- + +**Choose a Backdrop** or paint your own backdrop. + +![](images/choose-backdrop-icon.png) + ++ A backdrop from the Scratch library, or a plain coloured backdrop + +--- /task --- + +--- task --- + +**Choose a Sprite** and add or paint extra scenery sprites. + +![](images/choose-sprite-icon.png) + +--- /task --- + +--- task --- + +Add more scenery. ++ A desk, counter, or window to sell from ++ आइटम्स रखने के लिए एक शेल्फ या किताबों का केस - आप इसे पृष्ठभूमि पर पेंट कर सकते हैं + +--- /task --- + +--- task --- + +विक्रेता का प्रतिनिधित्व करने के लिए एक स्प्राइट जोड़ें। + +You could choose: ++ एक व्यक्ति या गैर-खिलाड़ी पात्र जैसे कि एक दुकानदार, किसान, या लाइब्रेरियन ++ एक मशीन जैसे वेंडिंग मशीन, jekBox, या नकद रजिस्टर + +![](images/choose-sprite-icon.png) + +--- /task --- + +### Welcome your first customer. + +--- task --- + +Click on your **seller** sprite and add a `broadcast`{:class="block3events"} block. Create a new message called `next customer`. + +```blocks3 +when flag clicked ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +Create a new script for your **seller** sprite to `say`{:class="block3looks"} `Next customer please` when they receive the `broadcast`{:class="block3events"} `next customer`{:class="block3events"}. + +```blocks3 +जब मुझे [अगला ग्राहक v] मिलता है +[अगले ग्राहक को कृपया!] के लिए (2) सेकंड +``` + +--- /task --- + +--- save --- diff --git a/hi-IN/step_3.md b/hi-IN/step_3.md new file mode 100644 index 000000000..bec4756af --- /dev/null +++ b/hi-IN/step_3.md @@ -0,0 +1,128 @@ +## सेल के लिए आइटम्स + +
+
+आपकी दुकान को बिक्री के लिए वस्तुओं की आवश्यकता है। प्रत्येक आइटम का मूल्य होगा जो एक 'कुल'{:class="block3variables"} वेरिएबल में जोड़ा जाएगा। +
+
+![](images/step3-image.png){:width="300px"} +
+
+ +आपको यह ट्रैक रखना होगा कि आपका ग्राहक कितना खर्च कर रहा है। + +--- task --- + +Add a new variable called `total`{:class="block3variables"} for all sprites. + +अपने **सेलर** स्प्राइट पर क्लिक करें और `set`{:class="block3variables"} में एक स्क्रिप्ट जोड़ें `total`{:class="block3variables"} से `0` जब प्रोजेक्ट शुरू होता है। + +[[[scratch3-create-set-variable]]] + +--- /task --- + +What **items** will your customer(s) be buying? ++ कुछ तरह का खाना या पीना ++ खेल उपकरण, खिलौने, या गैजेट्स ++ मैजिक वैंड्स, लोशन, या स्पैल बुक्स ++ वस्त्र या अन्य फैशन आइटम्स ++ Your own idea + +--- task --- + +पहले **आइटम** के लिए स्प्राइट जोड़ें जिसे आप अपनी दुकान में बेचने जा रहे हैं। + +यदि आप चाहें, तो आप पेंट संपादक में टेक्स्ट टूल का उपयोग करके पोशाक में मूल्य जोड़ सकते हैं। या पृष्ठभूमि में एक मूल्य जोड़ें और उसके आगे के आइटम को स्थित करें। + +![उनके आगे लिखी गई मात्रा के साथ आइटम्स के उदाहरण।](images/item-amounts.png) + +--- /task --- + +--- task --- + +जब ग्राहक स्प्राइट पर क्लिक करता है, तो `change`{:class="block3variables"} को `total`{:class="block3variables"} में एक स्क्रिप्ट जोड़ें। + +--- collapse --- +--- +title: Click to add an item +--- + +```blocks3 +जब इस स्प्राइट ने +शुरू ध्वनि पर क्लिक किया (Coin v) +[total v] by [10] +``` + +--- /collapse --- + +यह `play a sound`{:class="block3sound"} का भी एक अच्छा विचार है जो उन्होंने एक आइटम जोड़ा है। + +![एक ध्वनि चिह्न जोड़ें](images/add-sound.png) + +[[[scratch3-add-sound]]] + +--- /task --- + +--- task --- + +**Test:** Click on your item and check that the value of the `total`{:class="block3variables"} variable increases by the price of the item, and you hear the sound effect. कुल वृद्धि देखने के लिए अधिक बार क्लिक करें। + +अपना प्रोजेक्ट शुरू करने के लिए हरे झंडे पर क्लिक करें और सुनिश्चित करें कि `total`{:class="block3variables"} `0` से शुरू होता है। + +--- /task --- + +--- task --- + +अपनी दुकान में और मदें जोड़ें। + +आप या तो: ++ पहले आइटम को डुप्लिकेट करें और फिर पेंट एडिटर में एक नया कॉस्ट्यूम जोड़ें ++ एक स्प्राइट जोड़ें और फिर `when flag clicked`{:class="block3events"} स्क्रिप्ट को पहले आइटम से अपने नए आइटम में खींचें + +यदि आप इनका उपयोग कर रहे हैं, तो पोशाक या पृष्ठभूमि में एक मूल्य लेबल जोड़ें। + +--- /task --- + +--- task --- + +Click on your new **Item** sprite in the Sprite list then click on the **Code** tab. + +`total`{:class="block3variables"} बदलने की मात्रा को अपने नए आइटम के मूल्य में बदलें। + +--- /task --- + +--- task --- + +**Test:** Click the green flag to start your project and click on items to add them. जाँच करें कि जब भी आप किसी आइटम पर क्लिक करते हैं, तो कुल राशि सही मात्रा से बढ़ जाती है। + +यदि आपने मूल्य लेबल जोड़े हैं, तो सुनिश्चित करें कि वे `total`{:class="block3variables"} में जोड़ी जाने वाली राशि से मेल खाते हैं, या आपके ग्राहक भ्रमित होंगे! + +--- /task --- + +--- task --- + +**डीबग करें:** आपको अपने प्रोजेक्ट में कुछ बग मिल सकते हैं जिन्हें आपको ठीक करने की आवश्यकता है। यहाँ कुछ सामान्य बग हैं। + +--- collapse --- +--- +title: The total doesn't go to 0 when I click the green flag +--- + +जांचें कि आपने **विक्रेता** स्प्राइट पर `when flag clicked`{:class="block3events"} स्क्रिप्ट में `when flag clicked`{:class="block3events"} वेरिएबल का प्रारंभ मान सेट किया है। + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't increase by the correct amount when I click on an item +--- + +जांचें कि प्रत्येक आइटम में एक `when this sprite clicked`{:class="block3events"} स्क्रिप्ट है जो `total`{:class="block3variables"} को उस आइटम के लिए सही मात्रा में बदल देती है — हो सकता है कि आपने गलत स्प्राइट के लिए कीमत बदल दी हो। + +जांचें कि आपने `change`{:class="block3variables"} ब्लॉक का उपयोग किया है और `set`{:class="block3variables"} ब्लॉक को `total`{:class="block3variables"} बदलने के लिए नहीं किया है। आपको कुल मूल्य जोड़ने के लिए `change`{:class="block3variables"} का उपयोग करने की आवश्यकता है, आप अभी जोड़े गए आइटम के मूल्य के लिए कुल योग को सेट नहीं करना चाहते हैं। + +--- /collapse --- + +--- /task --- + +--- save --- diff --git a/hi-IN/step_4.md b/hi-IN/step_4.md new file mode 100644 index 000000000..d416cd9b0 --- /dev/null +++ b/hi-IN/step_4.md @@ -0,0 +1,141 @@ +## खरीदारी करें + +
+
+ +/ movereer +
+![](images/stp4-image.png){:width="300px"} +
+
+ +जब वे वस्तुओं को चुनना समाप्त कर लेते हैं, तो ग्राहक भुगतान करने के लिए **विक्रेता** स्प्राइट पर क्लिक करेगा। + +--- task --- + + ग्राहक को बताएं कि उनके आइटम्स की कीमत कितनी होगी। + +```blocks3 +जब इस स्प्राइट ने +(2) सेकंड के लिए "say (jay [that be ] (total))" पर क्लिक किया +``` + +--- /task --- + +--- task --- + +अपने **विक्रेता** स्प्राइट में एक भुगतान ध्वनि जोड़ें ताकि ग्राहक जानता है कि भुगतान हो रहा है। + +![एक ध्वनि चिह्न जोड़ें](images/add-sound.png) + +[[[scratch3-add-sound]]] + +पूर्ण होने तक `Play ध्वनि जोड़ें`{:class="block3sound"} ब्लॉक को अपनी स्क्रिप्ट में जोड़ें। + +```blocks3 +जब इस स्प्राइट ने +क्लिक किया (jet [will be ] (total)) for (2) seconds ++ play sound [machine v] until taken +``` + +--- /task --- + +--- task --- + +सेल समाप्त करें। `total`{:class="block3variables"} को वापस `0` भुगतान के बाद, `say`{:class="block3looks"} को अलविदा और `broadcast`{:class="block3control"} `now`{:class="block3control + +```blocks3 +जब इस स्प्राइट ने +कहा (jet [will be ] (total) for (2) seconds +play sound [machine v] जब तक + +set [total v] to (0) ++ say (joint [taid for ship at ] (name))) for (2) seconds ++ broadcast (next कस्टमर v) +``` + +--- /task --- + +--- task --- + +**Test:** Test your project and make sure: +- ग्राहक सही ध्वनि प्रभावों के साथ चेक आउट कर सकता है +- `total`{:class="block3variables"} एक ग्राहक के भुगतान या रद्द करने के बाद `0` पर वापस सेट हो जाता है। + +--- /task --- + + +--- task --- + +**डीबग:** आपको अपने प्रोजेक्ट में कुछ बग मिल सकते हैं जिन्हें आपको ठीक करने की आवश्यकता है। + +यहाँ कुछ सामान्य बग हैं: + +--- collapse --- +--- +title: The seller doesn't do anything when I click on them +--- + +आपके प्रोजेक्ट में बहुत सारे स्प्राइट्स हैं। सुनिश्चित करें कि `when this sprite clicked`{:class="block3events"} स्क्रिप्ट आपके **विक्रेता** स्प्राइट पर है। + +**Tip:** If you have added it to the wrong sprite, you can drag the code to the **seller** sprite, then delete it from the other sprite. + +--- /collapse --- + +--- collapse --- +--- +title: The words in the say blocks merge together +--- + +जब आप `join`{:class="block3operators"} दो टुकड़ों को एक साथ जोड़ते हैं, तो आपको अपने पहले पाठ के टुकड़े के अंत में या अपने दूसरे पाठ के टुकड़े की शुरुआत में एक जगह जोड़ने की आवश्यकता होती है। + +इनमें शामिल होने के पहले भाग के अंत में एक जगह होती है: + +```blocks3 +(2) सेकंड + +के लिए {join [that be ](total)} कहें: (2) सेकंड के लिए {join [task for shipping at ](name)} +``` + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't reset after a sale +--- + +जांचें कि आपने इनका उपयोग किया है: + +```blocks3 +set [total v] to (0) +``` + +**not**: + +```blocks3 +change [total v] by (0) +``` + +--- /collapse --- + +--- collapse --- +--- +title: The seller isn't responding +--- + +सुनिश्चित करें कि `operator`{:class="block3operators"} में `if`{:class="block3control"} स्थिति प्रतीक `>`{:class="block3operators"} से अधिक है। + +```blocks3 +if <(total) > [0]> then +``` + +--- /collapse --- + +**Tip:** Compare your code with the code examples. क्या कोई अंतर है जो वहाँ नहीं होना चाहिए? + +--- /task --- + +--- save --- diff --git a/hi-IN/step_5.md b/hi-IN/step_5.md new file mode 100644 index 000000000..8d9bbba9e --- /dev/null +++ b/hi-IN/step_5.md @@ -0,0 +1 @@ +## शीघ्र क्विज़ \ No newline at end of file diff --git a/hi-IN/step_6.md b/hi-IN/step_6.md new file mode 100644 index 000000000..5e6fb3560 --- /dev/null +++ b/hi-IN/step_6.md @@ -0,0 +1,230 @@ +## प्रोजेक्ट को अपग्रेड करें + +
+
+आपके ग्राहकों के खरीदारी अनुभव को बेहतर बनाने के लिए आप कई सुविधाएँ जोड़ सकते हैं। आपको सब कुछ जोड़ने की आवश्यकता नहीं है। बस वे सुधार जोड़ें जो आपको लगता है कि महत्वपूर्ण हैं। +
+
+![](images/customer-count.png){:width="300px"} +
+
+ +--- task --- + +Add more items to sell. + +--- /task --- + +--- task --- + +Add more graphic and sound effects. + +--- /task --- + +--- task --- + +Paint your own scenery and other costumes. + +--- /task --- + +--- task --- + +Make another business and allow players to visit them both. + +--- /task --- + +[परिचय](में प्रत्येक उदाहरण प्रोजेक्ट।) में स्क्रैच में प्रोजेक्ट को खोलने के लिए आपके लिए एक >'s के अंदर" लिंक है, और विचारों को प्राप्त करने के लिए कोड देखें और देखें कि वे कैसे काम करते हैं। आप उदाहरण प्रोजेक्ट्स को उनके काम करने के तरीके को देखने के लिए 'अंदर देखें' कर सकते हैं। + +Example projects: **Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Vending machine**: [See inside](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} + +**Tip:** If you are logged in to a Scratch account, then you can use the **Backpack** to copy scripts or sprites to your project. + +[[[scratch-backpack]]] + +### Chatty checkout! + +Your checkout person (or machine) could ask whether the service was good, or if the customer is having a nice day. + +--- task --- + +Add `ask`{:class="block3sensing"} blocks to your **seller**'s `when this sprite clicked`{:class="block3events"} script and `say`{:class="block3looks"} different things depending on the customer's response. + +--- collapse --- + +--- +title: Ask and respond to questions +--- + +```blocks3 +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds +else +say [Maybe I should add more items to my shop] for [2] seconds +end +``` + +**Debug:** Check that you have spelled the options correctly in your code and in your answer. It's OK if you use capital letters, so "Yes" and "YES" will match "yes". + +Add multiple questions to create a chatbot or non-player character that you can talk to. + +--- /collapse --- + +--- /task --- + +### Bag the items + +--- task --- + +The Cool Shirts project has shirts that glide into a bag. + +--- collapse --- + +--- +title: Make items glide into a container +--- + +Add a **Container** sprite. You could use an existing sprite like the **Gift** or **Take out** sprite, or paint your own with simple shapes. + +Add a script to make the **Container** always appear at the front: + +```blocks3 +when flag clicked +forever +go to [front v] layer +end +``` + +Then you'll need to add code to each **Item** you have for sale to make them glide to the container when they are clicked: + +```blocks3 +when this sprite clicked ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite ++hide +change [total v] by [12] ++go to x: [-180] y: [68] // start position ++show +``` + +If you don't want the container there all the time, you can add scripts to make it show and hide at the right time: + +```blocks3 +when I receive [next customer v] +hide // previous customer takes the bag +wait [1] seconds +show +``` + +**Test:** Try your project and make sure items glide to the container and hide. + +**Debug:** Check your scripts carefully and make sure you have updated all of your **Item** sprites. You can look at [Cool Shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} if you need to see a working example. + +--- /collapse --- + +--- /task --- + +###  Stop adding items when the customer is at the checkout + +--- task --- + +Add a `shop`{:class="block3variables"} variable and use it to control when items can be added. + +--- collapse --- + +--- +title: Stop purchases when the customer is at the checkout +--- + +Add a `variable`{:class="block3variables"} called `shop` for all sprites. You will set this to `true` when the customer is in the shop and `false` when they are at the checkout. + +Select your **seller** sprite. Update the `when flag clicked`{:class="block3events"} script to allow shopping when your project starts: + +```blocks3 ++set [shop v] to [true] +``` + +Now add a block to change the `shop`{:class="block3variables"} to `false` at the beginning of your **seller**'s `when this sprite clicked`{:class="block3events"} script: + +```blocks3 ++set [shop v] to [false] +``` + +And a block to set the `shop`{:class="block3variables"} variable back to `true` at the end of the same script: + +```blocks3 ++set [shop v] to [true] +``` + +Now you need to update the items you sell to check the `shop`{:class="block3variables"} variable: + +```blocks3 +when this sprite clicked ++if <(shop) = [true]> then +start sound (Coin v) +change [total v] by [10] +end +``` +You will need to do this for every item you sell in your shop. + +**Test:** Click the green flag then try shopping. Check that you can still add items and checkout, but you can't add items once you have started checking out. + +**Debug:** Check your code really carefully. You can look at the [Space Fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project if you need to see a working example. + +--- /collapse --- + +--- /task --- + +--- task --- + +### Give the customer the option to cancel their shopping. + +--- collapse --- + +--- +title: Set up pay and cancel options +--- + +`Ask`{:class="block3sensing"} `Would you like to pay or cancel?`. Add an `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `pay` and inside it put your existing payment blocks. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end +``` + +Add a second `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `cancel` and inside it add code to cancel the order. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] +end +``` + +--- /collapse --- + +--- /task --- + +Take a look at our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio to see projects created by community members. + +--- save --- diff --git a/hi-IN/step_7.md b/hi-IN/step_7.md new file mode 100644 index 000000000..f3618db29 --- /dev/null +++ b/hi-IN/step_7.md @@ -0,0 +1,9 @@ +## शेयर करना + +यदि आप एक क्लब में हैं, तो अपने प्रोजेक्ट को दोस्तों के साथ क्यों नहीं साझा करें? + +अपने प्रोजेक्ट से Raspberry Pi Foundation समुदाय को प्रेरित करें! + +To submit your project to our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio, please complete [this form](https://form.raspberrypi.org/f/community-project-submissions){:target="_blank"}. + +![उदाहरण 'अंतरजाल शॉपिंग मार्केट' स्क्रैच स्टूडियो में प्रोजेक्ट शॉप करते हैं।](images/studio-example.png) diff --git a/hi-IN/step_8.md b/hi-IN/step_8.md new file mode 100644 index 000000000..1d7c459d4 --- /dev/null +++ b/hi-IN/step_8.md @@ -0,0 +1,21 @@ +## What can you do now? + +If you are following the [More Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch) path, you can move on to the [Don't fall in](https://projects.raspberrypi.org/en/projects/dont-fall-in) project. इस प्रोजेक्ट में, आप एक टॉप-डाउन गेम बनाएंगे जहाँ आपको प्लेटफ़ॉर्म से प्लेटफ़ॉर्म पर जाना होगा और अंदर नहीं आना होगा। + +--- print-only --- + +![प्रोजेक्ट में मत पड़ो](images/dont-fall-in-project.png) + +--- /print-only --- + +--- no-print --- + +
+ +
+ +**Instructions:** Press space or tap the Stage to jump. + +--- /no-print --- + +If you want to have more fun exploring Scratch, then you could try out any of [these projects](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). diff --git a/it-IT/meta.yml b/it-IT/meta.yml index dfd3579ba..744b75f79 100644 --- a/it-IT/meta.yml +++ b/it-IT/meta.yml @@ -9,15 +9,20 @@ listed: true copyedit: false last_tested: "2021-03-26" steps: - - title: Cosa creerai - - title: Il tuo negozio - - title: Articoli in vendita + - + title: Cosa creerai + - + title: Il tuo negozio + - + title: Articoli in vendita completion: - engaged - - title: Acquisti + - + title: Acquisti completion: - internal - - title: Quiz veloce + - + title: Quiz veloce knowledge_quiz: path: quiz1 version: 1 @@ -25,6 +30,8 @@ steps: passing_score: 3 completion: - external - - title: Sfida + - + title: Sfida challenge: true - - title: Condividi \ No newline at end of file + - + title: Condividi diff --git a/it-IT/quiz1/question_1.md b/it-IT/quiz1/question_1.md index edcfd7e90..4d52acc1f 100644 --- a/it-IT/quiz1/question_1.md +++ b/it-IT/quiz1/question_1.md @@ -9,13 +9,13 @@ Divertiti! --- question --- --- -legend: Domanda 1 di 3 +legend: Question 1 of 3 --- Un progetto di negozio utilizza una variabile `total`{:class="block3variables"} per memorizzare il totale per ciascun cliente. + Un cliente aggiunge articoli per un totale di `50` e paga -+ Un nuovo cliente aggiunge articoli per un totale di `40` ma il `totale`{:class="block3variables"} di viene ora visualizzato come `90` per il secondo cliente ++ Un nuovo cliente aggiunge articoli per un totale di `40` ma il totale di <0>{:class="block3variables"} viene ora visualizzato come <0>90 per il secondo cliente Quale blocco dovresti aggiungere allo script di pagamento per far sì che il totale torni a `0` quando ogni cliente paga? @@ -23,18 +23,18 @@ Quale blocco dovresti aggiungere allo script di pagamento per far sì che il tot - ( ) ```blocks3 -change [totale v] by [0] +change [total v] by [0] ``` --- feedback --- -Non esattamente, `totale`{:class="block3variables"} dovrebbe essere `0` dopo che un cliente paga, ma non è il blocco di `modifica`{:class="block3variables"} di cui hai bisogno. +Non esattamente, `totale`{:class="block3variables"} dovrebbe essere `0` dopo che un cliente paga, ma non è il blocco di modifica ``{:class="block3variables"} di cui hai bisogno. --- /feedback --- - ( ) ```blocks3 -set [totale v] to [40] +set [total v] to [40] ``` --- feedback --- @@ -46,19 +46,19 @@ set [totale v] to [40] - (x) ```blocks3 -set [totale v] to [0] +set [total v] to [0] ``` --- feedback --- -Sì, è corretto. Devi `impostare`{:class="block3variables"} sul `totale`{:class="block3variables"} a `0` dopo che ogni cliente ha pagato. +Sì, è corretto. Devi impostare ``{:class="block3variables"} sul totale ``{:class="block3variables"} a `0` dopo che ogni cliente ha pagato. --- /feedback --- - ( ) ```blocks3 -change [totale v] by [-50] +change [total v] by [-50] ``` --- feedback --- diff --git a/it-IT/quiz1/question_2.md b/it-IT/quiz1/question_2.md index dbc35b91e..b9f1e6bf5 100644 --- a/it-IT/quiz1/question_2.md +++ b/it-IT/quiz1/question_2.md @@ -2,17 +2,17 @@ --- question --- --- -legend: Domanda 2 di 3 +legend: Question 2 of 3 --- -In un negozio, il **venditore** ha questo codice nello script di pagamento: +In un negozio, il venditore <0> ha questo codice nello script di pagamento: ```blocks3 -ask [Come stai oggi?] and wait -if <(answer) = [bene]> then -say [È fantastico!] for [2] seconds +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds else -say [Mi dispiace.] for [2] seconds +say [Sorry to hear that.] for [2] seconds end ``` @@ -22,35 +22,35 @@ Quando il codice viene eseguito, l'utente digita la risposta "ottimo". Cosa dir --- choices --- -- (x) Il **Venditore** dirà `Mi dispiace sentirlo.` +- (x) Il <0>Venditore dirà <1>Mi dispiace sentirlo. --- feedback --- Sì. Gli esseri umani sanno che "grande" ha lo stesso significato di "bene", ma il simbolo "=" controlla se le lettere sono uguali. - La condizione `risposta`{:class="block3sensing"} = `buona` è 'falsa' quindi il blocco `dire`{:class="block3looks"} nella parte `altrimenti`{:class="block3control"} verrà eseguito. + La condizione **** `risposta`{:class="block3sensing"} = `buona` è 'falsa' quindi il blocco `dire`{:class="block3looks"} nella parte `altrimenti`{:class="block3control"} verrà eseguito. --- /feedback --- -- ( ) Il **venditore** dirà `È fantastico!` +- ( ) Il venditore **** dirà `È fantastico!` --- feedback --- -No, solo la risposta esatta `bene` farà sì che il **venditore** dica `Fantastico!`. Osserva nuovamente il codice per vedere quale messaggio dirà il **venditore** per tutte le risposte che non sono `buone`. +No, solo la risposta esatta `bene` farà sì che il venditore **** dica `Fantastico!`. Osserva nuovamente il codice per vedere quale messaggio dirà il venditore **** per tutte le risposte che non sono `buone`. **Suggerimento:** 'Bene' o 'BENE' corrisponderebbero a 'bene'. --- /feedback --- -- ( ) Il **venditore** non dirà nulla. +- ( ) Il venditore **** non dirà nulla. --- feedback --- -No, il **venditore** dirà sempre qualcosa. Osserva attentamente il codice per vedere quale sarà il messaggio. +No, il venditore **** dirà sempre qualcosa. Osserva attentamente il codice per vedere quale sarà il messaggio. --- /feedback --- -- ( ) Il **venditore** dirà `ottimo`. +- ( ) Il venditore **** dirà `ottimo`. --- feedback --- diff --git a/it-IT/quiz1/question_3.md b/it-IT/quiz1/question_3.md index 08dd7fa66..2624c105e 100644 --- a/it-IT/quiz1/question_3.md +++ b/it-IT/quiz1/question_3.md @@ -2,7 +2,7 @@ --- question --- --- -legend: Domanda 3 di 3 +legend: Question 3 of 3 --- Il tuo progetto non funziona. Cosa dovresti fare? diff --git a/it-IT/step_1.md b/it-IT/step_1.md index bfc3bc2fa..7da2d0ea0 100644 --- a/it-IT/step_1.md +++ b/it-IT/step_1.md @@ -4,15 +4,15 @@ Crea un'app del tuo negozio, tramite il quale i clienti possono acquistare artic --- no-print --- -Fai clic sulla frutta spaziale per acquistarla e guarda il totale aumentare. Quando sei pronto, clicca su Kiran per procedere al pagamento. +Gioca ▶️ Fai clic sulla frutta spaziale per acquistarla e guarda il totale aumentare. Quando sei pronto, clicca su Kiran per procedere al pagamento. + Cosa succede se provi a pagare prima di aver scelto un frutto? + Come pensi che il progetto sappia che non hai ancora aggiunto frutta?
-**Frutta fresca dello spazio**: [Vedi all'interno](https://scratch.mit.edu/projects/1111488970/editor){:target="_blank"} +**Frutta fresca dello spazio**: [Vedi all'interno](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"}
- +
@@ -20,14 +20,14 @@ Fai clic sulla frutta spaziale per acquistarla e guarda il totale aumentare. Qua Clicca sugli sprite del **venditore** per acquistare oggetti: -**Magliette fantastiche**: [Guarda dentro](https://scratch.mit.edu/projects/1111480198/editor){:target="_blank"} +**Magliette fantastiche**: [Guarda dentro](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"}
- +
-**Gelateria**: [Guarda dentro](https://scratch.mit.edu/projects/1111490570/editor){:target="_blank"} +**Gelateria**: [Guarda dentro](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"}
- +
**⭐ Spille Pride** (progetto della comunità in evidenza) @@ -44,12 +44,9 @@ Clicca sulle spille dell'orgoglio per aggiungerle al tuo carrello: ### Lasciati ispirare 💭 -Dovrai prendere alcune decisioni di progettazione per creare il tuo personaggio. Guarda gli esempi di progetti in Prossimo cliente, per favore! su Scratch al link https://scratch.mit.edu/studios/29611454 +Dovrai prendere alcune decisioni di progettazione per creare il tuo personaggio. Guarda gli esempi di progetti in Scratch 2: Prossimo cliente, per favore! Su Scratch al link https://scratch.mit.edu/studios/29611454 -![Progetti di esempio](images/fruit.png) -![Progetti di esempio](images/tshirt.png) -![Progetti di esempio](images/icecream.png) -![Progetti di esempio](images/vending.png) +![Progetti di esempio](images/fruit.png) ![Progetti di esempio](images/tshirt.png) ![Progetti di esempio](images/icecream.png) ![Progetti di esempio](images/vending.png) --- /print-only --- diff --git a/it-IT/step_2.md b/it-IT/step_2.md index e005cf378..cc9a9d02f 100644 --- a/it-IT/step_2.md +++ b/it-IT/step_2.md @@ -61,7 +61,7 @@ Fai clic sul tuo sprite **venditore** e aggiungi un blocco di `trasmissione`{:cl ```blocks3 when flag clicked -+ broadcast (prossimo cliente v) ++ broadcast (next customer v) ``` --- /task --- @@ -71,8 +71,8 @@ when flag clicked Crea un nuovo script per il tuo sprite **venditore** per `dire`{:class="block3looks"} `Prossimo cliente per favore` quando riceve la `trasmissione`{:class="block3control"} `prossimo cliente`{:class="block3control"}. ```blocks3 -when I receive [prossimo cliente v] -say [Il prossimo cliente, per favore!] for (2) seconds +when I receive [next customer v] +say [Next customer please!] for (2) seconds ``` --- /task --- diff --git a/it-IT/step_3.md b/it-IT/step_3.md index 861ded761..48e4cdbcd 100644 --- a/it-IT/step_3.md +++ b/it-IT/step_3.md @@ -2,7 +2,7 @@
-Il tuo negozio ha bisogno di articoli da vendere. Ogni articolo avrà un prezzo che verrà aggiunto alla variabile `totale`{:class="block3variables"}. +Il tuo negozio ha bisogno di articoli da vendere. Ogni articolo avrà un prezzo che verrà aggiunto alla variabile `total`{:class="block3variables"}.
![](images/step3-image.png){:width="300px"} @@ -13,9 +13,9 @@ Dovrai tenere traccia di quanto spende il tuo cliente. --- task --- -Aggiungi una nuova variabile chiamata `totale`{:class="block3variables"} per tutti gli sprite. +Aggiungi una nuova variabile chiamata **total**{:class="block3variables"} per tutti gli sprite. -Fai clic sul tuo sprite **venditore** e aggiungi uno script a `imposta`{:class="block3variables"} il `totale`{:class="block3variables"} a`0` quando il progetto inizia. +Fai clic sul tuo sprite **venditore** e aggiungi uno script a `imposta`{:class="block3variables"} il totale ``{:class="block3variables"} a `0` quando il progetto inizia. [[[scratch3-create-set-variable]]] @@ -40,17 +40,17 @@ Se vuoi, puoi aggiungere un prezzo al costume utilizzando lo strumento di testo --- task --- -Aggiungi uno script per modificare `il valore di`{:class="block3variables"} nel `totale`{:class="block3variables"} in base al prezzo del tuo articolo quando il cliente clicca sullo sprite. +Aggiungi uno script per modificare `il valore di`{:class="block3variables"} nel totale ``{:class="block3variables"} in base al prezzo del tuo articolo quando il cliente clicca sullo sprite. --- collapse --- --- -title: Clicca per aggiungere un elemento +title: Click to add an item --- ```blocks3 when this sprite clicked start sound (Coin v) -change [totale v] by [10] +change [total v] by [10] ``` --- /collapse --- @@ -65,9 +65,9 @@ change [totale v] by [10] --- task --- -**Test:** Fai clic sul tuo oggetto e controlla che il valore della variabile `totale`{:class="block3variables"} aumenti in base al prezzo dell'oggetto e che tu senta l'effetto sonoro. Clicca più volte per vedere aumentare il totale. +**Test:** Fai clic sul tuo oggetto e controlla che il valore della variabile totale ``{:class="block3variables"} aumenti in base al prezzo dell'oggetto e che tu senta l'effetto sonoro. Clicca più volte per vedere aumentare il totale. -Fai clic sulla bandiera verde per avviare il progetto e assicurati che il `totale`{:class="block3variables"} inizi da `0`. +Fai clic sulla bandiera verde per avviare il progetto e assicurati che il totale ``{:class="block3variables"} inizi da `0`. --- /task --- @@ -85,9 +85,9 @@ Se intendi utilizzarli, aggiungi un'etichetta con il prezzo al costume o allo sf --- task --- -Fai clic sul tuo nuovo sprite **Oggetto** nell'elenco Sprite, quindi fai clic sulla scheda **Codice**. +Fai clic sul tuo nuovo sprite **Oggetto** nell'elenco Sprite, quindi fai clic sulla scheda **Codice** . -Sostituisci l'importo di cui cambia il `totale`{:class="block3variables"} di con il prezzo del tuo nuovo articolo. +Sostituisci l'importo di cui cambia il totale di ****{:class="block3variables"} con il prezzo del tuo nuovo articolo. --- /task --- @@ -95,7 +95,7 @@ Sostituisci l'importo di cui cambia il `totale`{:class="block3variables"} di con **Test:** Fai clic sulla bandiera verde per avviare il progetto e fai clic sugli elementi per aggiungerli. Controlla che il totale aumenti dell'importo corretto ogni volta che clicchi su un elemento. -Se hai aggiunto etichette dei prezzi, assicurati che corrispondano all'importo che viene aggiunto al `totale`{:class="block3variables"}, altrimenti i tuoi clienti saranno confusi! +Se hai aggiunto etichette dei prezzi, assicurati che corrispondano all'importo che viene aggiunto al totale ``{:class="block3variables"}, altrimenti i tuoi clienti saranno confusi! --- /task --- @@ -105,7 +105,7 @@ Se hai aggiunto etichette dei prezzi, assicurati che corrispondano all'importo c --- collapse --- --- -title: Il totale non va a 0 quando clicco sulla bandiera verde +title: The total doesn't go to 0 when I click the green flag --- Verifica di aver impostato il valore iniziale della variabile `totale`{:class="block3variables"} nello script `quando si fa clic sulla bandiera`{:class="block3events"} sullo sprite **venditore**. @@ -114,12 +114,12 @@ Verifica di aver impostato il valore iniziale della variabile `totale`{:class="b --- collapse --- --- -title: Il totale non aumenta dell'importo corretto quando clicco su un elemento +title: The total doesn't increase by the correct amount when I click on an item --- -Controlla che ogni oggetto abbia un valore `quando questo sprite è cliccato`{:class="block3events"} lo script modifica il `totale`{:class="block3variables"} della quantità corretta per quell'oggetto: potresti aver cambiato il prezzo per lo sprite sbagliato. +Controlla che ogni oggetto abbia un valore `quando questo sprite è cliccato`{:class="block3events"} lo script modifica il totale ``{:class="block3variables"} della quantità corretta per quell'oggetto: potresti aver cambiato il prezzo per lo sprite sbagliato. -Verifica di aver utilizzato il blocco `modifica`{:class="block3variables"} e non il blocco `imposta`{:class="block3variables"} per modificare il `totale`{:class="block3variables"}. Devi usare `cambia`{:class="block3variables"} per aggiungere il prezzo al totale; non vuoi impostare il totale sul prezzo dell'articolo appena aggiunto. +Verifica di aver utilizzato il blocco `modifica`{:class="block3variables"} e non il blocco `imposta`{:class="block3variables"} per modificare il totale ``{:class="block3variables"}. Devi usare `cambia`{:class="block3variables"} per aggiungere il prezzo al totale; non vuoi impostare il totale sul prezzo dell'articolo appena aggiunto. --- /collapse --- diff --git a/it-IT/step_4.md b/it-IT/step_4.md index 2e2240f83..2c866b3ef 100644 --- a/it-IT/step_4.md +++ b/it-IT/step_4.md @@ -21,14 +21,14 @@ Una volta terminata la scelta degli articoli, il cliente cliccherà sullo sprite ```blocks3 when this sprite clicked -say (join [Il totale è ] (totale)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds ``` --- /task --- --- task --- -Aggiungi un suono di pagamento al tuo sprite **venditore** in modo che il cliente sappia che il pagamento è in corso. +Aggiungi un suono di pagamento al tuo sprite <0>venditore in modo che il cliente sappia che il pagamento è in corso. ![L'icona Aggiungi un Suono](images/add-sound.png) @@ -38,7 +38,7 @@ Aggiungi il blocco `riproduci suono finché non viene completato`{:class="block3 ```blocks3 when this sprite clicked -say (join [Il totale è ] (totale)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds + play sound [machine v] until done ``` @@ -50,11 +50,11 @@ Concludi la vendita. Ripristina `il totale`{:class="block3variables"} a `0` dopo ```blocks3 when this sprite clicked -say (join [Il totale è ] (totale)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds play sound [machine v] until done -+ set [totale v] to (0) -+ say (join [Grazie per aver fatto acquisti ] (nome)) for (2) seconds -+ broadcast (prossimo cliente v) ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) ``` --- /task --- @@ -63,7 +63,7 @@ play sound [machine v] until done **Test:** Prova il tuo progetto e assicurati che: - Il cliente può effettuare il check-out con gli effetti sonori corretti -- Il `totale`{:class="block3variables"} di viene riportato a `0` dopo che un cliente paga o annulla. +- Il totale di ``{:class="block3variables"} viene riportato a `0` dopo che un cliente paga o annulla. --- /task --- @@ -76,65 +76,65 @@ Ecco alcuni bug comuni: --- collapse --- --- -title: Il venditore non fa nulla quando clicco su di lui +title: The seller doesn't do anything when I click on them --- -Hai un bel po' di sprite nel tuo progetto. Assicurati che lo script `quando questo sprite è cliccato`{:class="block3events"} sia sul tuo sprite **venditore**. +Hai un bel po' di sprite nel tuo progetto. Assicurati che lo script `quando questo sprite è cliccato`{:class="block3events"} sia sul tuo sprite venditore ****. -**Suggerimento:** Se l'hai aggiunto allo sprite sbagliato, puoi trascinare il codice nello sprite del **venditore** , quindi eliminarlo dall'altro sprite. +**Suggerimento:** Se l'hai aggiunto allo sprite sbagliato, puoi trascinare il codice nello sprite del venditore **** , quindi eliminarlo dall'altro sprite. --- /collapse --- --- collapse --- --- -title: Le parole nei blocchi dire si fondono insieme +title: The words in the say blocks merge together --- -Quando `unisci`{:class="block3operators"} due pezzi insieme, devi aggiungere uno spazio alla fine del primo pezzo di testo o all'inizio del secondo pezzo di testo. +Quando unisci ``{:class="block3operators"} due pezzi insieme, devi aggiungere uno spazio alla fine del primo pezzo di testo o all'inizio del secondo pezzo di testo. Questi hanno uno spazio alla fine della prima parte dell'unione: ```blocks3 -say {join [Il totale è ](totale)} for (2) seconds +say {join [That will be ](total)} for (2) seconds -say {join [Grazie per aver fatto acquisti ](nome)} for (2) seconds +say {join [Thanks for shopping at ](name)} for (2) seconds ``` --- /collapse --- --- collapse --- --- -title: Il totale non si azzera dopo una vendita +title: The total doesn't reset after a sale --- Controlla di aver utilizzato: ```blocks3 -set [totale v] to (0) +set [total v] to (0) ``` -**non**: +<0>non: ```blocks3 -change [totale v] by (0) +change [total v] by (0) ``` --- /collapse --- --- collapse --- --- -title: Il venditore non risponde +title: The seller isn't responding --- -Assicurati che `l'operatore`{:class="block3operators"} nella condizione `se`{:class="block3control"} sia il simbolo maggiore di `>`{:class="block3operators"}. +Assicurati che l'operatore ``{:class="block3operators"} nella condizione `se`{:class="block3control"} sia il simbolo maggiore di `>`{:class="block3operators"}. ```blocks3 -if <(totale) > [0]> then +if <(total) > [0]> then ``` --- /collapse --- -**Suggerimento:** Confronta il tuo codice con gli esempi di codice. Ci sono differenze che non dovrebbero esserci? +<0>Suggerimento: Confronta il tuo codice con gli esempi di codice. Ci sono differenze che non dovrebbero esserci? --- /task --- diff --git a/it-IT/step_6.md b/it-IT/step_6.md index 485b0af51..6262a4289 100644 --- a/it-IT/step_6.md +++ b/it-IT/step_6.md @@ -33,12 +33,11 @@ Crea un'altra attività e consenti ai giocatori di visitarle entrambe. --- /task --- -Ogni progetto di esempio nell'[Introduzione](.) ha un collegamento "Guarda all'interno" che ti consente di aprire il progetto in Scratch e di guardare il codice per prendere spunto e vedere come funziona. Puoi "Guardare all'interno" dei progetti di esempio per vedere come funzionano. +Ogni progetto di esempio nell'Introduzione [](https://scratch. mit. edu/studios/29662180) ha un collegamento "Guarda all'interno" che ti consente di aprire il progetto in Scratch e di guardare il codice per prendere spunto e vedere come funziona. Puoi "Guardare all'interno" dei progetti di esempio per vedere come funzionano. -Progetti di esempio: -**Frutta fresca spaziale**: [Guarda all'interno](https://scratch.mit.edu/projects/1111488970/editor){:target="_blank"} -**Magliette fantastiche**: [Guarda all'interno](https://scratch.mit.edu/projects/1111480198/editor){:target="_blank"} -**Gelateria**: [Guarda all'interno](https://scratch.mit.edu/projects/1111490570/editor){:target="_blank"} +Progetti di esempio: **Frutta fresca spaziale**: [Guarda all'interno](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Magliette fantastiche**: [Guarda all'interno](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Gelateria**: [Guarda all'interno](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} **Distributore automatico**: [Guarda all'interno](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} **Suggerimento:** se hai effettuato l'accesso a un account Scratch, puoi usare il **Backpack** per copiare script o sprite nel tuo progetto. @@ -56,23 +55,21 @@ Puoi aggiungere blocchi `chiedi`{:class="block3sensing"} allo script del tuo **v --- collapse --- --- - -title: Fai e rispondi alle domande - +title: Ask and respond to questions --- ```blocks3 -ask [Hai trovato tutto quello che volevi oggi?] and wait -if <(answer) = [sì]> then -say [È fantastico!] for [2] seconds +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds else -say [Forse dovrei aggiungere più articoli al mio negozio] for [2] seconds +say [Maybe I should add more items to my shop] for [2] seconds end ``` -**Debug:** controlla di aver scritto correttamente le opzioni nel tuo codice e nella tua risposta. Va bene anche usare le lettere maiuscole, quindi "Sì" e "SÌ" corrisponderanno a "sì". +**Debug:** Check that you have spelled the options correctly in your code and in your answer. It's OK if you use capital letters, so "Yes" and "YES" will match "yes". -Aggiungi più domande per creare un chatbot o un personaggio non giocante con cui puoi parlare. +Add multiple questions to create a chatbot or non-player character that you can talk to. --- /collapse --- @@ -82,51 +79,49 @@ Aggiungi più domande per creare un chatbot o un personaggio non giocante con cu --- task --- -Il progetto "Magliette fantastiche" propone magliette che scivolano in una borsa. +The Cool Shirts project has shirts that glide into a bag. --- collapse --- --- - -title: Fai scivolare gli oggetti in un contenitore - +title: Make items glide into a container --- -Aggiungere uno sprite **Contenitore**. Potresti usare uno sprite esistente come **Gift** o **Take out**, oppure colorarne uno tuo con forme semplici. +Add a **Container** sprite. You could use an existing sprite like the **Gift** or **Take out** sprite, or paint your own with simple shapes. -Aggiungi uno script per far sì che il contenitore appaia sempre in primo piano: +Add a script to make the **Container** always appear at the front: ```blocks3 when flag clicked forever -go to [primo v] layer +go to [front v] layer end ``` -Quindi dovrai aggiungere del codice a ciascun **oggetto** in vendita per farli scivolare verso il contenitore quando vengono cliccati: +Then you'll need to add code to each **Item** you have for sale to make them glide to the container when they are clicked: ```blocks3 when this sprite clicked -+go to [primo v] layer -+glide [1] secs to (Bag v) // usa il nome del tuo contenitore sprite ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite +hide -change [totale v] by [12] -+go to x: [-180] y: [68] // posizione iniziale +change [total v] by [12] ++go to x: [-180] y: [68] // start position +show ``` -Se non vuoi che il contenitore sia sempre presente, puoi aggiungere degli script per visualizzarlo e nasconderlo al momento giusto: +If you don't want the container there all the time, you can add scripts to make it show and hide at the right time: ```blocks3 -when I receive [prossimo cliente v] -hide // il cliente precedente prende la borsa +when I receive [next customer v] +hide // previous customer takes the bag wait [1] seconds show ``` -**Test:** Prova il tuo progetto e assicurati che gli oggetti scivolino verso il contenitore e si nascondano. +**Test:** Try your project and make sure items glide to the container and hide. -**Debug:** Controlla attentamente i tuoi script e assicurati di aver aggiornato tutti i tuoi **sprite degli oggetti**. Se hai bisogno di un esempio funzionante, puoi dare un'occhiata a [Magliette fantastiche](https://scratch.mit.edu/projects/1111480198/editor){:target="_blank"}. +**Debug:** Check your scripts carefully and make sure you have updated all of your **Item** sprites. You can look at [Cool Shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} if you need to see a working example. --- /collapse --- @@ -136,49 +131,48 @@ show --- task --- -Aggiungi una variabile `negozio`{:class="block3variables"} e usala per controllare quando possono essere aggiunti gli articoli. +Add a `shop`{:class="block3variables"} variable and use it to control when items can be added. --- collapse --- --- -title: Consenti gli acquisti solo quando il cliente non è alla cassa - +title: Stop purchases when the customer is at the checkout --- -Aggiungi una `variabile`{:class="block3variables"} chiamata `negozio` per tutti gli sprite. Imposterai questo valore su **vero** quando il cliente è nel negozio e su `falso` quando è alla cassa. +Add a `variable`{:class="block3variables"} called `shop` for all sprites. You will set this to `true` when the customer is in the shop and `false` when they are at the checkout. -Seleziona il tuo sprite **venditore**. Aggiorna lo script `quando si fa clic sulla bandiera`{:class="block3events"} per consentire lo shopping all'avvio del progetto: +Select your **seller** sprite. Update the `when flag clicked`{:class="block3events"} script to allow shopping when your project starts: ```blocks3 -+set [negozio v] to [vero] ++set [shop v] to [true] ``` -Ora aggiungi un blocco per modificare il `negozio`{:class="block3variables"} in `falso` all'inizio dello script del tuo **venditore** `quando si clicca sprite`{:class="block3events"}: +Now add a block to change the `shop`{:class="block3variables"} to `false` at the beginning of your **seller**'s `when this sprite clicked`{:class="block3events"} script: ```blocks3 -+set [negozio v] to [falso] ++set [shop v] to [false] ``` -E un blocco per impostare la variabile `negozio`{:class="block3variables"} di nuovo su `vero` alla fine dello stesso script: +And a block to set the `shop`{:class="block3variables"} variable back to `true` at the end of the same script: ```blocks3 -+set [negozio v] to [vero] ++set [shop v] to [true] ``` -Ora devi aggiornare gli oggetti che vendi per controllare la variabile del `negozio`{:class="block3variables"}: +Now you need to update the items you sell to check the `shop`{:class="block3variables"} variable: ```blocks3 when this sprite clicked -+if <(negozio) = [vero]> then ++if <(shop) = [true]> then start sound (Coin v) -change [totale v] by [10] +change [total v] by [10] end ``` -Dovrai fare questa operazione per ogni articolo che vendi nel tuo negozio. +You will need to do this for every item you sell in your shop. -**Test:** Fai clic sulla bandiera verde, quindi prova a fare acquisti. Verifica che sia ancora possibile aggiungere articoli e procedere al pagamento, ma che non sia possibile aggiungere articoli una volta avviato il pagamento. +**Test:** Click the green flag then try shopping. Check that you can still add items and checkout, but you can't add items once you have started checking out. -**Debug:** Controlla il tuo codice molto attentamente. Se hai bisogno di vedere un esempio funzionante, puoi dare un'occhiata al progetto [Frutta fresca spaziale](https://scratch.mit.edu/projects/1111488970/editor){:target="_blank"}. +**Debug:** Check your code really carefully. You can look at the [Space Fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project if you need to see a working example. --- /collapse --- @@ -189,40 +183,41 @@ Dovrai fare questa operazione per ogni articolo che vendi nel tuo negozio. ### Potresti dare al cliente la possibilità di annullare l'acquisto. --- collapse --- + --- -title: Imposta le opzioni di pagamento e annullamento +title: Set up pay and cancel options --- -`Chiedi`{:class="block3sensing"} `Vuoi pagare o annullare?`. Aggiungi un blocco `Se`{:class="block3control"} per `rispondi`{:class="block3sensing"} `=`{:class="block3operators"} `paga` e al suo interno inserisci i tuoi blocchi di pagamento esistenti. +`Ask`{:class="block3sensing"} `Would you like to pay or cancel?`. Add an `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `pay` and inside it put your existing payment blocks. ```blocks3 when this sprite clicked -say (join [Il totale è ] (totale)) for (2) seconds -+ ask [Vuoi pagare o annullare?] and wait -+ if {(answer) = [paga]} then +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then play sound [machine v] until done -set [totale v] to (0) -say (join [Grazie per aver fatto acquisti ] (nome)) for (2) seconds -broadcast [prossimo cliente v] +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] end ``` -Aggiungi un secondo blocco `Se`{:class="block3control"} per `rispondi`{:class="block3sensing"} `=`{:class="block3operators"} `annulla` e al suo interno aggiungi il codice per annullare l'ordine. +Add a second `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `cancel` and inside it add code to cancel the order. ```blocks3 when this sprite clicked -say (join [Il totale è ] (totale)) for (2) seconds -ask [Vuoi pagare o annullare?] and wait -if {(answer) = [paga]} then +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then play sound [machine v] until done -set [totale v] to (0) -say (join [Grazie per aver fatto acquisti ] (nome)) for (2) seconds -broadcast [prossimo cliente v] +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] end -+ if {(answer) = [annulla]} then -set [totale v] to (0) -say [Ok. Nessun problema] for (2) seconds -broadcast [prossimo cliente v] ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] end ``` @@ -230,6 +225,6 @@ end --- /task --- -Dai un'occhiata al nostro ['Mercato dello shopping intergalattico'](https://scratch.mit.edu/studios/29662180){:target="_blank"} studio Scratch per vedere i progetti creati dai membri della community. +Take a look at our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio to see projects created by community members. --- save --- diff --git a/it-IT/step_8.md b/it-IT/step_8.md index 3345f4833..2e5f2b9b0 100644 --- a/it-IT/step_8.md +++ b/it-IT/step_8.md @@ -1,6 +1,6 @@ -## E adesso? +## What can you do now? -Se stai seguendo il percorso [Più Scratch](https://projects.raspberrypi.org/it-IT/raspberrypi/more-scratch), puoi passare al progetto [Non caderci](https://projects.raspberrypi.org/it-IT/projects/dont-fall-in). In questo progetto, creerai un gioco dall'alto verso il basso in cui dovrai saltare da una piattaforma all'altra senza caderci dentro. +Se stai seguendo il percorso [Più Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch), puoi passare al progetto [Non caderci](https://projects.raspberrypi.org/en/projects/dont-fall-in). In questo progetto, creerai un gioco dall'alto verso il basso in cui dovrai saltare da una piattaforma all'altra senza caderci dentro. --- print-only --- @@ -18,13 +18,4 @@ Se stai seguendo il percorso [Più Scratch](https://projects.raspberrypi.org/it- --- /no-print --- -Se vuoi divertirti di più esplorando Scratch, puoi provare uno qualsiasi di [questi progetti](https://projects.raspberrypi.org/it-IT/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). - -*** - -Questo progetto è stato tradotto da volontari: - -Paolo Vassallo -Ivan Baldassin - -Grazie ai volontari, possiamo offrire alle persone di tutto il mondo la possibilità di imparare nella loro lingua. Puoi aiutarci a raggiungere più persone offrendoti come volontario per la traduzione - puoi trovare maggiori informazioni su [rpf.io/translate](https://rpf.io/translate). +Se vuoi divertirti di più esplorando Scratch, puoi provare uno qualsiasi di [questi progetti](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). diff --git a/ja-JP/meta.yml b/ja-JP/meta.yml index f410c1775..ebeca8000 100644 --- a/ja-JP/meta.yml +++ b/ja-JP/meta.yml @@ -9,15 +9,20 @@ listed: true copyedit: false last_tested: "2021-03-26" steps: - - title: はじめに - - title: あなたのお店 - - title: 販売する商品 + - + title: はじめに + - + title: あなたのお店 + - + title: 販売する商品 completion: - engaged - - title: 買う + - + title: 買う completion: - internal - - title: ふりかえり + - + title: ふりかえり knowledge_quiz: path: quiz1 version: 1 @@ -25,6 +30,8 @@ steps: passing_score: 3 completion: - external - - title: チャレンジ + - + title: チャレンジ challenge: true - - title: 共有 + - + title: 共有 diff --git a/ja-JP/quiz1/question_1.md b/ja-JP/quiz1/question_1.md index 404f54ca1..b67cf01f9 100644 --- a/ja-JP/quiz1/question_1.md +++ b/ja-JP/quiz1/question_1.md @@ -23,7 +23,7 @@ legend: 質問1 - ( ) ```blocks3 -change [合計 v] by [0] +change [total v] by [0] ``` --- feedback --- @@ -34,7 +34,7 @@ change [合計 v] by [0] - ( ) ```blocks3 -set [合計 v] to [40] +set [total v] to [40] ``` --- feedback --- @@ -46,7 +46,7 @@ set [合計 v] to [40] - (x) ```blocks3 -set [合計 v] to [0] +set [total v] to [0] ``` --- feedback --- @@ -58,7 +58,7 @@ set [合計 v] to [0] - ( ) ```blocks3 -change [合計 v] by [-50] +change [total v] by [-50] ``` --- feedback --- diff --git a/ja-JP/quiz1/question_2.md b/ja-JP/quiz1/question_2.md index 7b6f48c27..3aa2aefea 100644 --- a/ja-JP/quiz1/question_2.md +++ b/ja-JP/quiz1/question_2.md @@ -8,11 +8,11 @@ legend: 質問2 お店にいる**店員**には、レジのスクリプトに次のコードがあります。 ```blocks3 -ask [調子はどうだい?] and wait -if <(answer) = [よい]> then -say [よかったです!] for [2] seconds +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds else -say [それは残念ですね。] for [2] seconds +say [Sorry to hear that.] for [2] seconds end ``` diff --git a/ja-JP/scratch-translatable.txt b/ja-JP/scratch-translatable.txt index d02bf9e66..741d4b107 100644 --- a/ja-JP/scratch-translatable.txt +++ b/ja-JP/scratch-translatable.txt @@ -38,9 +38,9 @@ 買い物 -正しい +true -間違い +false 調子はどうだい? diff --git a/ja-JP/step_1.md b/ja-JP/step_1.md index b24639fda..b964c275d 100644 --- a/ja-JP/step_1.md +++ b/ja-JP/step_1.md @@ -10,9 +10,9 @@ + まだフルーツを追加していないことを、プロジェクトはどうして分かると思いますか?
-**フレッシュ宇宙フルーツ**: [中を見る](https://scratch.mit.edu/projects/1306856395/editor){:target="_blank"} +**フレッシュ宇宙フルーツ**: [中を見る](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"}
- +
@@ -20,14 +20,14 @@ 以下の**店員**のスプライトをクリックして商品を買ってみてください。 -**クールなシャツ**: [中を見る](https://scratch.mit.edu/projects/1306862558/editor){:target="_blank"} +**クールなシャツ**: [中を見る](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"}
- +
-**アイスクリームショップ**: [中を見る](https://scratch.mit.edu/projects/1306864050/editor){:target="_blank"} +**アイスクリームショップ**: [中を見る](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"}
- +
**⭐プライドピン**(注目のコミュニティプロジェクト) @@ -46,10 +46,7 @@ キャラクターを作成するためにデザインを決めましょう。 Scratch 2の「次のお客様どうぞ!」のサンプルプロジェクトを見てください。 Scratchスタジオは https://scratch.mit.edu/studios/29611454 -![サンプルプロジェクト](images/fruit.png) -![サンプルプロジェクト](images/tshirt.png) -![サンプルプロジェクト](images/icecream.png) -![サンプルプロジェクト](images/vending.png) +![サンプルプロジェクト](images/fruit.png) ![サンプルプロジェクト](images/tshirt.png) ![サンプルプロジェクト](images/icecream.png) ![サンプルプロジェクト](images/vending.png) --- /print-only --- diff --git a/ja-JP/step_2.md b/ja-JP/step_2.md index 354bbf7d2..4a1f075de 100644 --- a/ja-JP/step_2.md +++ b/ja-JP/step_2.md @@ -61,7 +61,7 @@ ```blocks3 when flag clicked -+ broadcast (次のお客 v) ++ broadcast (next customer v) ``` --- /task --- @@ -71,8 +71,8 @@ when flag clicked **店員**のスプライトに新しいスクリプトを作成して、`次のお客`{:class="block3control"}を`受け取ったとき`{:class="block3events"}に、`次のお客様どうぞ`と`言う`{:class="block3looks"}ようにします。 ```blocks3 -when I receive [次のお客 v] -say [次のお客様どうぞ!] for (2) seconds +when I receive [next customer v] +say [Next customer please!] for (2) seconds ``` --- /task --- diff --git a/ja-JP/step_3.md b/ja-JP/step_3.md index 7e3777b97..ed636cf47 100644 --- a/ja-JP/step_3.md +++ b/ja-JP/step_3.md @@ -50,7 +50,7 @@ title: クリックして商品を追加する ```blocks3 when this sprite clicked start sound (Coin v) -change [合計 v] by [10] +change [total v] by [10] ``` --- /collapse --- diff --git a/ja-JP/step_4.md b/ja-JP/step_4.md index 4eb22c110..a1fc79c89 100644 --- a/ja-JP/step_4.md +++ b/ja-JP/step_4.md @@ -21,7 +21,7 @@ ```blocks3 when this sprite clicked -say (join [全部で ] (合計)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds ``` --- /task --- @@ -38,7 +38,7 @@ say (join [全部で ] (合計)) for (2) seconds ```blocks3 when this sprite clicked -say (join [全部で ] (合計)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds + play sound [machine v] until done ``` @@ -50,11 +50,11 @@ say (join [全部で ] (合計)) for (2) seconds ```blocks3 when this sprite clicked -say (join [全部で ] (合計)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds play sound [machine v] until done -+ set [合計 v] to (0) -+ say (join (名前)[でお買い上げありがとうございます]) for (2) seconds -+ broadcast (次のお客 v) ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) ``` --- /task --- @@ -95,9 +95,9 @@ title: 言うブロックのテキストがくっついちゃう この例では、いずれも1つ目の末尾に空白があります。 ```blocks3 -say {join [全部で ](total)} for (2) seconds +say {join [That will be ](total)} for (2) seconds -say {join (名前)[でお買い上げありがとうございます]} for (2) seconds +say {join [Thanks for shopping at ](name)} for (2) seconds ``` --- /collapse --- @@ -110,13 +110,13 @@ title: 売れた後に合計がリセットされない 次のようになっていることを確認します。 ```blocks3 -set [合計 v] to (0) +set [total v] to (0) ``` **次ではありません** ```blocks3 -change [合計 v] by (0) +change [total v] by (0) ``` --- /collapse --- @@ -129,7 +129,7 @@ title: 店員が応答しない `もし`{:class="block3control"}条件の`演算子`{:class="block3operators"}が、大なり記号`>`{:class="block3operators"}であることを確認します。 ```blocks3 -if <(合計) > [0]> then +if <(total) > [0]> then ``` --- /collapse --- diff --git a/ja-JP/step_6.md b/ja-JP/step_6.md index 5ae924bba..6541b6659 100644 --- a/ja-JP/step_6.md +++ b/ja-JP/step_6.md @@ -35,11 +35,10 @@ [はじめに](.)の各サンプルプロジェクトには「中を見る」リンクがあり、Scratchでプロジェクトを開いてコードを見ることによりアイデアを得たり、プロジェクトがどのように動作するのか確認できるようになっています。 サンプルプロジェクトの「中を見る」でどのように動作するのか確認できます。 -サンプルプロジェクト -**フレッシュ宇宙フルーツ**: [中を見る](https://scratch.mit.edu/projects/1306856395/editor){:target="_blank"} -**クールなシャツ**: [中を見る](https://scratch.mit.edu/projects/1306862558/editor){:target="_blank"} -**アイスクリームショップ**: [中を見る](https://scratch.mit.edu/projects/1306864050/editor){:target="_blank"} -**自動販売機**: [中を見る](https://scratch.mit.edu/projects/1306865419/editor){:target="_blank"} +サンプルプロジェクト **フレッシュ宇宙フルーツ**: [中を見る](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**クールなシャツ**: [中を見る](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**アイスクリームショップ**: [中を見る](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**自動販売機**: [中を見る](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} **ヒント:** Scratchアカウントにログインしている場合は、**バックパック**を使用してスクリプトやスプライトをあなたのプロジェクトにコピーできます。 @@ -60,11 +59,11 @@ title: 質問して答える --- ```blocks3 -ask [今日欲しいものはすべて見つかりましたか?] and wait -if <(answer) = [はい]> then -say [よかったです!] for [2] seconds +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds else -say [お店に商品をもっと追加する必要がありそうですね] for [2] seconds +say [Maybe I should add more items to my shop] for [2] seconds end ``` @@ -95,7 +94,7 @@ title: 商品を入れ物に入れる ```blocks3 when flag clicked forever -go to [最前面 v] layer +go to [front v] layer end ``` @@ -103,26 +102,26 @@ end ```blocks3 when this sprite clicked -+go to [最前面 v] layer -+glide [1] secs to (Bag v) // コンテナスプライトの名前を使用する ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite +hide -change [合計 v] by [12] -+go to x: [-180] y: [68] // 開始位置 +change [total v] by [12] ++go to x: [-180] y: [68] // start position +show ``` 入れ物を常に表示しておく必要がない場合は、スクリプトを追加して、適切なタイミングで入れ物を表示したり隠したりできます。 ```blocks3 -when I receive [次のお客 v] -hide // 前のお客が買い物袋を受け取る +when I receive [next customer v] +hide // previous customer takes the bag wait [1] seconds show ``` **テスト:** プロジェクトを試してみて、商品が入れ物に移動し、非表示になることを確認します。 -**デバッグ:** スクリプトを注意深く確認し、すべての**商品**スプライトが更新されていることを確認してください。 実際の例を確認する必要がある場合は、[クールなシャツ](https://scratch.mit.edu/projects/1306862558/editor){:target="_blank"}を参照してください。 +**デバッグ:** スクリプトを注意深く確認し、すべての**商品**スプライトが更新されていることを確認してください。 実際の例を確認する必要がある場合は、[クールなシャツ](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"}を参照してください。 --- /collapse --- @@ -145,35 +144,35 @@ title: お客さんがレジにいたら購入できなくする **店員**スプライトを選択してください。 プロジェクトの開始時に買い物できるようにするには、`緑の旗が押されたとき`{:class="block3events"}スクリプトを更新します。 ```blocks3 -+set [買い物 v] to [true] ++set [shop v] to [true] ``` -ここで、**店員**の`このスプライトが押されたとき`{:class="block3events"}スクリプトの先頭に、`買い物`{:class="block3variables"}を`false`に変更するブロックを追加します。 +ここで、**店員**の`このスプライトが押されたとき`{:class="block3events"}スクリプトの先頭に、`営業中`{:class="block3variables"}を`false`に変更するブロックを追加します。 ```blocks3 -+set [買い物 v] to [false] ++set [shop v] to [false] ``` そして、同じスクリプトの最後に、`買い物`{:class="block3variables"}変数を`true`に戻すブロックを追加します。 ```blocks3 -+set [買い物 v] to [true] ++set [shop v] to [true] ``` ここで、販売する商品を更新して、`買い物`{:class="block3variables"}変数を確認する必要があります。 ```blocks3 when this sprite clicked -+if <(買い物) = [true]> then ++if <(shop) = [true]> then start sound (Coin v) -change [合計 v] by [10] +change [total v] by [10] end ``` お店で販売するすべての商品に対してこれを行う必要があります。 **テスト:** 緑の旗をクリックして買い物してみましょう。 商品を追加してお会計することは引き続きできても、お会計を開始したら商品が追加できないことを確認します。 -**デバッグ:** コードを慎重にチェックしてください。 実際の例を確認する必要がある場合は、[宇宙フルーツ](https://scratch.mit.edu/projects/1306856395/editor){:target="_blank"}プロジェクトを参照してください。 +**デバッグ:** コードを慎重にチェックしてください。 実際の例を確認する必要がある場合は、[宇宙フルーツ](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"}プロジェクトを参照してください。 --- /collapse --- @@ -193,13 +192,13 @@ title: 支払いとキャンセルのオプションを設定する ```blocks3 when this sprite clicked -say (join [全部で] (合計)) for (2) seconds -+ ask [「支払い」ますか?それとも「キャンセル」しますか?] and wait -+ if {(answer) = [支払い]} then +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then play sound [machine v] until done -set [合計 v] to (0) -say (join (名前)[でお買い上げありがとうございます]) for (2) seconds -broadcast [次のお客 v] +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] end ``` @@ -207,18 +206,18 @@ end ```blocks3 when this sprite clicked -say (join [That will be ] (合計)) for (2) seconds -ask [「支払い」ますか?それとも「キャンセル」しますか?] and wait -if {(answer) = [支払い]} then +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then play sound [machine v] until done -set [合計 v] to (0) -say (join (名前)[でお買い上げありがとうございます]) for (2) seconds -broadcast [次のお客 v] +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] end -+ if {(answer) = [キャンセル]} then -set [合計 v] to (0) -say [わかりました。問題ございません] for (2) seconds -broadcast [次のお客 v] ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] end ``` diff --git a/ja-JP/step_7.md b/ja-JP/step_7.md index ee6813204..2000af38a 100644 --- a/ja-JP/step_7.md +++ b/ja-JP/step_7.md @@ -4,6 +4,6 @@ あなたのプロジェクトでRaspberry Pi財団コミュニティに刺激を与えましょう! -プロジェクトを[「銀河系ショッピングマーケット」](https://scratch.mit.edu/studios/29662180){:target="_blank"}Scratchスタジオに送信するには、[このフォーム](https://form.raspberrypi.org/f/community-project-submissions){:target="_blank"}に記入してください。 +プロジェクトを[「銀河系ショッピングマーケット」](https://scratch.mit.edu/studios/29662180){:target="_ blank"}Scratchスタジオに送信するには、[このフォーム](https://form.raspberrypi.org/f/community-project-submissions){:target ="_blank"}に記入してください。 ![「銀河系ショッピング マーケット」Scratchスタジオのお店プロジェクトの例。](images/studio-example.png) diff --git a/ja-JP/step_8.md b/ja-JP/step_8.md index 352529721..54b07f5ea 100644 --- a/ja-JP/step_8.md +++ b/ja-JP/step_8.md @@ -1,6 +1,6 @@ ## 次は何をしますか? -[Scratch続編](https://projects.raspberrypi.org/ja-JP/raspberrypi/more-scratch)のパスをたどっている場合は、[落ちないで!](https://projects.raspberrypi.org/ja-JP/projects/dont-fall-in)プロジェクトに進みます。 このプロジェクトでは、プラットフォームからプラットフォームへ落ちないようにジャンプするトップダウンゲームを作成します。 +[Scratch続編](https://projects.raspberrypi.org/en/raspberrypi/more-scratch)のパスをたどっている場合は、[落ちないで!](https://projects.raspberrypi.org/en/projects/dont-fall-in)プロジェクトに進みます。 このプロジェクトでは、プラットフォームからプラットフォームへ落ちないようにジャンプするトップダウンゲームを作成します。 --- print-only --- @@ -18,13 +18,4 @@ --- /no-print --- -Scratchをもっと楽しく使いたい場合は、[これらのプロジェクト](https://projects.raspberrypi.org/ja-JP/projects?software%5B%5D=scratch&curriculum%5B%5D=%201)のいずれかを試してみてください。 - -*** - -このプロジェクトは以下のボランティアによって翻訳されました。 - -横川 裕隆 -遼 - -ボランティアのおかげで、世界中の人々に母国語で学ぶ機会を与えることができます。翻訳を引き受けていただくことで、より多くの人々に手を差し伸べることができます。詳しくは [rpf.io/translate](https://rpf.io/translate) をご覧ください。 +Scratchをもっと楽しく使いたい場合は、[これらのプロジェクト](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201)のいずれかを試してみてください。 diff --git a/kn-IN/images/add-friend-projects.png b/kn-IN/images/add-friend-projects.png new file mode 100644 index 000000000..3ad5bafed Binary files /dev/null and b/kn-IN/images/add-friend-projects.png differ diff --git a/kn-IN/images/add-sound.png b/kn-IN/images/add-sound.png new file mode 100644 index 000000000..123e3628f Binary files /dev/null and b/kn-IN/images/add-sound.png differ diff --git a/kn-IN/images/add-your-projects.png b/kn-IN/images/add-your-projects.png new file mode 100644 index 000000000..016bd757d Binary files /dev/null and b/kn-IN/images/add-your-projects.png differ diff --git a/kn-IN/images/banner.png b/kn-IN/images/banner.png new file mode 100644 index 000000000..f9ac6e053 Binary files /dev/null and b/kn-IN/images/banner.png differ diff --git a/kn-IN/images/choose-backdrop-icon.png b/kn-IN/images/choose-backdrop-icon.png new file mode 100644 index 000000000..6d7d7e298 Binary files /dev/null and b/kn-IN/images/choose-backdrop-icon.png differ diff --git a/kn-IN/images/choose-sprite-icon.png b/kn-IN/images/choose-sprite-icon.png new file mode 100644 index 000000000..7b04d235d Binary files /dev/null and b/kn-IN/images/choose-sprite-icon.png differ diff --git a/kn-IN/images/create-studio.png b/kn-IN/images/create-studio.png new file mode 100644 index 000000000..0ce2440f2 Binary files /dev/null and b/kn-IN/images/create-studio.png differ diff --git a/kn-IN/images/customer-count.png b/kn-IN/images/customer-count.png new file mode 100644 index 000000000..e2c6ce61a Binary files /dev/null and b/kn-IN/images/customer-count.png differ diff --git a/kn-IN/images/dont-fall-in-project.png b/kn-IN/images/dont-fall-in-project.png new file mode 100644 index 000000000..003a7787c Binary files /dev/null and b/kn-IN/images/dont-fall-in-project.png differ diff --git a/kn-IN/images/example-strip.png b/kn-IN/images/example-strip.png new file mode 100644 index 000000000..cecace153 Binary files /dev/null and b/kn-IN/images/example-strip.png differ diff --git a/kn-IN/images/fruit.png b/kn-IN/images/fruit.png new file mode 100644 index 000000000..74b78e59a Binary files /dev/null and b/kn-IN/images/fruit.png differ diff --git a/kn-IN/images/icecream.png b/kn-IN/images/icecream.png new file mode 100644 index 000000000..c72e20f83 Binary files /dev/null and b/kn-IN/images/icecream.png differ diff --git a/kn-IN/images/item-amounts.png b/kn-IN/images/item-amounts.png new file mode 100644 index 000000000..9e6430405 Binary files /dev/null and b/kn-IN/images/item-amounts.png differ diff --git a/kn-IN/images/large-readout.png b/kn-IN/images/large-readout.png new file mode 100644 index 000000000..a3859b991 Binary files /dev/null and b/kn-IN/images/large-readout.png differ diff --git a/kn-IN/images/my-stuff-menu.png b/kn-IN/images/my-stuff-menu.png new file mode 100644 index 000000000..ad6992761 Binary files /dev/null and b/kn-IN/images/my-stuff-menu.png differ diff --git a/kn-IN/images/naming-studio.png b/kn-IN/images/naming-studio.png new file mode 100644 index 000000000..dc25e716e Binary files /dev/null and b/kn-IN/images/naming-studio.png differ diff --git a/kn-IN/images/new-variable.png b/kn-IN/images/new-variable.png new file mode 100644 index 000000000..d937fdd8a Binary files /dev/null and b/kn-IN/images/new-variable.png differ diff --git a/kn-IN/images/quiz2.png b/kn-IN/images/quiz2.png new file mode 100644 index 000000000..b5fe0cfb0 Binary files /dev/null and b/kn-IN/images/quiz2.png differ diff --git a/kn-IN/images/sprite-pane-size.png b/kn-IN/images/sprite-pane-size.png new file mode 100644 index 000000000..568608788 Binary files /dev/null and b/kn-IN/images/sprite-pane-size.png differ diff --git a/kn-IN/images/step2-image.png b/kn-IN/images/step2-image.png new file mode 100644 index 000000000..f52394751 Binary files /dev/null and b/kn-IN/images/step2-image.png differ diff --git a/kn-IN/images/step3-image.png b/kn-IN/images/step3-image.png new file mode 100644 index 000000000..441189fec Binary files /dev/null and b/kn-IN/images/step3-image.png differ diff --git a/kn-IN/images/step4-image.png b/kn-IN/images/step4-image.png new file mode 100644 index 000000000..c92bc3b0b Binary files /dev/null and b/kn-IN/images/step4-image.png differ diff --git a/kn-IN/images/studio-example.png b/kn-IN/images/studio-example.png new file mode 100644 index 000000000..f91ad3daa Binary files /dev/null and b/kn-IN/images/studio-example.png differ diff --git a/kn-IN/images/tshirt.png b/kn-IN/images/tshirt.png new file mode 100644 index 000000000..9e5481d85 Binary files /dev/null and b/kn-IN/images/tshirt.png differ diff --git a/kn-IN/images/upgrade-image.png b/kn-IN/images/upgrade-image.png new file mode 100644 index 000000000..57b6f29d1 Binary files /dev/null and b/kn-IN/images/upgrade-image.png differ diff --git a/kn-IN/images/vending.png b/kn-IN/images/vending.png new file mode 100644 index 000000000..deb1d50d3 Binary files /dev/null and b/kn-IN/images/vending.png differ diff --git a/kn-IN/meta.yml b/kn-IN/meta.yml new file mode 100644 index 000000000..6041ea009 --- /dev/null +++ b/kn-IN/meta.yml @@ -0,0 +1,37 @@ +--- +title: ದಯವಿಟ್ಟು ಮುಂದಿನ ಗ್ರಾಹಕರು +hero_image: images/banner.png +description: A shop simulation project where the customer can buy items. +meta_title: Scratch coding projects for kids and teens | Next customer please +meta_description: Learn Scratch with the Raspberry Pi Foundation's coding projects for kids and teens. Make a Scratch app where the customer can buy items from your shop. +version: 4 +listed: true +copyedit: false +last_tested: "2021-03-26" +steps: + - + title: ಪರಿಚಯ + - + title: Your shop + - + title: Items for sale + completion: + - engaged + - + title: Purchases + completion: + - internal + - + title: ತ್ವರಿತ ರಸಪ್ರಶ್ನೆ + knowledge_quiz: + path: quiz1 + version: 1 + questions: 3 + passing_score: 3 + completion: + - external + - + title: ನಿಮ್ಮ ಪ್ರಾಜೆಕ್ಟ್‌ ಅಪ್‌ಗ್ರೇಡ್‌ ಮಾಡಿ + challenge: true + - + title: ಹಂಚಿಕೊಳ್ಳಿ diff --git a/kn-IN/quiz1/question_1.md b/kn-IN/quiz1/question_1.md new file mode 100644 index 000000000..00563b323 --- /dev/null +++ b/kn-IN/quiz1/question_1.md @@ -0,0 +1,72 @@ +## ತ್ವರಿತ ರಸಪ್ರಶ್ನೆ + +ಮೂರು ಪ್ರಶ್ನೆಗಳಿಗೆ ಉತ್ತರಿಸಿ. ಸರಿಯಾದ ಉತ್ತರಕ್ಕಾಗಿ ನಿಮಗೆ ಮಾರ್ಗದರ್ಶನ ನೀಡುವ ಸುಳಿವುಗಳಿವೆ. + +When you have answered each question, click on **Check my answer**. + +ಆನಂದಿಸಿ! + +--- question --- + +--- +legend: Question 1 of 3 +--- + +A shop project uses a `total`{:class="block3variables"} variable to store the total for each customer. + ++ A customer adds items that total `50` and pays ++ A new customer adds items that total `40` but the `total`{:class="block3variables"} is now showing as `90` for the second customer + +Which block would you need to add to the payment script to make the total go back to `0` when each customer pays? + +--- choices --- + +- ( ) +```blocks3 +change [total v] by [0] +``` + + --- feedback --- + +Not quite, `total`{:class="block3variables"} should be `0` after a customer pays, but it is not the `change`{:class="block3variables"} block you need. + + --- /feedback --- + +- ( ) +```blocks3 +set [total v] to [40] +``` + + --- feedback --- + + Not quite, this would work for the second customer but the `total`{:class="block3variables"} would be wrong for other customers. + + --- /feedback --- + +- (x) + +```blocks3 +set [total v] to [0] +``` + + --- feedback --- + +ಹೌದು, ಅದು ಸರಿಯಾಗಿದೆ. You need to `set`{:class="block3variables"} the `total`{:class="block3variables"} to `0` after each customer pays. + + --- /feedback --- + +- ( ) + +```blocks3 +change [total v] by [-50] +``` + + --- feedback --- + +That would work for this example, but what if the first customer spent a different amount? Your solution needs to work when the previous customer spends different amounts. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/kn-IN/quiz1/question_2.md b/kn-IN/quiz1/question_2.md new file mode 100644 index 000000000..dc5ac6354 --- /dev/null +++ b/kn-IN/quiz1/question_2.md @@ -0,0 +1,63 @@ + +--- question --- + +--- +legend: Question 2 of 3 +--- + +In a shop, the **seller** has this code in the checkout script: + +```blocks3 +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds +else +say [Sorry to hear that.] for [2] seconds +end +``` + +When the code runs, the user types the answer 'great'. What will the **seller** sprite say? + +![An 'ask' box with the word 'great' typed in.](images/quiz2.png) + +--- choices --- + +- (x) The **Seller** will say `Sorry to hear that.` + + --- feedback --- + + ಹೌದು. Humans know that 'great' means the same as 'good', but the '=' checks whether the letters are the same. + + The **condition** `answer`{:class="block3sensing"} = `good` is 'false' so the `say`{:class="block3looks"} block in the `else`{:class="block3control"} part will run. + + --- /feedback --- + +- ( ) The **seller** will say `That's fantastic!` + + --- feedback --- + +No, only the exact answer `good` will make the **seller** say `That's fantastic!`. Look at the code again to see what message the **seller** will say for all answers that are not `good`. + +**Tip:** 'Good' or 'GOOD' would match 'good'. + + --- /feedback --- + +- ( ) The **seller** won't say anything. + + --- feedback --- + +No, the **seller** will always say something. Look carefully at the code to see what the message will be. + + --- /feedback --- + +- ( ) The **seller** will say `great`. + + --- feedback --- + +No, the **customer** typed the answer 'great' but the **seller** does not say the answer. Look carefully at the code to see what the message will be. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/kn-IN/quiz1/question_3.md b/kn-IN/quiz1/question_3.md new file mode 100644 index 000000000..af2e0a778 --- /dev/null +++ b/kn-IN/quiz1/question_3.md @@ -0,0 +1,48 @@ + +--- question --- + +--- +legend: Question 3 of 3 +--- + +Your project is not working. What should you do? + +--- choices --- + +- ( ) Panic! + + --- feedback --- + + That's not going to help. You need to think clearly to fix coding problems. + + --- /feedback --- + +- ( ) Give up + + --- feedback --- + + There are lots of things you could try. Great coders often get things wrong the first time and learn a lot from their mistakes. + + --- /feedback --- + +- (x) Read the code carefully and try to debug it. + + --- feedback --- + + ಹೌದು. Fixing bugs is part of coding. The more you practise the more experience you get, and the easier it becomes to find and fix bugs. + + --- /feedback --- + +- ( ) Get annoyed with the computer + + --- feedback --- + +A computer only does what we tell it to do, so getting annoyed with it isn't logical. + +Being annoyed won't help to solve the problem, as it will make it harder to think clearly. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/kn-IN/scratch-comments.txt b/kn-IN/scratch-comments.txt new file mode 100644 index 000000000..c5fe4c8c8 --- /dev/null +++ b/kn-IN/scratch-comments.txt @@ -0,0 +1,9 @@ +type the name of your business + +your business name + +use the name of your Container sprite + +start position + +previous customer takes the bag diff --git a/kn-IN/scratch-translatable.txt b/kn-IN/scratch-translatable.txt new file mode 100644 index 000000000..f882b1dea --- /dev/null +++ b/kn-IN/scratch-translatable.txt @@ -0,0 +1,49 @@ +ಹೆಸರು + +my shop + +next customer + +Next customer please! + +total + +That will be + +Thanks for shopping at + +Would you like to pay or cancel? + +pay + +cancel + +Ok. No problem + +Click on the items you'd like + +Did you find everything you wanted today? + +ಹೌದು + +That's fantastic! + +Maybe I should add more items to my shop + +Bag + +1 scoop + +cone + +shop + +ಸರಿ + +false + +How are you today? + +good + +Sorry to hear that. diff --git a/kn-IN/solutions/Cool Shirts.sb3 b/kn-IN/solutions/Cool Shirts.sb3 new file mode 100644 index 000000000..fdc5852be Binary files /dev/null and b/kn-IN/solutions/Cool Shirts.sb3 differ diff --git a/kn-IN/solutions/Fresh Space Fruit.sb3 b/kn-IN/solutions/Fresh Space Fruit.sb3 new file mode 100644 index 000000000..bbbe9eaac Binary files /dev/null and b/kn-IN/solutions/Fresh Space Fruit.sb3 differ diff --git a/kn-IN/solutions/Vending machine.sb3 b/kn-IN/solutions/Vending machine.sb3 new file mode 100644 index 000000000..42dec16a7 Binary files /dev/null and b/kn-IN/solutions/Vending machine.sb3 differ diff --git a/kn-IN/solutions/ice cream shop.sb3 b/kn-IN/solutions/ice cream shop.sb3 new file mode 100644 index 000000000..d6322242c Binary files /dev/null and b/kn-IN/solutions/ice cream shop.sb3 differ diff --git a/kn-IN/step_1.md b/kn-IN/step_1.md new file mode 100644 index 000000000..0faada731 --- /dev/null +++ b/kn-IN/step_1.md @@ -0,0 +1,52 @@ +## ಪರಿಚಯ + +Make a shop app where the customer can buy items from your shop. The project will be in first-person view where the player is a customer. + +--- no-print --- + +Click on Space Fruit to buy them and watch the total go up. When you're ready, click on Kiran to check out. + ++ What happens if you try to checkout before you have chosen any fruit? ++ How do you think the project knows that you haven't added any fruit yet? + +
+**Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +
+ +
+
+ +### ಕಲ್ಪನೆಗಳನ್ನು ಪಡೆಯಿರಿ 💭 + +Click on the **seller** sprites to buy items: + +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +
+ +
+ +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +
+ +
+ +**⭐ Pride pins** (featured community project) + +Click on the pride pin badges to add them to your shopping bag: + +
+ +
+ +--- /no-print --- + +--- print-only --- + +### ಕಲ್ಪನೆಗಳನ್ನು ಪಡೆಯಿರಿ 💭 + +ನಿಮ್ಮ ಪಾತ್ರವನ್ನು ರಚಿಸಲು ನೀವು ಕೆಲವು ವಿನ್ಯಾಸ ನಿರ್ಧಾರಗಳನ್ನು ತೆಗೆದುಕೊಳ್ಳಲಿದ್ದೀರಿ. See inside example projects in the Scratch 2: Next customer please! Scratch studio at https://scratch.mit.edu/studios/29611454 + +![Example project](images/fruit.png) ![Example project](images/tshirt.png) ![Example project](images/icecream.png) ![Example project](images/vending.png) + +--- /print-only --- + diff --git a/kn-IN/step_2.md b/kn-IN/step_2.md new file mode 100644 index 000000000..6f4ffcd68 --- /dev/null +++ b/kn-IN/step_2.md @@ -0,0 +1,80 @@ +## Your shop + +
+
+What is your shop idea? It could be something realistic, something from a book or movie you like, or something completely silly. +
+
+![](images/step2-image.png){:width="300px"} +
+
+ +--- task --- + +[new Scratch project](http://rpf.io/scratch-new){:target="_blank"} ತೆರೆಯಿರಿ ಮತ್ತು ನೀವು ಬಳಸಬಹುದಾದ ಸ್ಪ್ರೈಟ್‌ಗಳು ಮತ್ತು ಬ್ಯಾಕ್‌ಡ್ರಾಪ್‌ಗಳ ವ್ಯಾಪ್ತಿಯನ್ನು ನೋಡಿ. Spend some time thinking about your shop idea. + +--- /task --- + +--- task --- + +**Choose a Backdrop** or paint your own backdrop. + +![](images/choose-backdrop-icon.png) + ++ A backdrop from the Scratch library, or a plain coloured backdrop + +--- /task --- + +--- task --- + +**Choose a Sprite** and add or paint extra scenery sprites. + +![](images/choose-sprite-icon.png) + +--- /task --- + +--- task --- + +Add more scenery. ++ A desk, counter, or window to sell from ++ A shelf or bookcase to put items on — you could Paint this on the backdrop + +--- /task --- + +--- task --- + +Add a sprite to represent the seller. + +You could choose: ++ A person or non-player character such as a shopkeeper, farmer, or librarian ++ A machine such as a vending machine, jukebox, or cash register + +![](images/choose-sprite-icon.png) + +--- /task --- + +### Welcome your first customer. + +--- task --- + +Click on your **seller** sprite and add a `broadcast`{:class="block3events"} block. Create a new message called `next customer`. + +```blocks3 +when flag clicked ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +Create a new script for your **seller** sprite to `say`{:class="block3looks"} `Next customer please` when they receive the `broadcast`{:class="block3events"} `next customer`{:class="block3events"}. + +```blocks3 +when I receive [next customer v] +say [Next customer please!] for (2) seconds +``` + +--- /task --- + +--- save --- diff --git a/kn-IN/step_3.md b/kn-IN/step_3.md new file mode 100644 index 000000000..cefd59165 --- /dev/null +++ b/kn-IN/step_3.md @@ -0,0 +1,128 @@ +## Items for sale + +
+
+Your shop needs items for sale. Each item will have a price that will be added to a `total`{:class="block3variables"} variable. +
+
+![](images/step3-image.png){:width="300px"} +
+
+ +You will need to keep track of how much your customer is spending. + +--- task --- + +Add a new variable called `total`{:class="block3variables"} for all sprites. + +Click on your **seller** sprite and add a script to `set`{:class="block3variables"} the `total`{:class="block3variables"} to `0` when the project starts. + +[[[scratch3-create-set-variable]]] + +--- /task --- + +What **items** will your customer(s) be buying? ++ Some kind of food or drink ++ Sports equipment, toys, or gadgets ++ Magic wands, potions, or spell books ++ Clothing or other fashion items ++ Your own idea + +--- task --- + +Add a sprite for the first **item** you're going to sell in your shop. + +If you like, you can add a price to the costume using the text tool in the Paint editor. Or add a price to the backdrop and position the item next to it. + +![Examples of items with amounts written next to them.](images/item-amounts.png) + +--- /task --- + +--- task --- + +Add a script to `change`{:class="block3variables"} the `total`{:class="block3variables"} by the price of your item when the customer clicks on the sprite. + +--- collapse --- +--- +title: Click to add an item +--- + +```blocks3 +when this sprite clicked +start sound (Coin v) +change [total v] by [10] +``` + +--- /collapse --- + +It's also a good idea to `play a sound`{:class="block3sound"} to give the customer feedback that they have added an item. + +![The add a sound icon](images/add-sound.png) + +[[[scratch3-add-sound]]] + +--- /task --- + +--- task --- + +**Test:** Click on your item and check that the value of the `total`{:class="block3variables"} variable increases by the price of the item, and you hear the sound effect. Click more times to see the total go up. + +Click the green flag to start your project and make sure that the `total`{:class="block3variables"} starts at `0`. + +--- /task --- + +--- task --- + +Add more items to your shop. + +You can either: ++ Duplicate the first item and then add a new costume in the Paint editor ++ Add a sprite and then drag the `when flag clicked`{:class="block3events"} script from the first item to your new item + +Add a price label to the costume or backdrop if you are using them. + +--- /task --- + +--- task --- + +Click on your new **Item** sprite in the Sprite list then click on the **Code** tab. + +Change the amount the `total`{:class="block3variables"} changes by to the price of your new item. + +--- /task --- + +--- task --- + +**Test:** Click the green flag to start your project and click on items to add them. Check that the total increases by the correct amount each time you click on an item. + +If you have added price labels, make sure they match the amount that gets added to the `total`{:class="block3variables"}, or your customers will be confused! + +--- /task --- + +--- task --- + +**Debug:** ನಿಮ್ಮ ಪ್ರಾಜೆಕ್ಟ್‌ನಲ್ಲಿ ನೀವು ಸರಿಪಡಿಸಬೇಕಾದ ಕೆಲವು ದೋಷಗಳನ್ನು ನೀವು ಕಾಣಬಹುದು. Here are some common bugs. + +--- collapse --- +--- +title: The total doesn't go to 0 when I click the green flag +--- + +Check that you have set the start value of the `total`{:class="block3variables"} variable in the `when flag clicked`{:class="block3events"} script on your **seller** sprite. + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't increase by the correct amount when I click on an item +--- + +Check that each item has a `when this sprite clicked`{:class="block3events"} script that changes the `total`{:class="block3variables"} by the correct amount for that item — you might have changed the price for the wrong sprite. + +Check that you have used the `change`{:class="block3variables"} block and not the `set`{:class="block3variables"} block to change the `total`{:class="block3variables"}. You need to use `change`{:class="block3variables"} to add the price to the total, you don't want to set the total to the price of the item that was just added. + +--- /collapse --- + +--- /task --- + +--- save --- diff --git a/kn-IN/step_4.md b/kn-IN/step_4.md new file mode 100644 index 000000000..830a943a9 --- /dev/null +++ b/kn-IN/step_4.md @@ -0,0 +1,141 @@ +## Purchases + +
+
+ +The **seller** sprite needs to: +- ask if the customer is ready to pay for the items +- take payment +- get ready for the next customer +
+
+![](images/step4-image.png){:width="300px"} +
+
+ +When they have finished choosing items, the customer will click on the **seller** sprite to pay. + +--- task --- + + Tell the customer how much their items will cost. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +``` + +--- /task --- + +--- task --- + +Add a payment sound to your **seller** sprite so the customer knows that payment is taking place. + +![The add a sound icon](images/add-sound.png) + +[[[scratch3-add-sound]]] + +Add the `play sound until done`{:class="block3sound"} block to your script. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ play sound [machine v] until done +``` + +--- /task --- + +--- task --- + +Finish the sale. Set `total`{:class="block3variables"} back to `0` after payment, `say`{:class="block3looks"} goodbye and `broadcast`{:class="block3control"} `next customer`{:class="block3control"}. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +play sound [machine v] until done ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +**Test:** Test your project and make sure: +- The customer can check out with the correct sound effects +- The `total`{:class="block3variables"} gets set back to `0` after a customer pays or cancels. + +--- /task --- + + +--- task --- + +**Debug:** ನಿಮ್ಮ ಪ್ರಾಜೆಕ್ಟ್‌ನಲ್ಲಿ ನೀವು ಸರಿಪಡಿಸಬೇಕಾದ ಕೆಲವು ದೋಷಗಳನ್ನು ನೀವು ಕಾಣಬಹುದು. + +ಕೆಲವು ಸಾಮಾನ್ಯ ದೋಷಗಳು ಇಲ್ಲಿವೆ: + +--- collapse --- +--- +title: The seller doesn't do anything when I click on them +--- + +You have quite a lot of sprites in your project. Make sure the `when this sprite clicked`{:class="block3events"} script is on your **seller** sprite. + +**Tip:** If you have added it to the wrong sprite, you can drag the code to the **seller** sprite, then delete it from the other sprite. + +--- /collapse --- + +--- collapse --- +--- +title: The words in the say blocks merge together +--- + +When you `join`{:class="block3operators"} two pieces together, you need to add a space at the end of your first piece of text or at the beginning of your second piece of text. + +These have a space at the end of the first part of the join: + +```blocks3 +say {join [That will be ](total)} for (2) seconds + +say {join [Thanks for shopping at ](name)} for (2) seconds +``` + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't reset after a sale +--- + +Check that you have used: + +```blocks3 +set [total v] to (0) +``` + +**not**: + +```blocks3 +change [total v] by (0) +``` + +--- /collapse --- + +--- collapse --- +--- +title: The seller isn't responding +--- + +Make sure the `operator`{:class="block3operators"} in the `if`{:class="block3control"} condition is the greater than symbol `>`{:class="block3operators"}. + +```blocks3 +if <(total) > [0]> then +``` + +--- /collapse --- + +**Tip:** Compare your code with the code examples. Are there any differences that shouldn't be there? + +--- /task --- + +--- save --- diff --git a/kn-IN/step_5.md b/kn-IN/step_5.md new file mode 100644 index 000000000..2c375e9a8 --- /dev/null +++ b/kn-IN/step_5.md @@ -0,0 +1 @@ +## ತ್ವರಿತ ರಸಪ್ರಶ್ನೆ \ No newline at end of file diff --git a/kn-IN/step_6.md b/kn-IN/step_6.md new file mode 100644 index 000000000..ac343738f --- /dev/null +++ b/kn-IN/step_6.md @@ -0,0 +1,230 @@ +## ನಿಮ್ಮ ಪ್ರಾಜೆಕ್ಟ್‌ ಅಪ್‌ಗ್ರೇಡ್‌ ಮಾಡಿ + +
+
+There are lots of features you could add to improve your customers' shopping experience. You don't need to add everything. Just add improvements that you think are important. +
+
+![](images/customer-count.png){:width="300px"} +
+
+ +--- task --- + +Add more items to sell. + +--- /task --- + +--- task --- + +Add more graphic and sound effects. + +--- /task --- + +--- task --- + +Paint your own scenery and other costumes. + +--- /task --- + +--- task --- + +Make another business and allow players to visit them both. + +--- /task --- + +Each example project in the [Introduction](.) has a ‘See Inside’ link for you to open the project in Scratch, and look at the code to get ideas and see how they work. You can 'See inside' the example projects to look at how they work. + +Example projects: **Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Vending machine**: [See inside](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} + +**Tip:** If you are logged in to a Scratch account, then you can use the **Backpack** to copy scripts or sprites to your project. + +[[[scratch-backpack]]] + +### Chatty checkout! + +Your checkout person (or machine) could ask whether the service was good, or if the customer is having a nice day. + +--- task --- + +Add `ask`{:class="block3sensing"} blocks to your **seller**'s `when this sprite clicked`{:class="block3events"} script and `say`{:class="block3looks"} different things depending on the customer's response. + +--- collapse --- + +--- +title: Ask and respond to questions +--- + +```blocks3 +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds +else +say [Maybe I should add more items to my shop] for [2] seconds +end +``` + +**Debug:** Check that you have spelled the options correctly in your code and in your answer. It's OK if you use capital letters, so "Yes" and "YES" will match "yes". + +Add multiple questions to create a chatbot or non-player character that you can talk to. + +--- /collapse --- + +--- /task --- + +### Bag the items + +--- task --- + +The Cool Shirts project has shirts that glide into a bag. + +--- collapse --- + +--- +title: Make items glide into a container +--- + +Add a **Container** sprite. You could use an existing sprite like the **Gift** or **Take out** sprite, or paint your own with simple shapes. + +Add a script to make the **Container** always appear at the front: + +```blocks3 +when flag clicked +forever +go to [front v] layer +end +``` + +Then you'll need to add code to each **Item** you have for sale to make them glide to the container when they are clicked: + +```blocks3 +when this sprite clicked ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite ++hide +change [total v] by [12] ++go to x: [-180] y: [68] // start position ++show +``` + +If you don't want the container there all the time, you can add scripts to make it show and hide at the right time: + +```blocks3 +when I receive [next customer v] +hide // previous customer takes the bag +wait [1] seconds +show +``` + +**Test:** Try your project and make sure items glide to the container and hide. + +**Debug:** Check your scripts carefully and make sure you have updated all of your **Item** sprites. You can look at [Cool Shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} if you need to see a working example. + +--- /collapse --- + +--- /task --- + +###  Stop adding items when the customer is at the checkout + +--- task --- + +Add a `shop`{:class="block3variables"} variable and use it to control when items can be added. + +--- collapse --- + +--- +title: Stop purchases when the customer is at the checkout +--- + +Add a `variable`{:class="block3variables"} called `shop` for all sprites. You will set this to `true` when the customer is in the shop and `false` when they are at the checkout. + +Select your **seller** sprite. Update the `when flag clicked`{:class="block3events"} script to allow shopping when your project starts: + +```blocks3 ++set [shop v] to [true] +``` + +Now add a block to change the `shop`{:class="block3variables"} to `false` at the beginning of your **seller**'s `when this sprite clicked`{:class="block3events"} script: + +```blocks3 ++set [shop v] to [false] +``` + +And a block to set the `shop`{:class="block3variables"} variable back to `true` at the end of the same script: + +```blocks3 ++set [shop v] to [true] +``` + +Now you need to update the items you sell to check the `shop`{:class="block3variables"} variable: + +```blocks3 +when this sprite clicked ++if <(shop) = [true]> then +start sound (Coin v) +change [total v] by [10] +end +``` +You will need to do this for every item you sell in your shop. + +**Test:** Click the green flag then try shopping. Check that you can still add items and checkout, but you can't add items once you have started checking out. + +**Debug:** Check your code really carefully. You can look at the [Space Fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project if you need to see a working example. + +--- /collapse --- + +--- /task --- + +--- task --- + +### Give the customer the option to cancel their shopping. + +--- collapse --- + +--- +title: Set up pay and cancel options +--- + +`Ask`{:class="block3sensing"} `Would you like to pay or cancel?`. Add an `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `pay` and inside it put your existing payment blocks. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end +``` + +Add a second `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `cancel` and inside it add code to cancel the order. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] +end +``` + +--- /collapse --- + +--- /task --- + +Take a look at our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio to see projects created by community members. + +--- save --- diff --git a/kn-IN/step_7.md b/kn-IN/step_7.md new file mode 100644 index 000000000..b9793dd06 --- /dev/null +++ b/kn-IN/step_7.md @@ -0,0 +1,9 @@ +## ಹಂಚಿಕೊಳ್ಳಿ + +If you are in a club, why not share your project with friends? + +ನಿಮ್ಮ ಯೋಜನೆಯೊಂದಿಗೆ ರಾಸ್ಪ್ಬೆರಿ ಪೈ ಫೌಂಡೇಶನ್ ಸಮುದಾಯವನ್ನು ಪ್ರೇರೇಪಿಸಿ! + +To submit your project to our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio, please complete [this form](https://form.raspberrypi.org/f/community-project-submissions){:target="_blank"}. + +![Example shop projects in the 'Intergalactic shopping market' Scratch studio.](images/studio-example.png) diff --git a/kn-IN/step_8.md b/kn-IN/step_8.md new file mode 100644 index 000000000..482ba5b56 --- /dev/null +++ b/kn-IN/step_8.md @@ -0,0 +1,21 @@ +## What can you do now? + +If you are following the [More Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch) path, you can move on to the [Don't fall in](https://projects.raspberrypi.org/en/projects/dont-fall-in) project. In this project, you will make a top-down game where you have to jump from platform to platform and not fall in. + +--- print-only --- + +![Don't fall in project](images/dont-fall-in-project.png) + +--- /print-only --- + +--- no-print --- + +
+ +
+ +**Instructions:** Press space or tap the Stage to jump. + +--- /no-print --- + +If you want to have more fun exploring Scratch, then you could try out any of [these projects](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). diff --git a/mr-IN/images/add-friend-projects.png b/mr-IN/images/add-friend-projects.png new file mode 100644 index 000000000..3ad5bafed Binary files /dev/null and b/mr-IN/images/add-friend-projects.png differ diff --git a/mr-IN/images/add-sound.png b/mr-IN/images/add-sound.png new file mode 100644 index 000000000..123e3628f Binary files /dev/null and b/mr-IN/images/add-sound.png differ diff --git a/mr-IN/images/add-your-projects.png b/mr-IN/images/add-your-projects.png new file mode 100644 index 000000000..016bd757d Binary files /dev/null and b/mr-IN/images/add-your-projects.png differ diff --git a/mr-IN/images/banner.png b/mr-IN/images/banner.png new file mode 100644 index 000000000..f9ac6e053 Binary files /dev/null and b/mr-IN/images/banner.png differ diff --git a/mr-IN/images/choose-backdrop-icon.png b/mr-IN/images/choose-backdrop-icon.png new file mode 100644 index 000000000..6d7d7e298 Binary files /dev/null and b/mr-IN/images/choose-backdrop-icon.png differ diff --git a/mr-IN/images/choose-sprite-icon.png b/mr-IN/images/choose-sprite-icon.png new file mode 100644 index 000000000..7b04d235d Binary files /dev/null and b/mr-IN/images/choose-sprite-icon.png differ diff --git a/mr-IN/images/create-studio.png b/mr-IN/images/create-studio.png new file mode 100644 index 000000000..0ce2440f2 Binary files /dev/null and b/mr-IN/images/create-studio.png differ diff --git a/mr-IN/images/customer-count.png b/mr-IN/images/customer-count.png new file mode 100644 index 000000000..e2c6ce61a Binary files /dev/null and b/mr-IN/images/customer-count.png differ diff --git a/mr-IN/images/dont-fall-in-project.png b/mr-IN/images/dont-fall-in-project.png new file mode 100644 index 000000000..003a7787c Binary files /dev/null and b/mr-IN/images/dont-fall-in-project.png differ diff --git a/mr-IN/images/example-strip.png b/mr-IN/images/example-strip.png new file mode 100644 index 000000000..cecace153 Binary files /dev/null and b/mr-IN/images/example-strip.png differ diff --git a/mr-IN/images/fruit.png b/mr-IN/images/fruit.png new file mode 100644 index 000000000..74b78e59a Binary files /dev/null and b/mr-IN/images/fruit.png differ diff --git a/mr-IN/images/icecream.png b/mr-IN/images/icecream.png new file mode 100644 index 000000000..c72e20f83 Binary files /dev/null and b/mr-IN/images/icecream.png differ diff --git a/mr-IN/images/item-amounts.png b/mr-IN/images/item-amounts.png new file mode 100644 index 000000000..9e6430405 Binary files /dev/null and b/mr-IN/images/item-amounts.png differ diff --git a/mr-IN/images/large-readout.png b/mr-IN/images/large-readout.png new file mode 100644 index 000000000..a3859b991 Binary files /dev/null and b/mr-IN/images/large-readout.png differ diff --git a/mr-IN/images/my-stuff-menu.png b/mr-IN/images/my-stuff-menu.png new file mode 100644 index 000000000..ad6992761 Binary files /dev/null and b/mr-IN/images/my-stuff-menu.png differ diff --git a/mr-IN/images/naming-studio.png b/mr-IN/images/naming-studio.png new file mode 100644 index 000000000..dc25e716e Binary files /dev/null and b/mr-IN/images/naming-studio.png differ diff --git a/mr-IN/images/new-variable.png b/mr-IN/images/new-variable.png new file mode 100644 index 000000000..d937fdd8a Binary files /dev/null and b/mr-IN/images/new-variable.png differ diff --git a/mr-IN/images/quiz2.png b/mr-IN/images/quiz2.png new file mode 100644 index 000000000..b5fe0cfb0 Binary files /dev/null and b/mr-IN/images/quiz2.png differ diff --git a/mr-IN/images/sprite-pane-size.png b/mr-IN/images/sprite-pane-size.png new file mode 100644 index 000000000..568608788 Binary files /dev/null and b/mr-IN/images/sprite-pane-size.png differ diff --git a/mr-IN/images/step2-image.png b/mr-IN/images/step2-image.png new file mode 100644 index 000000000..f52394751 Binary files /dev/null and b/mr-IN/images/step2-image.png differ diff --git a/mr-IN/images/step3-image.png b/mr-IN/images/step3-image.png new file mode 100644 index 000000000..441189fec Binary files /dev/null and b/mr-IN/images/step3-image.png differ diff --git a/mr-IN/images/step4-image.png b/mr-IN/images/step4-image.png new file mode 100644 index 000000000..c92bc3b0b Binary files /dev/null and b/mr-IN/images/step4-image.png differ diff --git a/mr-IN/images/studio-example.png b/mr-IN/images/studio-example.png new file mode 100644 index 000000000..f91ad3daa Binary files /dev/null and b/mr-IN/images/studio-example.png differ diff --git a/mr-IN/images/tshirt.png b/mr-IN/images/tshirt.png new file mode 100644 index 000000000..9e5481d85 Binary files /dev/null and b/mr-IN/images/tshirt.png differ diff --git a/mr-IN/images/upgrade-image.png b/mr-IN/images/upgrade-image.png new file mode 100644 index 000000000..57b6f29d1 Binary files /dev/null and b/mr-IN/images/upgrade-image.png differ diff --git a/mr-IN/images/vending.png b/mr-IN/images/vending.png new file mode 100644 index 000000000..deb1d50d3 Binary files /dev/null and b/mr-IN/images/vending.png differ diff --git a/mr-IN/meta.yml b/mr-IN/meta.yml new file mode 100644 index 000000000..ab40a61a2 --- /dev/null +++ b/mr-IN/meta.yml @@ -0,0 +1,37 @@ +--- +title: पुढील ग्राहक +hero_image: images/banner.png +description: A shop simulation project where the customer can buy items. +meta_title: Scratch coding projects for kids and teens | Next customer please +meta_description: Learn Scratch with the Raspberry Pi Foundation's coding projects for kids and teens. Make a Scratch app where the customer can buy items from your shop. +version: 0 +listed: true +copyedit: false +last_tested: "2021-03-26" +steps: + - + title: परिचय + - + title: Your shop + - + title: Items for sale + completion: + - engaged + - + title: Purchases + completion: + - internal + - + title: जलद प्रश्नमंजुषा + knowledge_quiz: + path: quiz1 + version: 1 + questions: 3 + passing_score: 3 + completion: + - external + - + title: तुमचा प्रोजेक्ट अपग्रेड करा + challenge: true + - + title: शेअर करा diff --git a/mr-IN/quiz1/question_1.md b/mr-IN/quiz1/question_1.md new file mode 100644 index 000000000..25bbb2460 --- /dev/null +++ b/mr-IN/quiz1/question_1.md @@ -0,0 +1,72 @@ +## जलद प्रश्नमंजुषा + +तीन प्रश्नांची उत्तरे द्या. तुम्हाला योग्य उत्तरासाठी मार्गदर्शन करण्यासाठी सूचना आहेत. + +When you have answered each question, click on **Check my answer**. + +मजा करा! + +--- question --- + +--- +legend: Question 1 of 3 +--- + +A shop project uses a `total`{:class="block3variables"} variable to store the total for each customer. + ++ A customer adds items that total `50` and pays ++ A new customer adds items that total `40` but the `total`{:class="block3variables"} is now showing as `90` for the second customer + +Which block would you need to add to the payment script to make the total go back to `0` when each customer pays? + +--- choices --- + +- ( ) +```blocks3 +change [total v] by [0] +``` + + --- feedback --- + +Not quite, `total`{:class="block3variables"} should be `0` after a customer pays, but it is not the `change`{:class="block3variables"} block you need. + + --- /feedback --- + +- ( ) +```blocks3 +set [total v] to [40] +``` + + --- feedback --- + + Not quite, this would work for the second customer but the `total`{:class="block3variables"} would be wrong for other customers. + + --- /feedback --- + +- (x) + +```blocks3 +set [total v] to [0] +``` + + --- feedback --- + +हो, ते बरोबर आहे. You need to `set`{:class="block3variables"} the `total`{:class="block3variables"} to `0` after each customer pays. + + --- /feedback --- + +- ( ) + +```blocks3 +change [total v] by [-50] +``` + + --- feedback --- + +That would work for this example, but what if the first customer spent a different amount? Your solution needs to work when the previous customer spends different amounts. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/mr-IN/quiz1/question_2.md b/mr-IN/quiz1/question_2.md new file mode 100644 index 000000000..2fc3fd196 --- /dev/null +++ b/mr-IN/quiz1/question_2.md @@ -0,0 +1,63 @@ + +--- question --- + +--- +legend: Question 2 of 3 +--- + +In a shop, the **seller** has this code in the checkout script: + +```blocks3 +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds +else +say [Sorry to hear that.] for [2] seconds +end +``` + +When the code runs, the user types the answer 'great'. What will the **seller** sprite say? + +![An 'ask' box with the word 'great' typed in.](images/quiz2.png) + +--- choices --- + +- (x) The **Seller** will say `Sorry to hear that.` + + --- feedback --- + + हो. Humans know that 'great' means the same as 'good', but the '=' checks whether the letters are the same. + + The **condition** `answer`{:class="block3sensing"} = `good` is 'false' so the `say`{:class="block3looks"} block in the `else`{:class="block3control"} part will run. + + --- /feedback --- + +- ( ) The **seller** will say `That's fantastic!` + + --- feedback --- + +No, only the exact answer `good` will make the **seller** say `That's fantastic!`. Look at the code again to see what message the **seller** will say for all answers that are not `good`. + +**Tip:** 'Good' or 'GOOD' would match 'good'. + + --- /feedback --- + +- ( ) The **seller** won't say anything. + + --- feedback --- + +No, the **seller** will always say something. Look carefully at the code to see what the message will be. + + --- /feedback --- + +- ( ) The **seller** will say `great`. + + --- feedback --- + +No, the **customer** typed the answer 'great' but the **seller** does not say the answer. Look carefully at the code to see what the message will be. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/mr-IN/quiz1/question_3.md b/mr-IN/quiz1/question_3.md new file mode 100644 index 000000000..f887a0a56 --- /dev/null +++ b/mr-IN/quiz1/question_3.md @@ -0,0 +1,48 @@ + +--- question --- + +--- +legend: Question 3 of 3 +--- + +Your project is not working. What should you do? + +--- choices --- + +- ( ) Panic! + + --- feedback --- + + That's not going to help. You need to think clearly to fix coding problems. + + --- /feedback --- + +- ( ) Give up + + --- feedback --- + + There are lots of things you could try. Great coders often get things wrong the first time and learn a lot from their mistakes. + + --- /feedback --- + +- (x) Read the code carefully and try to debug it. + + --- feedback --- + + हो. Fixing bugs is part of coding. The more you practise the more experience you get, and the easier it becomes to find and fix bugs. + + --- /feedback --- + +- ( ) Get annoyed with the computer + + --- feedback --- + +A computer only does what we tell it to do, so getting annoyed with it isn't logical. + +Being annoyed won't help to solve the problem, as it will make it harder to think clearly. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/mr-IN/scratch-comments.txt b/mr-IN/scratch-comments.txt new file mode 100644 index 000000000..c5fe4c8c8 --- /dev/null +++ b/mr-IN/scratch-comments.txt @@ -0,0 +1,9 @@ +type the name of your business + +your business name + +use the name of your Container sprite + +start position + +previous customer takes the bag diff --git a/mr-IN/scratch-translatable.txt b/mr-IN/scratch-translatable.txt new file mode 100644 index 000000000..7e7e18d60 --- /dev/null +++ b/mr-IN/scratch-translatable.txt @@ -0,0 +1,49 @@ +नाव + +my shop + +next customer + +पुढील ग्राहक! + +total + +That will be + +Thanks for shopping at + +Would you like to pay or cancel? + +pay + +cancel + +Ok. No problem + +Click on the items you'd like + +Did you find everything you wanted today? + +होय + +That's fantastic! + +Maybe I should add more items to my shop + +Bag + +1 scoop + +cone + +shop + +सत्य + +false + +How are you today? + +good + +Sorry to hear that. diff --git a/mr-IN/solutions/Cool Shirts.sb3 b/mr-IN/solutions/Cool Shirts.sb3 new file mode 100644 index 000000000..fdc5852be Binary files /dev/null and b/mr-IN/solutions/Cool Shirts.sb3 differ diff --git a/mr-IN/solutions/Fresh Space Fruit.sb3 b/mr-IN/solutions/Fresh Space Fruit.sb3 new file mode 100644 index 000000000..bbbe9eaac Binary files /dev/null and b/mr-IN/solutions/Fresh Space Fruit.sb3 differ diff --git a/mr-IN/solutions/Vending machine.sb3 b/mr-IN/solutions/Vending machine.sb3 new file mode 100644 index 000000000..42dec16a7 Binary files /dev/null and b/mr-IN/solutions/Vending machine.sb3 differ diff --git a/mr-IN/solutions/ice cream shop.sb3 b/mr-IN/solutions/ice cream shop.sb3 new file mode 100644 index 000000000..d6322242c Binary files /dev/null and b/mr-IN/solutions/ice cream shop.sb3 differ diff --git a/mr-IN/step_1.md b/mr-IN/step_1.md new file mode 100644 index 000000000..19fa44ff1 --- /dev/null +++ b/mr-IN/step_1.md @@ -0,0 +1,52 @@ +## परिचय + +Make a shop app where the customer can buy items from your shop. The project will be in first-person view where the player is a customer. + +--- no-print --- + +Click on Space Fruit to buy them and watch the total go up. When you're ready, click on Kiran to check out. + ++ What happens if you try to checkout before you have chosen any fruit? ++ How do you think the project knows that you haven't added any fruit yet? + +
+**Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +
+ +
+
+ +### Get ideas 💭 + +Click on the **seller** sprites to buy items: + +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +
+ +
+ +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +
+ +
+ +**⭐ Pride pins** (featured community project) + +Click on the pride pin badges to add them to your shopping bag: + +
+ +
+ +--- /no-print --- + +--- print-only --- + +### Get ideas 💭 + +You are going to make some design decisions to create your character. See inside example projects in the Scratch 2: Next customer please! Scratch studio at https://scratch.mit.edu/studios/29611454 + +![Example project](images/fruit.png) ![Example project](images/tshirt.png) ![Example project](images/icecream.png) ![Example project](images/vending.png) + +--- /print-only --- + diff --git a/mr-IN/step_2.md b/mr-IN/step_2.md new file mode 100644 index 000000000..fb48837ea --- /dev/null +++ b/mr-IN/step_2.md @@ -0,0 +1,80 @@ +## Your shop + +
+
+What is your shop idea? It could be something realistic, something from a book or movie you like, or something completely silly. +
+
+![](images/step2-image.png){:width="300px"} +
+
+ +--- task --- + +Open a [new Scratch project](http://rpf.io/scratch-new){:target="_blank"} and look at the range of sprites and backdrops that you can use. Spend some time thinking about your shop idea. + +--- /task --- + +--- task --- + +**Choose a Backdrop** or paint your own backdrop. + +![](images/choose-backdrop-icon.png) + ++ A backdrop from the Scratch library, or a plain coloured backdrop + +--- /task --- + +--- task --- + +**Choose a Sprite** and add or paint extra scenery sprites. + +![](images/choose-sprite-icon.png) + +--- /task --- + +--- task --- + +Add more scenery. ++ A desk, counter, or window to sell from ++ A shelf or bookcase to put items on — you could Paint this on the backdrop + +--- /task --- + +--- task --- + +Add a sprite to represent the seller. + +You could choose: ++ A person or non-player character such as a shopkeeper, farmer, or librarian ++ A machine such as a vending machine, jukebox, or cash register + +![](images/choose-sprite-icon.png) + +--- /task --- + +### Welcome your first customer. + +--- task --- + +Click on your **seller** sprite and add a `broadcast`{:class="block3events"} block. Create a new message called `next customer`. + +```blocks3 +when flag clicked ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +Create a new script for your **seller** sprite to `say`{:class="block3looks"} `Next customer please` when they receive the `broadcast`{:class="block3events"} `next customer`{:class="block3events"}. + +```blocks3 +when I receive [next customer v] +say [Next customer please!] for (2) seconds +``` + +--- /task --- + +--- save --- diff --git a/mr-IN/step_3.md b/mr-IN/step_3.md new file mode 100644 index 000000000..8c2e88c47 --- /dev/null +++ b/mr-IN/step_3.md @@ -0,0 +1,128 @@ +## Items for sale + +
+
+Your shop needs items for sale. Each item will have a price that will be added to a `total`{:class="block3variables"} variable. +
+
+![](images/step3-image.png){:width="300px"} +
+
+ +You will need to keep track of how much your customer is spending. + +--- task --- + +Add a new variable called `total`{:class="block3variables"} for all sprites. + +Click on your **seller** sprite and add a script to `set`{:class="block3variables"} the `total`{:class="block3variables"} to `0` when the project starts. + +[[[scratch3-create-set-variable]]] + +--- /task --- + +What **items** will your customer(s) be buying? ++ Some kind of food or drink ++ Sports equipment, toys, or gadgets ++ Magic wands, potions, or spell books ++ Clothing or other fashion items ++ Your own idea + +--- task --- + +Add a sprite for the first **item** you're going to sell in your shop. + +If you like, you can add a price to the costume using the text tool in the Paint editor. Or add a price to the backdrop and position the item next to it. + +![Examples of items with amounts written next to them.](images/item-amounts.png) + +--- /task --- + +--- task --- + +Add a script to `change`{:class="block3variables"} the `total`{:class="block3variables"} by the price of your item when the customer clicks on the sprite. + +--- collapse --- +--- +title: Click to add an item +--- + +```blocks3 +when this sprite clicked +start sound (Coin v) +change [total v] by [10] +``` + +--- /collapse --- + +It's also a good idea to `play a sound`{:class="block3sound"} to give the customer feedback that they have added an item. + +![The add a sound icon](images/add-sound.png) + +[[[scratch3-add-sound]]] + +--- /task --- + +--- task --- + +**Test:** Click on your item and check that the value of the `total`{:class="block3variables"} variable increases by the price of the item, and you hear the sound effect. Click more times to see the total go up. + +Click the green flag to start your project and make sure that the `total`{:class="block3variables"} starts at `0`. + +--- /task --- + +--- task --- + +Add more items to your shop. + +You can either: ++ Duplicate the first item and then add a new costume in the Paint editor ++ Add a sprite and then drag the `when flag clicked`{:class="block3events"} script from the first item to your new item + +Add a price label to the costume or backdrop if you are using them. + +--- /task --- + +--- task --- + +Click on your new **Item** sprite in the Sprite list then click on the **Code** tab. + +Change the amount the `total`{:class="block3variables"} changes by to the price of your new item. + +--- /task --- + +--- task --- + +**Test:** Click the green flag to start your project and click on items to add them. Check that the total increases by the correct amount each time you click on an item. + +If you have added price labels, make sure they match the amount that gets added to the `total`{:class="block3variables"}, or your customers will be confused! + +--- /task --- + +--- task --- + +**Debug:** You might find some bugs in your project that you need to fix. Here are some common bugs. + +--- collapse --- +--- +title: The total doesn't go to 0 when I click the green flag +--- + +Check that you have set the start value of the `total`{:class="block3variables"} variable in the `when flag clicked`{:class="block3events"} script on your **seller** sprite. + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't increase by the correct amount when I click on an item +--- + +Check that each item has a `when this sprite clicked`{:class="block3events"} script that changes the `total`{:class="block3variables"} by the correct amount for that item — you might have changed the price for the wrong sprite. + +Check that you have used the `change`{:class="block3variables"} block and not the `set`{:class="block3variables"} block to change the `total`{:class="block3variables"}. You need to use `change`{:class="block3variables"} to add the price to the total, you don't want to set the total to the price of the item that was just added. + +--- /collapse --- + +--- /task --- + +--- save --- diff --git a/mr-IN/step_4.md b/mr-IN/step_4.md new file mode 100644 index 000000000..7e8467f4a --- /dev/null +++ b/mr-IN/step_4.md @@ -0,0 +1,141 @@ +## Purchases + +
+
+ +The **seller** sprite needs to: +- ask if the customer is ready to pay for the items +- take payment +- get ready for the next customer +
+
+![](images/step4-image.png){:width="300px"} +
+
+ +When they have finished choosing items, the customer will click on the **seller** sprite to pay. + +--- task --- + + Tell the customer how much their items will cost. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +``` + +--- /task --- + +--- task --- + +Add a payment sound to your **seller** sprite so the customer knows that payment is taking place. + +![The add a sound icon](images/add-sound.png) + +[[[scratch3-add-sound]]] + +Add the `play sound until done`{:class="block3sound"} block to your script. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ play sound [machine v] until done +``` + +--- /task --- + +--- task --- + +Finish the sale. Set `total`{:class="block3variables"} back to `0` after payment, `say`{:class="block3looks"} goodbye and `broadcast`{:class="block3control"} `next customer`{:class="block3control"}. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +play sound [machine v] until done ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +**Test:** Test your project and make sure: +- The customer can check out with the correct sound effects +- The `total`{:class="block3variables"} gets set back to `0` after a customer pays or cancels. + +--- /task --- + + +--- task --- + +**Debug:** You might find some bugs in your project that you need to fix. + +Here are some common bugs: + +--- collapse --- +--- +title: The seller doesn't do anything when I click on them +--- + +You have quite a lot of sprites in your project. Make sure the `when this sprite clicked`{:class="block3events"} script is on your **seller** sprite. + +**Tip:** If you have added it to the wrong sprite, you can drag the code to the **seller** sprite, then delete it from the other sprite. + +--- /collapse --- + +--- collapse --- +--- +title: The words in the say blocks merge together +--- + +When you `join`{:class="block3operators"} two pieces together, you need to add a space at the end of your first piece of text or at the beginning of your second piece of text. + +These have a space at the end of the first part of the join: + +```blocks3 +say {join [That will be ](total)} for (2) seconds + +say {join [Thanks for shopping at ](name)} for (2) seconds +``` + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't reset after a sale +--- + +Check that you have used: + +```blocks3 +set [total v] to (0) +``` + +**not**: + +```blocks3 +change [total v] by (0) +``` + +--- /collapse --- + +--- collapse --- +--- +title: The seller isn't responding +--- + +Make sure the `operator`{:class="block3operators"} in the `if`{:class="block3control"} condition is the greater than symbol `>`{:class="block3operators"}. + +```blocks3 +if <(total) > [0]> then +``` + +--- /collapse --- + +**Tip:** Compare your code with the code examples. Are there any differences that shouldn't be there? + +--- /task --- + +--- save --- diff --git a/mr-IN/step_5.md b/mr-IN/step_5.md new file mode 100644 index 000000000..2e8d0f330 --- /dev/null +++ b/mr-IN/step_5.md @@ -0,0 +1 @@ +## जलद प्रश्नमंजुषा \ No newline at end of file diff --git a/mr-IN/step_6.md b/mr-IN/step_6.md new file mode 100644 index 000000000..0cf75f198 --- /dev/null +++ b/mr-IN/step_6.md @@ -0,0 +1,230 @@ +## तुमचा प्रोजेक्ट अपग्रेड करा + +
+
+There are lots of features you could add to improve your customers' shopping experience. You don't need to add everything. Just add improvements that you think are important. +
+
+![](images/customer-count.png){:width="300px"} +
+
+ +--- task --- + +Add more items to sell. + +--- /task --- + +--- task --- + +Add more graphic and sound effects. + +--- /task --- + +--- task --- + +Paint your own scenery and other costumes. + +--- /task --- + +--- task --- + +Make another business and allow players to visit them both. + +--- /task --- + +Each example project in the [Introduction](.) has a ‘See Inside’ link for you to open the project in Scratch, and look at the code to get ideas and see how they work. You can 'See inside' the example projects to look at how they work. + +Example projects: **Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Vending machine**: [See inside](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} + +**Tip:** If you are logged in to a Scratch account, then you can use the **Backpack** to copy scripts or sprites to your project. + +[[[scratch-backpack]]] + +### Chatty checkout! + +Your checkout person (or machine) could ask whether the service was good, or if the customer is having a nice day. + +--- task --- + +Add `ask`{:class="block3sensing"} blocks to your **seller**'s `when this sprite clicked`{:class="block3events"} script and `say`{:class="block3looks"} different things depending on the customer's response. + +--- collapse --- + +--- +title: Ask and respond to questions +--- + +```blocks3 +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds +else +say [Maybe I should add more items to my shop] for [2] seconds +end +``` + +**Debug:** Check that you have spelled the options correctly in your code and in your answer. It's OK if you use capital letters, so "Yes" and "YES" will match "yes". + +Add multiple questions to create a chatbot or non-player character that you can talk to. + +--- /collapse --- + +--- /task --- + +### Bag the items + +--- task --- + +The Cool Shirts project has shirts that glide into a bag. + +--- collapse --- + +--- +title: Make items glide into a container +--- + +Add a **Container** sprite. You could use an existing sprite like the **Gift** or **Take out** sprite, or paint your own with simple shapes. + +Add a script to make the **Container** always appear at the front: + +```blocks3 +when flag clicked +forever +go to [front v] layer +end +``` + +Then you'll need to add code to each **Item** you have for sale to make them glide to the container when they are clicked: + +```blocks3 +when this sprite clicked ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite ++hide +change [total v] by [12] ++go to x: [-180] y: [68] // start position ++show +``` + +If you don't want the container there all the time, you can add scripts to make it show and hide at the right time: + +```blocks3 +when I receive [next customer v] +hide // previous customer takes the bag +wait [1] seconds +show +``` + +**Test:** Try your project and make sure items glide to the container and hide. + +**Debug:** Check your scripts carefully and make sure you have updated all of your **Item** sprites. You can look at [Cool Shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} if you need to see a working example. + +--- /collapse --- + +--- /task --- + +###  Stop adding items when the customer is at the checkout + +--- task --- + +Add a `shop`{:class="block3variables"} variable and use it to control when items can be added. + +--- collapse --- + +--- +title: Stop purchases when the customer is at the checkout +--- + +Add a `variable`{:class="block3variables"} called `shop` for all sprites. You will set this to `true` when the customer is in the shop and `false` when they are at the checkout. + +Select your **seller** sprite. Update the `when flag clicked`{:class="block3events"} script to allow shopping when your project starts: + +```blocks3 ++set [shop v] to [true] +``` + +Now add a block to change the `shop`{:class="block3variables"} to `false` at the beginning of your **seller**'s `when this sprite clicked`{:class="block3events"} script: + +```blocks3 ++set [shop v] to [false] +``` + +And a block to set the `shop`{:class="block3variables"} variable back to `true` at the end of the same script: + +```blocks3 ++set [shop v] to [true] +``` + +Now you need to update the items you sell to check the `shop`{:class="block3variables"} variable: + +```blocks3 +when this sprite clicked ++if <(shop) = [true]> then +start sound (Coin v) +change [total v] by [10] +end +``` +You will need to do this for every item you sell in your shop. + +**Test:** Click the green flag then try shopping. Check that you can still add items and checkout, but you can't add items once you have started checking out. + +**Debug:** Check your code really carefully. You can look at the [Space Fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project if you need to see a working example. + +--- /collapse --- + +--- /task --- + +--- task --- + +### Give the customer the option to cancel their shopping. + +--- collapse --- + +--- +title: Set up pay and cancel options +--- + +`Ask`{:class="block3sensing"} `Would you like to pay or cancel?`. Add an `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `pay` and inside it put your existing payment blocks. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end +``` + +Add a second `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `cancel` and inside it add code to cancel the order. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] +end +``` + +--- /collapse --- + +--- /task --- + +Take a look at our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio to see projects created by community members. + +--- save --- diff --git a/mr-IN/step_7.md b/mr-IN/step_7.md new file mode 100644 index 000000000..0b5ec7bc7 --- /dev/null +++ b/mr-IN/step_7.md @@ -0,0 +1,9 @@ +## शेअर करा + +If you are in a club, why not share your project with friends? + +रास्पबेरी पाई फाउंडेशन समुदायाला तुमच्या प्रकल्पासह प्रेरित करा! + +To submit your project to our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio, please complete [this form](https://form.raspberrypi.org/f/community-project-submissions){:target="_blank"}. + +![Example shop projects in the 'Intergalactic shopping market' Scratch studio.](images/studio-example.png) diff --git a/mr-IN/step_8.md b/mr-IN/step_8.md new file mode 100644 index 000000000..482ba5b56 --- /dev/null +++ b/mr-IN/step_8.md @@ -0,0 +1,21 @@ +## What can you do now? + +If you are following the [More Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch) path, you can move on to the [Don't fall in](https://projects.raspberrypi.org/en/projects/dont-fall-in) project. In this project, you will make a top-down game where you have to jump from platform to platform and not fall in. + +--- print-only --- + +![Don't fall in project](images/dont-fall-in-project.png) + +--- /print-only --- + +--- no-print --- + +
+ +
+ +**Instructions:** Press space or tap the Stage to jump. + +--- /no-print --- + +If you want to have more fun exploring Scratch, then you could try out any of [these projects](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). diff --git a/nl-NL/meta.yml b/nl-NL/meta.yml index 979532401..2bbee1c61 100644 --- a/nl-NL/meta.yml +++ b/nl-NL/meta.yml @@ -9,15 +9,20 @@ listed: true copyedit: false last_tested: "2021-03-26" steps: - - title: Wat ga je maken - - title: Jouw winkel - - title: Producten te koop + - + title: Wat ga je maken + - + title: Jouw winkel + - + title: Producten te koop completion: - engaged - - title: Aankopen + - + title: Aankopen completion: - internal - - title: Snelle quiz + - + title: Snelle quiz knowledge_quiz: path: quiz1 version: 1 @@ -25,6 +30,8 @@ steps: passing_score: 3 completion: - external - - title: Uitdaging + - + title: Uitdaging challenge: true - - title: Delen + - + title: Delen diff --git a/nl-NL/quiz1/question_1.md b/nl-NL/quiz1/question_1.md index a0b160839..3fb9b0a7d 100644 --- a/nl-NL/quiz1/question_1.md +++ b/nl-NL/quiz1/question_1.md @@ -23,7 +23,7 @@ Welk blok zou je aan het betalingsscript moeten toevoegen om het totaal terug te - ( ) ```blocks3 -change [totaal v] by [0] +change [total v] by [0] ``` --- feedback --- @@ -34,19 +34,19 @@ Niet helemaal, dit zou voor de tweede klant werken, maar het `totaal`{:class="bl - ( ) ```blocks3 -set [totaal v] to [40] +set [total v] to [40] ``` --- feedback --- -Niet helemaal, `totaal`{:class="block3variables"} moet `0` zijn nadat een klant betaalt, maar het is niet het `verander`{:class="block3variables"} blok dat je nodig hebt. + Niet helemaal, `totaal`{:class="block3variables"} moet `0` zijn nadat een klant betaalt, maar het is niet het `verander`{:class="block3variables"} blok dat je nodig hebt. --- /feedback --- - (x) ```blocks3 -set [totaal v] to [0] +set [total v] to [0] ``` --- feedback --- @@ -58,7 +58,7 @@ Ja dat is goed. Je moet `maak`{:class="block3variables"} het `totaal`{:class="bl - ( ) ```blocks3 -change [totaal v] by [-50] +change [total v] by [-50] ``` --- feedback --- diff --git a/nl-NL/quiz1/question_2.md b/nl-NL/quiz1/question_2.md index bdf99ce8c..ad38c19b7 100644 --- a/nl-NL/quiz1/question_2.md +++ b/nl-NL/quiz1/question_2.md @@ -8,11 +8,11 @@ legend: Vraag 2 van 3 In een winkel heeft de **verkoper** deze code in het afrekenscript: ```blocks3 -ask [Hoe gaat het vandaag?] and wait -if <(answer) = [goed]> then -say [Dat is fantastisch!] for [2] seconds +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds else -say [Het spijt me om dat te horen.] for [2] seconds +say [Sorry to hear that.] for [2] seconds end ``` diff --git a/nl-NL/quiz1/question_3.md b/nl-NL/quiz1/question_3.md index 399c6334d..83faf276e 100644 --- a/nl-NL/quiz1/question_3.md +++ b/nl-NL/quiz1/question_3.md @@ -9,7 +9,7 @@ Je project werkt niet. Wat moet je doen? --- choices --- -- ( ) Paniek! +- ( ) paniek! --- feedback --- diff --git a/nl-NL/step_1.md b/nl-NL/step_1.md index 8e2ef0a13..457ed779f 100644 --- a/nl-NL/step_1.md +++ b/nl-NL/step_1.md @@ -10,9 +10,9 @@ Klik op Ruimtefruit om ze te kopen en zie het totaalbedrag oplopen. Als je klaar + Hoe weet het project volgens jou dat je nog geen fruit hebt toegevoegd?
-**Vers Ruimte Fruit**: [Bekijk van binnen](https://scratch.mit.edu/projects/707255579/editor){:target="_blank"} +**Vers Ruimte Fruit**: [Bekijk van binnen](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"}
- +
@@ -20,14 +20,14 @@ Klik op Ruimtefruit om ze te kopen en zie het totaalbedrag oplopen. Als je klaar Klik op de **verkoper** sprites om producten te kopen: -**Coole shirts**: [Bekijk van binnen](https://scratch.mit.edu/projects/707254479/editor){:target="_blank"} +**Coole shirts**: [Bekijk van binnen](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"}
- +
-**IJssalon**: [Bekijk van binnen](https://scratch.mit.edu/projects/707255735/editor){:target="_blank"} +**IJssalon**: [Bekijk van binnen](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"}
- +
**⭐ Pride pins** (uitgelicht gemeenschapsproject) @@ -46,10 +46,7 @@ Klik op de Pride Pin-badges om ze aan je winkelmandje toe te voegen: Je gaat een aantal ontwerpbeslissingen nemen om je personage te creëren. Bekijk voorbeeldprojecten in Scratch 2: Volgende klant alsjeblieft! Scratch Studio is te vinden op https://scratch.mit.edu/studios/29611454 -![Voorbeeldproject](images/fruit.png) -![Voorbeeldproject](images/tshirt.png) -![Voorbeeldproject](images/icecream.png) -![Voorbeeldproject](images/vending.png) +![Voorbeeldproject](images/fruit.png) ![Voorbeeldproject](images/tshirt.png) ![Voorbeeldproject](images/icecream.png) ![Voorbeeldproject](images/vending.png) --- /print-only --- diff --git a/nl-NL/step_2.md b/nl-NL/step_2.md index 3db31cf56..35bd9a206 100644 --- a/nl-NL/step_2.md +++ b/nl-NL/step_2.md @@ -61,7 +61,7 @@ Klik op je **verkoper** sprite en voeg een `wanneer ik signaal ontvang`{:class=" ```blocks3 when flag clicked -+ broadcast (volgende klant v) ++ broadcast (next customer v) ``` --- /task --- @@ -71,8 +71,8 @@ when flag clicked Maak een nieuw script voor je **verkoper** sprite om `te zeggen`{:class="block3looks"} `volgende klant alsjeblieft` wanneer deze het `signaal`{:class="block3control"} `volgende klant`{:class="block3control"} ontvangt. ```blocks3 -when I receive [volgende klant v] -say [Volgende klant alsjeblieft!] for (2) seconds +when I receive [next customer v] +say [Next customer please!] for (2) seconds ``` --- /task --- diff --git a/nl-NL/step_3.md b/nl-NL/step_3.md index dd3346ec8..ae7f6e8bd 100644 --- a/nl-NL/step_3.md +++ b/nl-NL/step_3.md @@ -13,7 +13,7 @@ Je moet bijhouden hoeveel je klant uitgeeft. --- task --- -Voeg een nieuwe variabele toe met de naam `totaal`{:class="block3variables"} voor alle sprites. +Task ---Voeg een nieuwe variabele toe met de naam `totaal`{:class="block3variables"} voor alle sprites. Klik op je **verkoper** sprite en voeg een script toe aan `maak`{:class="block3variables"} het `totaal`{:class="block3variables"} `0` wanneer het project begint. @@ -50,7 +50,7 @@ title: Klik om een product toe te voegen ```blocks3 when this sprite clicked start sound (Coin v) -change [totaal v] by [10] +change [total v] by [10] ``` --- /collapse --- @@ -85,7 +85,7 @@ Voeg een prijslabel toe aan het uiterlijk of de achtergrond als je die gebruikt. --- task --- -Klik op je nieuwe **product** sprite in de Sprite-lijst en klik vervolgens op het tabblad **Code**. +Task ---Klik op je nieuwe **product** sprite in de Sprite-lijst en klik vervolgens op het tabblad **Code**. Wijzig het bedrag zodat het `totaal`{:class="block3variables"} verandert met de prijs van je nieuwe product. diff --git a/nl-NL/step_4.md b/nl-NL/step_4.md index d4cf2812c..a63cf4898 100644 --- a/nl-NL/step_4.md +++ b/nl-NL/step_4.md @@ -21,7 +21,7 @@ Wanneer ze klaar zijn met het kiezen van producten, zal de klant op de **verkope ```blocks3 when this sprite clicked -say (join [Dat is dan ] (totaal)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds ``` --- /task --- @@ -38,7 +38,7 @@ Voeg het `start geluid en wacht`{:class="block3sound"} blok toe aan je script. ```blocks3 when this sprite clicked -say (join [Dat is dan ] (totaal)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds + play sound [machine v] until done ``` @@ -50,11 +50,11 @@ Maak de verkoop af. Zet `totaal`{:class="block3variables"} terug naar `0` na bet ```blocks3 when this sprite clicked -say (join [Dat is dan ] (totaal)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds play sound [machine v] until done -+ set [totaal v] to (0) -+ say (join [Bedankt voor het winkelen bij ] (naam)) for (2) seconds -+ broadcast (volgende klant v) ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) ``` --- /task --- @@ -95,9 +95,9 @@ Wanneer je `twee stukken aan elkaar toevoegt`{:class="block3operators"}, moet je Deze hebben een spatie aan het einde van het eerste deel: ```blocks3 -say {join [Dat is dan ](totaal)} for (2) seconds +say {join [That will be ](total)} for (2) seconds -say {join [Bedankt voor het winkelen bij ](naam)} for (2) seconds +say {join [Thanks for shopping at ](name)} for (2) seconds ``` --- /collapse --- @@ -116,7 +116,7 @@ set [total v] to (0) **niet**: ```blocks3 -change [totaal v] by (0) +change [total v] by (0) ``` --- /collapse --- @@ -129,7 +129,7 @@ title: De verkoper reageert niet Zorg ervoor dat de `functie`{:class="block3operators"} in de `als`{:class="block3control"} voorwaarde groter is dan het symbool `>`{:class="block3operators"}. ```blocks3 -if <(totaal) > [0]> then +if <(total) > [0]> then ``` --- /collapse --- diff --git a/nl-NL/step_6.md b/nl-NL/step_6.md index c88b830b8..186b43899 100644 --- a/nl-NL/step_6.md +++ b/nl-NL/step_6.md @@ -35,11 +35,10 @@ Maak een ander bedrijf en laat spelers ze allebei bezoeken. Elk voorbeeldproject in de [Inleiding](.) heeft een link 'bekijk van binnen' om het project in Scratch te openen, en de code te bekijken om ideeën te krijgen en te zien hoe ze werken. Je kunt de voorbeeldprojecten 'van binnen bekijken' om te zien hoe ze werken. -Voorbeelden van projecten: -**Vers ruimtefruit**: [Bekijk van binnen](https://scratch.mit.edu/projects/707255579/editor){:target="_blank"} -**Coole shirts**: [Bekijk van binnen](https://scratch.mit.edu/projects/707254479/editor){:target="_blank"} -**IJssalon**: [Bekijk van binnen](https://scratch.mit.edu/projects/707255735/editor){:target="_blank"} -**Verkoopautomaten**: [Bekijk van binnen](https://scratch.mit.edu/projects/707255880/editor){:target="_blank"} +Voorbeelden van projecten: **Vers ruimtefruit**: [Bekijk van binnen](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Coole shirts**: [Bekijk van binnen](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**IJssalon**: [Bekijk van binnen](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Verkoopautomaten**: [Bekijk van binnen](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} **Tip:** Als je bent ingelogd op een Scratch-account, kun je de **Rugzak** gebruiken om scripts of sprites naar je project te kopiëren. @@ -60,11 +59,11 @@ title: Vragen stellen en beantwoorden --- ```blocks3 -ask [Heb je alles gevonden wat je vandaag nodig hebt?] and wait -if <(answer) = [ja]> then -say [Dat is fantastisch!] for [2] seconds +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds else -say [Misschien moet ik meer producten aan mijn winkel toevoegen] for [2] seconds +say [Maybe I should add more items to my shop] for [2] seconds end ``` @@ -95,7 +94,7 @@ Voeg een script toe om de **Verpakking** altijd vooraan te laten verschijnen: ```blocks3 when flag clicked forever -go to [voorgrond v] layer +go to [front v] layer end ``` @@ -103,26 +102,26 @@ Vervolgens moet je code toevoegen aan elk **product** dat je aanbiedt om ze naar ```blocks3 when this sprite clicked -+go to [voorgrond v] layer -+glide [1] secs to (Bag v) // gebruik de naam van je Container sprite ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite +hide -change [totaal v] by [12] -+go to x: [-180] y: [68] // beginpositie +change [total v] by [12] ++go to x: [-180] y: [68] // start position +show ``` Als je de verpakking niet altijd wilt laten zien, kun je scripts toevoegen om hem op het juiste moment te laten verschijnen en verdwijnen: ```blocks3 -when I receive [volgende klant v] -hide // vorige klant neemt de tas +when I receive [next customer v] +hide // previous customer takes the bag wait [1] seconds show ``` **Test:** Probeer je project en zorg ervoor dat producten naar de verpakking glijden en verdwijnen. -**Debug:** Controleer zorgvuldig je scripts en zorg ervoor dat je al je **Product** sprites hebt bijgewerkt. Je kunt [Coole shirts](https://scratch.mit.edu/projects/707254479/editor){:target="_blank"} bekijken als je een werkend voorbeeld wilt zien. +**Debug:** Controleer zorgvuldig je scripts en zorg ervoor dat je al je **Product** sprites hebt bijgewerkt. Je kunt [Coole shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} bekijken als je een werkend voorbeeld wilt zien. --- /collapse --- @@ -145,35 +144,35 @@ Voeg voor alle sprites een `variabele`{:class="block3variables"} met de naam `wi Selecteer je **verkoper** sprite. Werk het `wanneer op de groene vlag wordt geklikt`{:class="block3events"} script bij om winkelen toe te staan wanneer je project begint: ```blocks3 -+set [winkel v] to [waar] ++set [shop v] to [true] ``` Voeg nu een blok toe om de `winkelen`{:class="block3variables"} variabele te veranderen in `niet waar` aan het begin van het **verkoper**'s `wanneer op deze sprite wordt geklikt`{:class="block3events"} script: ```blocks3 -+set [winkel v] to [niet waar] ++set [shop v] to [false] ``` En een blok om de `winkelen`{:class="block3variables"} variabele terug te zetten naar `waar` aan het einde van hetzelfde script: ```blocks3 -+set [winkel v] to [waar] ++set [shop v] to [true] ``` Nu moet je de producten die je verkoopt bijwerken om de `winkelen`{:class="block3variables"} variabele te controleren: ```blocks3 when this sprite clicked -+if <(winkel) = [waar]> then ++if <(shop) = [true]> then start sound (Coin v) -change [totaal v] by [10] +change [total v] by [10] end ``` Je moet dit doen voor elk product dat je in je winkel verkoopt. **Test:** Klik op de groene vlag en probeer te winkelen. Controleer of je nog steeds producten kunt toevoegen en afrekenen, maar dat je geen producten kunt toevoegen nadat je bent begonnen met afrekenen. -**Fouten opsporen:** Controleer je code heel zorgvuldig. Je kunt het [Ruimte fruit](https://scratch.mit.edu/projects/707255579/editor){:target="_blank"} project bekijken als je een werkend voorbeeld wilt zien. +**Fouten opsporen:** Controleer je code heel zorgvuldig. Je kunt het [Ruimte fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project bekijken als je een werkend voorbeeld wilt zien. --- /collapse --- @@ -193,13 +192,13 @@ title: Stel betaal- en annuleringsopties in ```blocks3 when this sprite clicked -say (join [Dat is dan ] (totaal)) for (2) seconds -+ ask [Wil je betalen of annuleren?] and wait -+ if {(answer) = [betalen]} then +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then play sound [machine v] until done -set [totaal v] to (0) -say (join [Bedankt voor het winkelen bij ] (naam)) for (2) seconds -broadcast [volgende klant v] +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] end ``` @@ -207,18 +206,18 @@ Voeg een tweede `als`{:class="block3control"} blok toe voor `antwoord`{:class="b ```blocks3 when this sprite clicked -say (join [Dat is dan ] (totaal)) for (2) seconds -ask [Wil je betalen of annuleren?] and wait -if {(answer) = [betalen]} then +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then play sound [machine v] until done -set [totaal v] to (0) -say (join [Bedankt voor het winkelen bij ] (naam)) for (2) seconds -broadcast [volgende klant v] +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] end -+ if {(answer) = [annuleren]} then -set [totaal v] to (0) -say [Ok. Geen probleem] for (2) seconds -broadcast [forvolgende klant v] ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] end ``` diff --git a/nl-NL/step_8.md b/nl-NL/step_8.md index 358f65ff6..9b6d58ed3 100644 --- a/nl-NL/step_8.md +++ b/nl-NL/step_8.md @@ -1,6 +1,6 @@ ## Wat kun je nu doen? -Als je het pad [Meer Scratch](https://projects.raspberrypi.org/nl-NL/raspberrypi/more-scratch) volgt, kun je verdergaan met het project [Val er niet in](https://projects.raspberrypi.org/nl-NL/projects/dont-fall-in). In dit project maak je een top-down spel waar je van platform naar platform moet springen zonder te vallen. +Als je het pad [Meer Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch) volgt, kun je verdergaan met het project [Val er niet in](https://projects.raspberrypi.org/en/projects/dont-fall-in). In dit project maak je een top-down spel waar je van platform naar platform moet springen zonder te vallen. --- print-only --- @@ -11,21 +11,11 @@ Als je het pad [Meer Scratch](https://projects.raspberrypi.org/nl-NL/raspberrypi --- no-print ---
- +
**Instructies:** Druk op spatiebalk of tik op het speelveld om te springen. --- /no-print --- -Als je meer plezier wilt hebben bij het verkennen van Scratch, dan kun je een van [deze projecten](https://projects.raspberrypi.org/nl-NL/projects?software%5B%5D=scratch&curriculum%5B%5D=%201) uitproberen. - -*** -Dit project werd vertaald door vrijwilligers: - -Iny van Beuningen -Sanneke van der Meer -Max Schaaper -Robert-Jan Kempenaar - -Dankzij vrijwilligers kunnen we mensen over de hele wereld de kans geven om in hun eigen taal te leren. Jij kunt ons helpen meer mensen te bereiken door vrijwillig te starten met vertalen - meer informatie op [rpf.io/translate](https://rpf.io/translate). +Als je meer plezier wilt hebben bij het verkennen van Scratch, dan kun je een van [deze projecten](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201) uitproberen. diff --git a/pl-PL/images/add-friend-projects.png b/pl-PL/images/add-friend-projects.png new file mode 100644 index 000000000..3ad5bafed Binary files /dev/null and b/pl-PL/images/add-friend-projects.png differ diff --git a/pl-PL/images/add-sound.png b/pl-PL/images/add-sound.png new file mode 100644 index 000000000..123e3628f Binary files /dev/null and b/pl-PL/images/add-sound.png differ diff --git a/pl-PL/images/add-your-projects.png b/pl-PL/images/add-your-projects.png new file mode 100644 index 000000000..016bd757d Binary files /dev/null and b/pl-PL/images/add-your-projects.png differ diff --git a/pl-PL/images/banner.png b/pl-PL/images/banner.png new file mode 100644 index 000000000..f9ac6e053 Binary files /dev/null and b/pl-PL/images/banner.png differ diff --git a/pl-PL/images/choose-backdrop-icon.png b/pl-PL/images/choose-backdrop-icon.png new file mode 100644 index 000000000..6d7d7e298 Binary files /dev/null and b/pl-PL/images/choose-backdrop-icon.png differ diff --git a/pl-PL/images/choose-sprite-icon.png b/pl-PL/images/choose-sprite-icon.png new file mode 100644 index 000000000..7b04d235d Binary files /dev/null and b/pl-PL/images/choose-sprite-icon.png differ diff --git a/pl-PL/images/create-studio.png b/pl-PL/images/create-studio.png new file mode 100644 index 000000000..0ce2440f2 Binary files /dev/null and b/pl-PL/images/create-studio.png differ diff --git a/pl-PL/images/customer-count.png b/pl-PL/images/customer-count.png new file mode 100644 index 000000000..e2c6ce61a Binary files /dev/null and b/pl-PL/images/customer-count.png differ diff --git a/pl-PL/images/dont-fall-in-project.png b/pl-PL/images/dont-fall-in-project.png new file mode 100644 index 000000000..003a7787c Binary files /dev/null and b/pl-PL/images/dont-fall-in-project.png differ diff --git a/pl-PL/images/example-strip.png b/pl-PL/images/example-strip.png new file mode 100644 index 000000000..cecace153 Binary files /dev/null and b/pl-PL/images/example-strip.png differ diff --git a/pl-PL/images/fruit.png b/pl-PL/images/fruit.png new file mode 100644 index 000000000..74b78e59a Binary files /dev/null and b/pl-PL/images/fruit.png differ diff --git a/pl-PL/images/icecream.png b/pl-PL/images/icecream.png new file mode 100644 index 000000000..c72e20f83 Binary files /dev/null and b/pl-PL/images/icecream.png differ diff --git a/pl-PL/images/item-amounts.png b/pl-PL/images/item-amounts.png new file mode 100644 index 000000000..9e6430405 Binary files /dev/null and b/pl-PL/images/item-amounts.png differ diff --git a/pl-PL/images/large-readout.png b/pl-PL/images/large-readout.png new file mode 100644 index 000000000..a3859b991 Binary files /dev/null and b/pl-PL/images/large-readout.png differ diff --git a/pl-PL/images/my-stuff-menu.png b/pl-PL/images/my-stuff-menu.png new file mode 100644 index 000000000..ad6992761 Binary files /dev/null and b/pl-PL/images/my-stuff-menu.png differ diff --git a/pl-PL/images/naming-studio.png b/pl-PL/images/naming-studio.png new file mode 100644 index 000000000..dc25e716e Binary files /dev/null and b/pl-PL/images/naming-studio.png differ diff --git a/pl-PL/images/new-variable.png b/pl-PL/images/new-variable.png new file mode 100644 index 000000000..d937fdd8a Binary files /dev/null and b/pl-PL/images/new-variable.png differ diff --git a/pl-PL/images/quiz2.png b/pl-PL/images/quiz2.png new file mode 100644 index 000000000..b5fe0cfb0 Binary files /dev/null and b/pl-PL/images/quiz2.png differ diff --git a/pl-PL/images/sprite-pane-size.png b/pl-PL/images/sprite-pane-size.png new file mode 100644 index 000000000..568608788 Binary files /dev/null and b/pl-PL/images/sprite-pane-size.png differ diff --git a/pl-PL/images/step2-image.png b/pl-PL/images/step2-image.png new file mode 100644 index 000000000..f52394751 Binary files /dev/null and b/pl-PL/images/step2-image.png differ diff --git a/pl-PL/images/step3-image.png b/pl-PL/images/step3-image.png new file mode 100644 index 000000000..441189fec Binary files /dev/null and b/pl-PL/images/step3-image.png differ diff --git a/pl-PL/images/step4-image.png b/pl-PL/images/step4-image.png new file mode 100644 index 000000000..c92bc3b0b Binary files /dev/null and b/pl-PL/images/step4-image.png differ diff --git a/pl-PL/images/studio-example.png b/pl-PL/images/studio-example.png new file mode 100644 index 000000000..f91ad3daa Binary files /dev/null and b/pl-PL/images/studio-example.png differ diff --git a/pl-PL/images/tshirt.png b/pl-PL/images/tshirt.png new file mode 100644 index 000000000..9e5481d85 Binary files /dev/null and b/pl-PL/images/tshirt.png differ diff --git a/pl-PL/images/upgrade-image.png b/pl-PL/images/upgrade-image.png new file mode 100644 index 000000000..57b6f29d1 Binary files /dev/null and b/pl-PL/images/upgrade-image.png differ diff --git a/pl-PL/images/vending.png b/pl-PL/images/vending.png new file mode 100644 index 000000000..deb1d50d3 Binary files /dev/null and b/pl-PL/images/vending.png differ diff --git a/pl-PL/meta.yml b/pl-PL/meta.yml new file mode 100644 index 000000000..1f011f925 --- /dev/null +++ b/pl-PL/meta.yml @@ -0,0 +1,37 @@ +--- +title: Next customer please +hero_image: images/banner.png +description: A shop simulation project where the customer can buy items. +meta_title: Scratch coding projects for kids and teens | Next customer please +meta_description: Learn Scratch with the Raspberry Pi Foundation's coding projects for kids and teens. Make a Scratch app where the customer can buy items from your shop. +version: 4 +listed: true +copyedit: false +last_tested: "2021-03-26" +steps: + - + title: Co stworzysz + - + title: Your shop + - + title: Przedmioty na sprzedaż + completion: + - engaged + - + title: Purchases + completion: + - internal + - + title: Szybki quiz + knowledge_quiz: + path: quiz1 + version: 1 + questions: 3 + passing_score: 3 + completion: + - external + - + title: Wyzwanie + challenge: true + - + title: Udostępnij diff --git a/pl-PL/quiz1/question_1.md b/pl-PL/quiz1/question_1.md new file mode 100644 index 000000000..768e0e822 --- /dev/null +++ b/pl-PL/quiz1/question_1.md @@ -0,0 +1,72 @@ +## Szybki quiz + +Odpowiedz na trzy pytania. Podpowiedzi naprowadzą Cię na właściwą odpowiedź. + +When you have answered each question, click on **Check my answer**. + +Miłej zabawy! + +--- question --- + +--- +legend: Question 1 of 3 +--- + +A shop project uses a `total`{:class="block3variables"} variable to store the total for each customer. + ++ A customer adds items that total `50` and pays ++ A new customer adds items that total `40` but the `total`{:class="block3variables"} is now showing as `90` for the second customer + +Which block would you need to add to the payment script to make the total go back to `0` when each customer pays? + +--- choices --- + +- ( ) +```blocks3 +change [total v] by [0] +``` + + --- feedback --- + +Not quite, `total`{:class="block3variables"} should be `0` after a customer pays, but it is not the `change`{:class="block3variables"} block you need. + + --- /feedback --- + +- ( ) +```blocks3 +set [total v] to [40] +``` + + --- feedback --- + + Not quite, this would work for the second customer but the `total`{:class="block3variables"} would be wrong for other customers. + + --- /feedback --- + +- (x) + +```blocks3 +set [total v] to [0] +``` + + --- feedback --- + +Tak, to jest poprawna odpowiedź. Musisz ustawić `set`{:class="block3variables"} zmienną `total`{:class="block3variables"} na `0` po dokonaniu płatności przez każdego klienta. + + --- /feedback --- + +- ( ) + +```blocks3 +change [total v] by [-50] +``` + + --- feedback --- + +To zadziałałoby w tym przykładzie, ale co by było, gdyby pierwszy klient wydał inną kwotę? Twoje rozwiązanie musi działać, gdy poprzedni klient wydawał różne kwoty. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/pl-PL/quiz1/question_2.md b/pl-PL/quiz1/question_2.md new file mode 100644 index 000000000..002ce2b30 --- /dev/null +++ b/pl-PL/quiz1/question_2.md @@ -0,0 +1,63 @@ + +--- question --- + +--- +legend: Question 2 of 3 +--- + +In a shop, the **seller** has this code in the checkout script: + +```blocks3 +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds +else +say [Sorry to hear that.] for [2] seconds +end +``` + +When the code runs, the user types the answer 'great'. What will the **seller** sprite say? + +![An 'ask' box with the word 'great' typed in.](images/quiz2.png) + +--- choices --- + +- (x) The **Seller** will say `Sorry to hear that.` + + --- feedback --- + + Tak. Humans know that 'great' means the same as 'good', but the '=' checks whether the letters are the same. + + The **condition** `answer`{:class="block3sensing"} = `good` is 'false' so the `say`{:class="block3looks"} block in the `else`{:class="block3control"} part will run. + + --- /feedback --- + +- ( ) The **seller** will say `That's fantastic!` + + --- feedback --- + +No, only the exact answer `good` will make the **seller** say `That's fantastic!`. Look at the code again to see what message the **seller** will say for all answers that are not `good`. + +**Tip:** 'Good' or 'GOOD' would match 'good'. + + --- /feedback --- + +- ( ) The **seller** won't say anything. + + --- feedback --- + +No, the **seller** will always say something. Look carefully at the code to see what the message will be. + + --- /feedback --- + +- ( ) The **seller** will say `great`. + + --- feedback --- + +No, the **customer** typed the answer 'great' but the **seller** does not say the answer. Look carefully at the code to see what the message will be. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/pl-PL/quiz1/question_3.md b/pl-PL/quiz1/question_3.md new file mode 100644 index 000000000..4a1183570 --- /dev/null +++ b/pl-PL/quiz1/question_3.md @@ -0,0 +1,48 @@ + +--- question --- + +--- +legend: Question 3 of 3 +--- + +Your project is not working. What should you do? + +--- choices --- + +- ( ) Panic! + + --- feedback --- + + That's not going to help. You need to think clearly to fix coding problems. + + --- /feedback --- + +- ( ) Give up + + --- feedback --- + + There are lots of things you could try. Great coders often get things wrong the first time and learn a lot from their mistakes. + + --- /feedback --- + +- (x) Read the code carefully and try to debug it. + + --- feedback --- + + Tak. Fixing bugs is part of coding. The more you practise the more experience you get, and the easier it becomes to find and fix bugs. + + --- /feedback --- + +- ( ) Get annoyed with the computer + + --- feedback --- + +A computer only does what we tell it to do, so getting annoyed with it isn't logical. + +Being annoyed won't help to solve the problem, as it will make it harder to think clearly. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/pl-PL/scratch-comments.txt b/pl-PL/scratch-comments.txt new file mode 100644 index 000000000..c5fe4c8c8 --- /dev/null +++ b/pl-PL/scratch-comments.txt @@ -0,0 +1,9 @@ +type the name of your business + +your business name + +use the name of your Container sprite + +start position + +previous customer takes the bag diff --git a/pl-PL/scratch-translatable.txt b/pl-PL/scratch-translatable.txt new file mode 100644 index 000000000..69370f5d5 --- /dev/null +++ b/pl-PL/scratch-translatable.txt @@ -0,0 +1,49 @@ +nazwa + +my shop + +next customer + +Next customer please! + +total + +That will be + +Thanks for shopping at + +Would you like to pay or cancel? + +pay + +anuluj + +Ok. No problem + +Click on the items you'd like + +Czy znalazłeś wszystko, czego dziś szukałeś? + +tak + +To świetnie! + +Może powinienem dodać więcej produktów do mojego sklepu + +Torba + +1 scoop + +cone + +shop + +true + +fałsz + +How are you today? + +good + +Sorry to hear that. diff --git a/pl-PL/solutions/Cool Shirts.sb3 b/pl-PL/solutions/Cool Shirts.sb3 new file mode 100644 index 000000000..fdc5852be Binary files /dev/null and b/pl-PL/solutions/Cool Shirts.sb3 differ diff --git a/pl-PL/solutions/Fresh Space Fruit.sb3 b/pl-PL/solutions/Fresh Space Fruit.sb3 new file mode 100644 index 000000000..bbbe9eaac Binary files /dev/null and b/pl-PL/solutions/Fresh Space Fruit.sb3 differ diff --git a/pl-PL/solutions/Vending machine.sb3 b/pl-PL/solutions/Vending machine.sb3 new file mode 100644 index 000000000..42dec16a7 Binary files /dev/null and b/pl-PL/solutions/Vending machine.sb3 differ diff --git a/pl-PL/solutions/ice cream shop.sb3 b/pl-PL/solutions/ice cream shop.sb3 new file mode 100644 index 000000000..d6322242c Binary files /dev/null and b/pl-PL/solutions/ice cream shop.sb3 differ diff --git a/pl-PL/step_1.md b/pl-PL/step_1.md new file mode 100644 index 000000000..7459ab7d2 --- /dev/null +++ b/pl-PL/step_1.md @@ -0,0 +1,52 @@ +## Co stworzysz + +Stwórz aplikacje sklepu, w której klient może kupować produkty. Projekt będzie wyświetlany z perspektywy pierwszej osoby. Gracz wciela się w rolę klienta. + +--- no-print --- + +Click on Space Fruit to buy them and watch the total go up. Kliknij na Kiran, aby zapłacić za zakupy. + ++ Co się stanie, jeśli spróbujesz zapłacić, zanim wybierzesz jakikolwiek owoc? ++ Jak myślisz, skąd aplikacja wie, że nie dodałeś jeszcze żadnych owoców do koszyka? + +
+**Świeże owoce**: [Zobacz wnętrze](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +
+ +
+
+ +### Jaki masz pomysł? 💭 + +Click on the **seller** sprites to buy items: + +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +
+ +
+ +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +
+ +
+ +**⭐ Tęczowa przypinka** (wyróżniony projekt społeczności) + +Kliknij na tęczowe odznaki, aby dodać je do koszyka: + +
+ +
+ +--- /no-print --- + +--- print-only --- + +### Jaki masz pomysł? 💭 + +Musisz podjąć decyzje projektowe, aby stworzyć swoją postać. See inside example projects in the Scratch 2: Next customer please! Scratch studio at https://scratch.mit.edu/studios/29611454 + +![Przykładowy projekt](images/fruit.png) ![Przykładowy projekt](images/tshirt.png) ![Przykładowy projekt](images/icecream.png) ![Przykładowy projekt](images/vending.png) + +--- /print-only --- + diff --git a/pl-PL/step_2.md b/pl-PL/step_2.md new file mode 100644 index 000000000..2d2eacb6f --- /dev/null +++ b/pl-PL/step_2.md @@ -0,0 +1,80 @@ +## Your shop + +
+
+What is your shop idea? Może to być coś realistycznego, jak księgarnia lub kino, lub coś kompletnie nie z tej ziemi. +
+
+![](images/step2-image.png){:width="300px"} +
+
+ +--- task --- + +Otwórz [nowy projekt Scratch](http://rpf.io/scratch-new){:target="_blank"} i zobacz jakie tła i duszki są dostępne do użycia w projekcie. Spend some time thinking about your shop idea. + +--- /task --- + +--- task --- + +**Choose a Backdrop** or paint your own backdrop. + +![](images/choose-backdrop-icon.png) + ++ Tło z biblioteki Scratch'a lub zwykłe jednobarwne tło + +--- /task --- + +--- task --- + +**Choose a Sprite** and add or paint extra scenery sprites. + +![](images/choose-sprite-icon.png) + +--- /task --- + +--- task --- + +Add more scenery. ++ Biurko, lada lub okienko sprzedawcy ++ Półka lub regał, na którym można umieścić przedmioty — możesz nanieść je na użyte tło + +--- /task --- + +--- task --- + +Dodaj duszka, który wcieli się w role sprzedawcy. + +Możesz wybrać: ++ Osoba lub Npc, taka jak sklepikarz, rolnik lub bibliotekarz ++ Automat taki jak automat z przekąskami, szafa grająca lub kasa fiskalna + +![](images/choose-sprite-icon.png) + +--- /task --- + +### Welcome your first customer. + +--- task --- + +Click on your **seller** sprite and add a `broadcast`{:class="block3events"} block. Create a new message called `next customer`. + +```blocks3 +when flag clicked ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +Create a new script for your **seller** sprite to `say`{:class="block3looks"} `Next customer please` when they receive the `broadcast`{:class="block3events"} `next customer`{:class="block3events"}. + +```blocks3 +when I receive [next customer v] +say [Next customer please!] for (2) seconds +``` + +--- /task --- + +--- save --- diff --git a/pl-PL/step_3.md b/pl-PL/step_3.md new file mode 100644 index 000000000..10beb77df --- /dev/null +++ b/pl-PL/step_3.md @@ -0,0 +1,128 @@ +## Przedmioty na sprzedaż + +
+
+Twój sklep potrzebuje przedmiotów na sprzedaż. Każdy przedmiot będzie miał cenę, która zostanie dodana do zmiennej `suma`{:class="block3variables"}. +
+
+![](images/step3-image.png){:width="300px"} +
+
+ +Będziesz musiał śledzić, ile pieniędzy wydaje twój klient. + +--- task --- + +Dodaj nową zmienną o nazwie `suma`{:class="block3variables"} dla wszystkich duszków. + +Kliknij na duszka **sprzedawca** i dodaj skrypt do `ustawienia`{:class="block3variables"} `sumy`{:class="block3variables"} na `0`, kiedy projekt się rozpocznie. + +[[[scratch3-create-set-variable]]] + +--- /task --- + +Jakie **produkty** będą kupować Twoi klienci? ++ Jedzenie lub picie ++ Sprzęt sportowy, zabawki, gadżety ++ Różdżki magiczne, mikstury, księgi zaklęć ++ Ubrania lub inne modne przedmioty ++ Your own idea + +--- task --- + +Dodaj duszka dla pierwszego **przedmiotu** który będziesz sprzedawać w swoim sklepie. + +Możesz dodać cenę do kostiumu za pomocą narzędzia tekstowego w edytorze Paint. Możesz też dodać cenę do używanego tła i umieścić przedmiot obok niej. + +![Przykłady przedmiotów z napisanymi obok nich cenami.](images/item-amounts.png) + +--- /task --- + +--- task --- + +Dodaj skrypt, aby `zmienić`{:class="block3variables"} `sume`{:class="block3variables"} produktów w koszyku według ceny przedmiotu, który wybrał klient. + +--- collapse --- +--- +title: Click to add an item +--- + +```blocks3 +when this sprite clicked +start sound (Coin v) +change [total v] by [10] +``` + +--- /collapse --- + +Dobrym pomysłem jest także `odtworzenie dźwięku`{:class="block3sound"}, aby przekazać klientowi informację o dodaniu elementu do koszyka. + +![Dodaj ikonkę dźwięku.](images/add-sound.png) + +[[[scratch3-add-sound]]] + +--- /task --- + +--- task --- + +**Test:** Kliknij na przedmiot i sprawdź, czy wartość zmiennej `suma`{:class="block3variables"} wzrasta o cenę przedmiotu oraz czy usłyszysz dodany wcześniej efekt dźwiękowy. Spróbuj kliknąć kilka razy, aby zobaczyć czy z każdym kliknięciem suma produktów w koszyku wzrasta. + +Kliknij na zieloną flagę, aby rozpocząć projekt i upewnij się, że `suma`{:class="block3variables"} produktów w koszyku zaczyna się od `0`. + +--- /task --- + +--- task --- + +Dodaj kolejne przedmioty do swojego sklepu. + +Możesz na przykład: ++ Zduplikować pierwszy przedmiot, a następnie zmienić jego kostium w edytorze Paint ++ Dodać duszka, a następnie przeciągnąć skrypt `po kliknięciu flagi`{:class="block3events"} z pierwszego przedmiotu w twoim sklepie do nowego przedmiotu + +Możesz dodać metkę z ceną do użytego kostiumu lub do tła. + +--- /task --- + +--- task --- + +Kliknij swojego nowego duszka **przedmiot** na liście duszków, a następnie kliknij zakładkę **Kod**. + +Zmień kwotę, o którą zmienia się `suma`{:class="block3variables"} na cenę nowego przedmiotu. + +--- /task --- + +--- task --- + +**Test:** Kliknij na zieloną flagę, aby rozpocząć projekt i kliknij na przedmioty, aby dodać je do koszyka. Sprawdź, czy suma zwiększa się prawidłowo o wartość każdego nowo dodanego przedmiotu. + +Jeśli dodałeś metki z cenami, upewnij się, że odpowiadają one kwocie która zostanie dodana do `sumy`{:class="block3variables"}, w przeciwnym razie Twoi klienci będą zdezorientowani! + +--- /task --- + +--- task --- + +**Debugowanie:** Możesz znaleźć w swoim projekcie pewne błędy, które trzeba naprawić. Tutaj masz kilka przykładów często występujących błędów. + +--- collapse --- +--- +title: The total doesn't go to 0 when I click the green flag +--- + +Sprawdź, czy ustawiłeś wartość początkową zmiennej `suma`{:class="block3variables"} w skrypcie `kiedy klikniesz na flagę`{:class="block3events"} na duszku **sprzedawcy**. + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't increase by the correct amount when I click on an item +--- + +Sprawdź, czy każdy przedmiot ma skrypt `gdy klikniesz na duszka` {:class="block3events"}, który zmienia `sumę`{:class="block3variables"} na prawidłową kwotę dla tego przedmiotu — mogłeś zmienić cenę dla niewłaściwego duszek. + +Sprawdź, czy użyłeś bloku `zmiana`{:class="block3variables"}, a nie bloku `ustaw`{:class="block3variables"}, aby zmienić `sumę`{:class="block3variables"}. Musisz użyć bloku `zmiany`{:class="block3variables"}, aby dodać cenę do sumy. Nie chcesz, aby suma koszyka została przypadkiem ustawiona jako cena produktu, który próbujesz dodać. + +--- /collapse --- + +--- /task --- + +--- save --- diff --git a/pl-PL/step_4.md b/pl-PL/step_4.md new file mode 100644 index 000000000..59ce1fb69 --- /dev/null +++ b/pl-PL/step_4.md @@ -0,0 +1,141 @@ +## Purchases + +
+
+ +The **seller** sprite needs to: +- ask if the customer is ready to pay for the items +- take payment +- get ready for the next customer +
+
+![](images/step4-image.png){:width="300px"} +
+
+ +When they have finished choosing items, the customer will click on the **seller** sprite to pay. + +--- task --- + + Tell the customer how much their items will cost. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +``` + +--- /task --- + +--- task --- + +Add a payment sound to your **seller** sprite so the customer knows that payment is taking place. + +![Dodaj ikonkę dźwięku.](images/add-sound.png) + +[[[scratch3-add-sound]]] + +Add the `play sound until done`{:class="block3sound"} block to your script. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ play sound [machine v] until done +``` + +--- /task --- + +--- task --- + +Finish the sale. Set `total`{:class="block3variables"} back to `0` after payment, `say`{:class="block3looks"} goodbye and `broadcast`{:class="block3control"} `next customer`{:class="block3control"}. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +play sound [machine v] until done ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +**Test:** Test your project and make sure: +- The customer can check out with the correct sound effects +- The `total`{:class="block3variables"} gets set back to `0` after a customer pays or cancels. + +--- /task --- + + +--- task --- + +**Debugowanie:** Być może znajdziesz błędy w swoim projekcie, które musisz naprawić. + +Oto kilka typowych błędów: + +--- collapse --- +--- +title: The seller doesn't do anything when I click on them +--- + +You have quite a lot of sprites in your project. Make sure the `when this sprite clicked`{:class="block3events"} script is on your **seller** sprite. + +**Tip:** If you have added it to the wrong sprite, you can drag the code to the **seller** sprite, then delete it from the other sprite. + +--- /collapse --- + +--- collapse --- +--- +title: The words in the say blocks merge together +--- + +When you `join`{:class="block3operators"} two pieces together, you need to add a space at the end of your first piece of text or at the beginning of your second piece of text. + +These have a space at the end of the first part of the join: + +```blocks3 +say {join [That will be ](total)} for (2) seconds + +say {join [Thanks for shopping at ](name)} for (2) seconds +``` + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't reset after a sale +--- + +Check that you have used: + +```blocks3 +set [total v] to (0) +``` + +**not**: + +```blocks3 +change [total v] by (0) +``` + +--- /collapse --- + +--- collapse --- +--- +title: The seller isn't responding +--- + +Make sure the `operator`{:class="block3operators"} in the `if`{:class="block3control"} condition is the greater than symbol `>`{:class="block3operators"}. + +```blocks3 +if <(total) > [0]> then +``` + +--- /collapse --- + +**Tip:** Compare your code with the code examples. Are there any differences that shouldn't be there? + +--- /task --- + +--- save --- diff --git a/pl-PL/step_5.md b/pl-PL/step_5.md new file mode 100644 index 000000000..f9375ae7b --- /dev/null +++ b/pl-PL/step_5.md @@ -0,0 +1 @@ +## Szybki quiz \ No newline at end of file diff --git a/pl-PL/step_6.md b/pl-PL/step_6.md new file mode 100644 index 000000000..81536ebcd --- /dev/null +++ b/pl-PL/step_6.md @@ -0,0 +1,230 @@ +## Wyzwanie + +
+
+There are lots of features you could add to improve your customers' shopping experience. You don't need to add everything. Just add improvements that you think are important. +
+
+![](images/customer-count.png){:width="300px"} +
+
+ +--- task --- + +Add more items to sell. + +--- /task --- + +--- task --- + +Add more graphic and sound effects. + +--- /task --- + +--- task --- + +Paint your own scenery and other costumes. + +--- /task --- + +--- task --- + +Make another business and allow players to visit them both. + +--- /task --- + +Each example project in the [Introduction](.) has a ‘See Inside’ link for you to open the project in Scratch, and look at the code to get ideas and see how they work. You can 'See inside' the example projects to look at how they work. + +Example projects: **Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Vending machine**: [See inside](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} + +**Tip:** If you are logged in to a Scratch account, then you can use the **Backpack** to copy scripts or sprites to your project. + +[[[scratch-backpack]]] + +### Chatty checkout! + +Your checkout person (or machine) could ask whether the service was good, or if the customer is having a nice day. + +--- task --- + +Add `ask`{:class="block3sensing"} blocks to your **seller**'s `when this sprite clicked`{:class="block3events"} script and `say`{:class="block3looks"} different things depending on the customer's response. + +--- collapse --- + +--- +title: Ask and respond to questions +--- + +```blocks3 +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds +else +say [Maybe I should add more items to my shop] for [2] seconds +end +``` + +**Debug:** Check that you have spelled the options correctly in your code and in your answer. It's OK if you use capital letters, so "Yes" and "YES" will match "yes". + +Add multiple questions to create a chatbot or non-player character that you can talk to. + +--- /collapse --- + +--- /task --- + +### Bag the items + +--- task --- + +The Cool Shirts project has shirts that glide into a bag. + +--- collapse --- + +--- +title: Make items glide into a container +--- + +Add a **Container** sprite. You could use an existing sprite like the **Gift** or **Take out** sprite, or paint your own with simple shapes. + +Add a script to make the **Container** always appear at the front: + +```blocks3 +when flag clicked +forever +go to [front v] layer +end +``` + +Then you'll need to add code to each **Item** you have for sale to make them glide to the container when they are clicked: + +```blocks3 +when this sprite clicked ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite ++hide +change [total v] by [12] ++go to x: [-180] y: [68] // start position ++show +``` + +If you don't want the container there all the time, you can add scripts to make it show and hide at the right time: + +```blocks3 +when I receive [next customer v] +hide // previous customer takes the bag +wait [1] seconds +show +``` + +**Test:** Try your project and make sure items glide to the container and hide. + +**Debug:** Check your scripts carefully and make sure you have updated all of your **Item** sprites. You can look at [Cool Shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} if you need to see a working example. + +--- /collapse --- + +--- /task --- + +###  Stop adding items when the customer is at the checkout + +--- task --- + +Add a `shop`{:class="block3variables"} variable and use it to control when items can be added. + +--- collapse --- + +--- +title: Stop purchases when the customer is at the checkout +--- + +Add a `variable`{:class="block3variables"} called `shop` for all sprites. You will set this to `true` when the customer is in the shop and `false` when they are at the checkout. + +Select your **seller** sprite. Update the `when flag clicked`{:class="block3events"} script to allow shopping when your project starts: + +```blocks3 ++set [shop v] to [true] +``` + +Now add a block to change the `shop`{:class="block3variables"} to `false` at the beginning of your **seller**'s `when this sprite clicked`{:class="block3events"} script: + +```blocks3 ++set [shop v] to [false] +``` + +And a block to set the `shop`{:class="block3variables"} variable back to `true` at the end of the same script: + +```blocks3 ++set [shop v] to [true] +``` + +Now you need to update the items you sell to check the `shop`{:class="block3variables"} variable: + +```blocks3 +when this sprite clicked ++if <(shop) = [true]> then +start sound (Coin v) +change [total v] by [10] +end +``` +You will need to do this for every item you sell in your shop. + +**Test:** Click the green flag then try shopping. Check that you can still add items and checkout, but you can't add items once you have started checking out. + +**Debug:** Check your code really carefully. You can look at the [Space Fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project if you need to see a working example. + +--- /collapse --- + +--- /task --- + +--- task --- + +### Give the customer the option to cancel their shopping. + +--- collapse --- + +--- +title: Set up pay and cancel options +--- + +`Ask`{:class="block3sensing"} `Would you like to pay or cancel?`. Add an `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `pay` and inside it put your existing payment blocks. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end +``` + +Add a second `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `cancel` and inside it add code to cancel the order. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] +end +``` + +--- /collapse --- + +--- /task --- + +Take a look at our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio to see projects created by community members. + +--- save --- diff --git a/pl-PL/step_7.md b/pl-PL/step_7.md new file mode 100644 index 000000000..274b2522e --- /dev/null +++ b/pl-PL/step_7.md @@ -0,0 +1,9 @@ +## Udostępnij + +Jeśli jesteś w klubie, dlaczego nie podzielić się swoim projektem ze znajomymi i rówieśnikami? + +Zainspiruj społeczność Raspberry Pi Foundation swoim projektem! + +To submit your project to our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio, please complete [this form](https://form.raspberrypi.org/f/community-project-submissions){:target="_blank"}. + +![Example shop projects in the 'Intergalactic shopping market' Scratch studio.](images/studio-example.png) diff --git a/pl-PL/step_8.md b/pl-PL/step_8.md new file mode 100644 index 000000000..482ba5b56 --- /dev/null +++ b/pl-PL/step_8.md @@ -0,0 +1,21 @@ +## What can you do now? + +If you are following the [More Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch) path, you can move on to the [Don't fall in](https://projects.raspberrypi.org/en/projects/dont-fall-in) project. In this project, you will make a top-down game where you have to jump from platform to platform and not fall in. + +--- print-only --- + +![Don't fall in project](images/dont-fall-in-project.png) + +--- /print-only --- + +--- no-print --- + +
+ +
+ +**Instructions:** Press space or tap the Stage to jump. + +--- /no-print --- + +If you want to have more fun exploring Scratch, then you could try out any of [these projects](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). diff --git a/pt-BR/images/add-friend-projects.png b/pt-BR/images/add-friend-projects.png new file mode 100644 index 000000000..3ad5bafed Binary files /dev/null and b/pt-BR/images/add-friend-projects.png differ diff --git a/pt-BR/images/add-sound.png b/pt-BR/images/add-sound.png new file mode 100644 index 000000000..123e3628f Binary files /dev/null and b/pt-BR/images/add-sound.png differ diff --git a/pt-BR/images/add-your-projects.png b/pt-BR/images/add-your-projects.png new file mode 100644 index 000000000..016bd757d Binary files /dev/null and b/pt-BR/images/add-your-projects.png differ diff --git a/pt-BR/images/banner.png b/pt-BR/images/banner.png new file mode 100644 index 000000000..f9ac6e053 Binary files /dev/null and b/pt-BR/images/banner.png differ diff --git a/pt-BR/images/choose-backdrop-icon.png b/pt-BR/images/choose-backdrop-icon.png new file mode 100644 index 000000000..6d7d7e298 Binary files /dev/null and b/pt-BR/images/choose-backdrop-icon.png differ diff --git a/pt-BR/images/choose-sprite-icon.png b/pt-BR/images/choose-sprite-icon.png new file mode 100644 index 000000000..7b04d235d Binary files /dev/null and b/pt-BR/images/choose-sprite-icon.png differ diff --git a/pt-BR/images/create-studio.png b/pt-BR/images/create-studio.png new file mode 100644 index 000000000..0ce2440f2 Binary files /dev/null and b/pt-BR/images/create-studio.png differ diff --git a/pt-BR/images/customer-count.png b/pt-BR/images/customer-count.png new file mode 100644 index 000000000..e2c6ce61a Binary files /dev/null and b/pt-BR/images/customer-count.png differ diff --git a/pt-BR/images/dont-fall-in-project.png b/pt-BR/images/dont-fall-in-project.png new file mode 100644 index 000000000..003a7787c Binary files /dev/null and b/pt-BR/images/dont-fall-in-project.png differ diff --git a/pt-BR/images/example-strip.png b/pt-BR/images/example-strip.png new file mode 100644 index 000000000..cecace153 Binary files /dev/null and b/pt-BR/images/example-strip.png differ diff --git a/pt-BR/images/fruit.png b/pt-BR/images/fruit.png new file mode 100644 index 000000000..74b78e59a Binary files /dev/null and b/pt-BR/images/fruit.png differ diff --git a/pt-BR/images/icecream.png b/pt-BR/images/icecream.png new file mode 100644 index 000000000..c72e20f83 Binary files /dev/null and b/pt-BR/images/icecream.png differ diff --git a/pt-BR/images/item-amounts.png b/pt-BR/images/item-amounts.png new file mode 100644 index 000000000..9e6430405 Binary files /dev/null and b/pt-BR/images/item-amounts.png differ diff --git a/pt-BR/images/large-readout.png b/pt-BR/images/large-readout.png new file mode 100644 index 000000000..a3859b991 Binary files /dev/null and b/pt-BR/images/large-readout.png differ diff --git a/pt-BR/images/my-stuff-menu.png b/pt-BR/images/my-stuff-menu.png new file mode 100644 index 000000000..ad6992761 Binary files /dev/null and b/pt-BR/images/my-stuff-menu.png differ diff --git a/pt-BR/images/naming-studio.png b/pt-BR/images/naming-studio.png new file mode 100644 index 000000000..dc25e716e Binary files /dev/null and b/pt-BR/images/naming-studio.png differ diff --git a/pt-BR/images/new-variable.png b/pt-BR/images/new-variable.png new file mode 100644 index 000000000..d937fdd8a Binary files /dev/null and b/pt-BR/images/new-variable.png differ diff --git a/pt-BR/images/quiz2.png b/pt-BR/images/quiz2.png new file mode 100644 index 000000000..b5fe0cfb0 Binary files /dev/null and b/pt-BR/images/quiz2.png differ diff --git a/pt-BR/images/sprite-pane-size.png b/pt-BR/images/sprite-pane-size.png new file mode 100644 index 000000000..568608788 Binary files /dev/null and b/pt-BR/images/sprite-pane-size.png differ diff --git a/pt-BR/images/step2-image.png b/pt-BR/images/step2-image.png new file mode 100644 index 000000000..f52394751 Binary files /dev/null and b/pt-BR/images/step2-image.png differ diff --git a/pt-BR/images/step3-image.png b/pt-BR/images/step3-image.png new file mode 100644 index 000000000..441189fec Binary files /dev/null and b/pt-BR/images/step3-image.png differ diff --git a/pt-BR/images/step4-image.png b/pt-BR/images/step4-image.png new file mode 100644 index 000000000..c92bc3b0b Binary files /dev/null and b/pt-BR/images/step4-image.png differ diff --git a/pt-BR/images/studio-example.png b/pt-BR/images/studio-example.png new file mode 100644 index 000000000..f91ad3daa Binary files /dev/null and b/pt-BR/images/studio-example.png differ diff --git a/pt-BR/images/tshirt.png b/pt-BR/images/tshirt.png new file mode 100644 index 000000000..9e5481d85 Binary files /dev/null and b/pt-BR/images/tshirt.png differ diff --git a/pt-BR/images/upgrade-image.png b/pt-BR/images/upgrade-image.png new file mode 100644 index 000000000..57b6f29d1 Binary files /dev/null and b/pt-BR/images/upgrade-image.png differ diff --git a/pt-BR/images/vending.png b/pt-BR/images/vending.png new file mode 100644 index 000000000..deb1d50d3 Binary files /dev/null and b/pt-BR/images/vending.png differ diff --git a/pt-BR/meta.yml b/pt-BR/meta.yml new file mode 100644 index 000000000..fd2e0c8c5 --- /dev/null +++ b/pt-BR/meta.yml @@ -0,0 +1,37 @@ +--- +title: Próximo cliente por favor +hero_image: images/banner.png +description: Um projeto de simulação de loja onde o cliente pode comprar itens. +meta_title: Projetos de programação Scratch para crianças e adolescentes | Próximo cliente por favor +meta_description: Aprenda Scratch com os projetos de programação da Raspberry Pi Foundation para crianças e adolescentes. Faça um aplicativo Scratch onde o cliente possa comprar itens da sua loja. +version: 4 +listed: true +copyedit: false +last_tested: "2021-03-26" +steps: + - + title: Você vai fazer + - + title: Your shop + - + title: Itens à venda + completion: + - engaged + - + title: Compras + completion: + - internal + - + title: Queimar combustível + knowledge_quiz: + path: quiz1 + version: 1 + questions: 3 + passing_score: 3 + completion: + - external + - + title: Alcançando a órbita + challenge: true + - + title: Melhore o seu projeto diff --git a/pt-BR/quiz1/question_1.md b/pt-BR/quiz1/question_1.md new file mode 100644 index 000000000..964082d21 --- /dev/null +++ b/pt-BR/quiz1/question_1.md @@ -0,0 +1,72 @@ +## Quiz rápido + +Responda três perguntas. Existem dicas para guiá-lo para a resposta correta. + +Depois de responder a cada pergunta, clique em **Verificar minha resposta**. + +Divirta-se! + +--- question --- + +--- +legend: Question 1 of 3 +--- + +Um projeto de loja usa uma variável `total`{:class="block3variables"} para armazenar o total de cada cliente. + ++ Um cliente adiciona itens que totalizam `50` e paga ++ Um novo cliente adiciona itens que totalizam `40` mas o `total`{:class="block3variables"} agora apresenta `90` para o segundo cliente + +Qual bloco você precisaria adicionar ao script de pagamento para que o total voltasse para `0` quando cada cliente pagasse? + +--- choices --- + +- ( ) +```blocks3 +change [total v] by [0] +``` + + --- feedback --- + +Não exatamente, `total`{:class="block3variables"} deveria ser `0` depois que um cliente paga, mas não é o `altere`{:class="block3variables"} bloco que você precisa. + + --- /feedback --- + +- ( ) +```blocks3 +set [total v] to [40] +``` + + --- feedback --- + + Não exatamente, isso funcionaria para o segundo cliente, mas o `total`{:class="block3variables"} seria errado para outros clientes. + + --- /feedback --- + +- (x) + +```blocks3 +set [total v] to [0] +``` + + --- feedback --- + +Sim, está correto. Você precisa `definir`{:class="block3variables"} o `total`{:class="block3variables"} para `0` após cada pagamento dos clientes. + + --- /feedback --- + +- ( ) + +```blocks3 +change [total v] by [-50] +``` + + --- feedback --- + +Isso funcionaria neste exemplo, mas e se o primeiro cliente gastasse uma quantia diferente? Sua solução precisa funcionar quando o cliente anterior gasta valores diferentes. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/pt-BR/quiz1/question_2.md b/pt-BR/quiz1/question_2.md new file mode 100644 index 000000000..31befc54d --- /dev/null +++ b/pt-BR/quiz1/question_2.md @@ -0,0 +1,63 @@ + +--- question --- + +--- +legend: Question 2 of 3 +--- + +Em uma loja, o **vendedor** tem este código no script de checkout: + +```blocks3 +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds +else +say [Sorry to hear that.] for [2] seconds +end +``` + +Quando o código é executado, o usuário digita a resposta 'ótimo'. O que o sprite **vendedor** dirá? + +![Uma caixa de 'perguntar' com a palavra 'ótimo' escrita.](images/quiz2.png) + +--- choices --- + +- (x) O **Vendedor** dirá `Lamento ouvir isso.` + + --- feedback --- + + Sim. Os humanos sabem que 'ótimo' significa o mesmo que 'bom', mas '=' verifica se as letras são iguais. + + A **condição** `resposta`{:class="block3sensing"} = `boa` é 'falsa', então `diga`{: O bloco class="block3looks"} na parte `else`{:class="block3control"} será executado. + + --- /feedback --- + +- ( ) O **vendedor** dirá `Isso é fantástico!` + + --- feedback --- + +Não, apenas a resposta exata `boa` fará com que o **vendedor** diga `Isso é fantástico!`. Olhe o código novamente para ver qual mensagem o **vendedor** dirá para todas as respostas que não são `boas`. + +**Dica:** 'Bom' ou 'BOM' corresponderia a 'bom'. + + --- /feedback --- + +- ( ) O **vendedor** não fala nada. + + --- feedback --- + +Não, o vendedor **** sempre dirá algo. Observe atentamente o código para ver qual será a mensagem. + + --- /feedback --- + +- ( ) O **vendedor** dirá `ótimo`. + + --- feedback --- + +Não, o **cliente** digitou a resposta 'ótimo', mas o **vendedor** não disse a resposta. Observe atentamente o código para ver qual será a mensagem. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/pt-BR/quiz1/question_3.md b/pt-BR/quiz1/question_3.md new file mode 100644 index 000000000..fec121746 --- /dev/null +++ b/pt-BR/quiz1/question_3.md @@ -0,0 +1,48 @@ + +--- question --- + +--- +legend: Question 3 of 3 +--- + +Your project is not working. What should you do? + +--- choices --- + +- ( ) Entrar em pânico! + + --- feedback --- + + Isso não vai ajudar. Você precisa pensar com clareza para corrigir problemas de programação. + + --- /feedback --- + +- ( ) Desistir + + --- feedback --- + + There are lots of things you could try. Bons programadores geralmente erram na primeira vez e aprendem muito com seus erros. + + --- /feedback --- + +- (x) Leia o código com atenção e tente realizar seu debug. + + --- feedback --- + + Sim. Corrigir bugs faz parte da codificação. Quanto mais você pratica, mais experiência você ganha e mais fácil fica encontrar e corrigir bugs. + + --- /feedback --- + +- ( ) Ficar irritado com o computador + + --- feedback --- + +Um computador só faz o que mandamos, então ficar irritado com ele não é lógico. + +Ficar irritado não ajudará a resolver o problema, pois tornará mais difícil pensar com clareza. + + --- /feedback --- + +--- /choices --- + +--- /question --- diff --git a/pt-BR/scratch-comments.txt b/pt-BR/scratch-comments.txt new file mode 100644 index 000000000..a621d57f4 --- /dev/null +++ b/pt-BR/scratch-comments.txt @@ -0,0 +1,9 @@ +digite o nome da sua empresa + +nome da sua empresa + +use o nome do seu sprite Container + +posições iniciais + +cliente anterior leva a sacola diff --git a/pt-BR/scratch-translatable.txt b/pt-BR/scratch-translatable.txt new file mode 100644 index 000000000..c267f5e5f --- /dev/null +++ b/pt-BR/scratch-translatable.txt @@ -0,0 +1,49 @@ +nome + +minha loja + +próximo cliente + +Próximo cliente por favor! + +total + +Isso será + +Obrigado por comprar em + +Você gostaria de pagar ou cancelar? + +pagar + +cancelar + +Ok. Sem problemas + +Clique nos itens que você deseja + +Você encontrou tudo o que queria hoje? + +sim + +Isso é fantástico! + +Talvez eu devesse adicionar mais itens à minha loja + +Sacola + +1 colher + +cone + +loja + +sim + +falso + +Como você está hoje? + +bom + +Lamento ouvir isso. diff --git a/pt-BR/solutions/Cool Shirts.sb3 b/pt-BR/solutions/Cool Shirts.sb3 new file mode 100644 index 000000000..fdc5852be Binary files /dev/null and b/pt-BR/solutions/Cool Shirts.sb3 differ diff --git a/pt-BR/solutions/Fresh Space Fruit.sb3 b/pt-BR/solutions/Fresh Space Fruit.sb3 new file mode 100644 index 000000000..bbbe9eaac Binary files /dev/null and b/pt-BR/solutions/Fresh Space Fruit.sb3 differ diff --git a/pt-BR/solutions/Vending machine.sb3 b/pt-BR/solutions/Vending machine.sb3 new file mode 100644 index 000000000..42dec16a7 Binary files /dev/null and b/pt-BR/solutions/Vending machine.sb3 differ diff --git a/pt-BR/solutions/ice cream shop.sb3 b/pt-BR/solutions/ice cream shop.sb3 new file mode 100644 index 000000000..d6322242c Binary files /dev/null and b/pt-BR/solutions/ice cream shop.sb3 differ diff --git a/pt-BR/step_1.md b/pt-BR/step_1.md new file mode 100644 index 000000000..48e78e9be --- /dev/null +++ b/pt-BR/step_1.md @@ -0,0 +1,52 @@ +## O que você vai fazer + +Faça um aplicativo de loja onde o cliente possa comprar itens da sua loja. O projeto será visto em primeira pessoa onde o jogador é um cliente. + +--- no-print --- + +Click on Space Fruit to buy them and watch the total go up. Quando estiver pronto, clique em Kiran para conferir. + ++ O que acontece se você tentar finalizar a compra antes de escolher qualquer fruta? ++ Como você acha que o projeto sabe que você ainda não adicionou nenhuma fruta? + +
+**Fresh Space Fruit**: [Veja o interior](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +
+ +
+
+ +### Obtenha ideias 💭 + +Clique nos sprites **vendedor** para comprar itens: + +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +
+ +
+ +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +
+ +
+ +**⭐ Pins de orgulho** (projeto comunitário em destaque) + +Clique nos pins do orgulho para adicioná-los à sua sacola de compras: + +
+ +
+ +--- /no-print --- + +--- print-only --- + +### Obtenha ideias 💭 + +Você tomará algumas decisões de design para criar seu personagem. See inside example projects in the Scratch 2: Next customer please! Scratch studio at https://scratch.mit.edu/studios/29611454 + +![Exemplos de projetos](images/fruit.png) ![Exemplos de projetos](images/tshirt.png) ![Exemplos de projetos](images/icecream.png) ![Exemplos de projetos](images/vending.png) + +--- /print-only --- + diff --git a/pt-BR/step_2.md b/pt-BR/step_2.md new file mode 100644 index 000000000..db36544b6 --- /dev/null +++ b/pt-BR/step_2.md @@ -0,0 +1,80 @@ +## Your shop + +
+
+What is your shop idea? Pode ser algo realista, algo de um livro ou filme que você goste, ou algo completamente bobo. +
+
+![](images/step2-image.png){:width="300px"} +
+
+ +--- task --- + +Abra um [novo projeto Scratch](http://rpf.io/scratch-new){: target = "_ blank"} e observe a gama de atores e cenários que você pode usar. Spend some time thinking about your shop idea. + +--- /task --- + +--- task --- + +**Choose a Backdrop** or paint your own backdrop. + +![](images/choose-backdrop-icon.png) + ++ Um cenário da biblioteca Scratch ou um cenário de cor básica + +--- /task --- + +--- task --- + +**Choose a Sprite** and add or paint extra scenery sprites. + +![](images/choose-sprite-icon.png) + +--- /task --- + +--- task --- + +Add more scenery. ++ Uma mesa, balcão ou janela para as vendas ++ Uma prateleira ou estante para colocar itens – você pode pintar no cenário + +--- /task --- + +--- task --- + +Adicione um sprite para representar o vendedor. + +Você pode escolher: ++ Uma pessoa ou personagem não jogável, como lojista, fazendeiro ou bibliotecário ++ Uma máquina como uma máquina de venda automática, jukebox ou caixa registradora + +![](images/choose-sprite-icon.png) + +--- /task --- + +### Welcome your first customer. + +--- task --- + +Click on your **seller** sprite and add a `broadcast`{:class="block3events"} block. Create a new message called `next customer`. + +```blocks3 +when flag clicked ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +Create a new script for your **seller** sprite to `say`{:class="block3looks"} `Next customer please` when they receive the `broadcast`{:class="block3events"} `next customer`{:class="block3events"}. + +```blocks3 +when I receive [next customer v] +say [Next customer please!] for (2) seconds +``` + +--- /task --- + +--- save --- diff --git a/pt-BR/step_3.md b/pt-BR/step_3.md new file mode 100644 index 000000000..614eb7abc --- /dev/null +++ b/pt-BR/step_3.md @@ -0,0 +1,128 @@ +## Itens à venda + +
+
+Sua loja precisa de itens para vender. Cada item terá um preço que será adicionado a uma variável `total`{:class="block3variables"}. +
+
+![](images/step3-image.png){:width="300px"} +
+
+ +Você precisará acompanhar quanto seu cliente está gastando. + +--- task --- + +Adicione uma nova variável chamada `total`{:class="block3variables"} para todos os sprites. + +Clique no sprite do seu **vendedor** e adicione um script para `definir`{:class="block3variables"} o `total`{:class="block3variables"} para `0` quando o projeto começa. + +[[[scratch3-create-set-variable]]] + +--- /task --- + +Quais **itens** seus clientes comprarão? ++ Algum tipo de comida ou bebida ++ Equipamentos esportivos, brinquedos ou bugigangas ++ Varinhas mágicas, poções ou livros de feitiços ++ Roupas ou outros itens de moda ++ Your own idea + +--- task --- + +Adicione um sprite para o primeiro **item** que você venderá em sua loja. + +Se desejar, você pode adicionar um preço à fantasia usando a ferramenta de texto do editor Paint. Ou adicione um preço ao fundo e posicione o item próximo a ele. + +![Exemplos de itens com valores escritos ao lado deles.](images/item-amounts.png) + +--- /task --- + +--- task --- + +Adicione um script para `alterar`{:class="block3variables"} o `total`{:class="block3variables"} pelo preço do seu item quando o cliente clica no sprite. + +--- collapse --- +--- +title: Click to add an item +--- + +```blocks3 +when this sprite clicked +start sound (Coin v) +change [total v] by [10] +``` + +--- /collapse --- + +Também é uma boa ideia `reproduzir um som`{:class="block3sound"} para dar ao cliente feedback de que ele adicionou um item. + +![O ícone para adicionar um som](images/add-sound.png) + +[[[scratch3-add-sound]]] + +--- /task --- + +--- task --- + +**Teste:** Clique no seu item e verifique se o valor da variável `total`{:class="block3variables"} aumenta conforme o preço do item e você ouve o efeito sonoro. Clique mais vezes para ver o total subir. + +Clique na bandeira verde para iniciar seu projeto e certifique-se de que o `total`{:class="block3variables"} comece em `0`. + +--- /task --- + +--- task --- + +Adicione mais itens à sua loja. + +Você também pode: ++ Duplicar o primeiro item e adicionar uma nova fantasia no editor Paint ++ Adicionar um sprite e arrastar o script `quando a flag é clicada`{:class="block3events"} do primeiro item para o seu novo item + +Adicione uma etiqueta de preço à fantasia ou cenário, se estiver usando-os. + +--- /task --- + +--- task --- + +Clique em seu novo sprite **Item** na lista de Sprites e clique na guia **Código**. + +Altere o valor que `total`{:class="block3variables"} muda para o preço do seu novo item. + +--- /task --- + +--- task --- + +**Teste:** Clique na bandeira verde para iniciar seu projeto e clique nos itens para adicioná-los. Verifique se o total aumenta na quantidade correta cada vez que você clica em um item. + +Se você adicionou etiquetas de preço, certifique-se de que elas correspondam ao valor adicionado ao `total`{:class="block3variables"}, ou seus clientes ficarão confusos! + +--- /task --- + +--- task --- + +**Debug:** Você pode encontrar alguns bugs em seu projeto que precisa corrigir. Aqui estão alguns bugs comuns. + +--- collapse --- +--- +title: The total doesn't go to 0 when I click the green flag +--- + +Verifique se você definiu o valor inicial da variável `total`{:class="block3variables"} no script `quando a bandeira foi clicada`{:class=" block3events"} em seu sprite **vendedor**. + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't increase by the correct amount when I click on an item +--- + +Verifique se cada item tem um script `quando este sprite é clicado`{:class="block3events"} que altera o `total`{:class="block3variables"} pelo valor correto daquele item — você pode ter alterado o preço do sprite errado. + +Verifique se você usou o bloco `alterar`{:class="block3variables"} e não o bloco `definir`{:class="block3variables"} para alterar o `total`{:class="block3variables"}. Você precisa usar `alterar`{:class="block3variables"} para adicionar o preço ao total, você não deseja definir o total para o preço do item que acabou de ser adicionado. + +--- /collapse --- + +--- /task --- + +--- save --- diff --git a/pt-BR/step_4.md b/pt-BR/step_4.md new file mode 100644 index 000000000..076a2b2fe --- /dev/null +++ b/pt-BR/step_4.md @@ -0,0 +1,141 @@ +## Compras + +
+
+ +O sprite do **vendedor** precisa: +- perguntar se o cliente está pronto para pagar pelos itens +- receber o pagamento +- preparar-se para o próximo cliente +
+
+![](images/step4-image.png){:width="300px"} +
+
+ +Ao terminar de escolher os itens, o cliente clicará no sprite **vendedor** para pagar. + +--- task --- + + Diga ao cliente quanto custarão seus itens. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +``` + +--- /task --- + +--- task --- + +Adicione um som de pagamento ao seu sprite **vendedor** para que o cliente saiba que o pagamento está sendo realizado. + +![O ícone para adicionar um som](images/add-sound.png) + +[[[scratch3-add-sound]]] + +Adicione o bloco `reproduzir som até terminar`{:class="block3sound"} ao seu script. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ play sound [machine v] until done +``` + +--- /task --- + +--- task --- + +Conclua a venda. Defina `total`{:class="block3variables"} de volta para `0` após o pagamento, `diga`{:class ="block3looks"} adeus e `transmita`{:class="block3control"} `próximo cliente`{:class="block3control"}. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +play sound [machine v] until done ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) +``` + +--- /task --- + +--- task --- + +**Teste:** Teste seu projeto e certifique-se de: +- O cliente pode faz o check-out com os efeitos sonoros corretos +- O `total`{:class="block3variables"} volta para `0` depois que um cliente paga ou cancela. + +--- /task --- + + +--- task --- + +**Debug:** Você pode encontrar alguns bugs em seu projeto que precisa corrigir. + +Aqui estão alguns bugs comuns: + +--- collapse --- +--- +title: The seller doesn't do anything when I click on them +--- + +Você tem bastante sprites em seu projeto. Certifique-se de que o script de `quando o sprite é clicado`{:class="block3events"} esteja em seu sprite **vendedor**. + +**Dica:** Se você o adicionou ao sprite errado, você pode arrastar o código para o sprite do **vendedor** e excluí-lo do outro sprite. + +--- /collapse --- + +--- collapse --- +--- +title: The words in the say blocks merge together +--- + +Quando você `junta`{:class="block3operators"} duas peças juntas, você precisa adicionar um espaço no final da primeira parte do texto ou no início da segunda parte do texto. + +Esses possuem um espaço no final da primeira parte da junção: + +```blocks3 +say {join [That will be ](total)} for (2) seconds + +say {join [Thanks for shopping at ](name)} for (2) seconds +``` + +--- /collapse --- + +--- collapse --- +--- +title: The total doesn't reset after a sale +--- + +Verifique se você usou: + +```blocks3 +set [total v] to (0) +``` + +**não**: + +```blocks3 +change [total v] by (0) +``` + +--- /collapse --- + +--- collapse --- +--- +title: The seller isn't responding +--- + +Certifique-se que o `operador`{:class="block3operators"} na condição `se`{:class="block3control"} é maior que o símbolo `>`{:class="block3operators"}. + +```blocks3 +if <(total) > [0]> then +``` + +--- /collapse --- + +**Dica:** Compare seu código com os exemplos de código. Existem diferenças que não deveriam existir? + +--- /task --- + +--- save --- diff --git a/pt-BR/step_5.md b/pt-BR/step_5.md new file mode 100644 index 000000000..360b181c9 --- /dev/null +++ b/pt-BR/step_5.md @@ -0,0 +1 @@ +## Teste Rápido \ No newline at end of file diff --git a/pt-BR/step_6.md b/pt-BR/step_6.md new file mode 100644 index 000000000..db2168ca6 --- /dev/null +++ b/pt-BR/step_6.md @@ -0,0 +1,230 @@ +## Desafio + +
+
+Existem muitos recursos que você pode adicionar para melhorar a experiência de compra de seus clientes. Você não precisa adicionar tudo. Basta adicionar melhorias que você considera importantes. +
+
+![](images/customer-count.png){:width="300px"} +
+
+ +--- task --- + +Adicione mais itens para vender. + +--- /task --- + +--- task --- + +Adicione mais efeitos gráficos e sonoros. + +--- /task --- + +--- task --- + +Pinte seu próprio cenário e outras fantasias. + +--- /task --- + +--- task --- + +Faça outro negócio e permita que os jogadores visitem os dois. + +--- /task --- + +Cada projeto de exemplo na [Introdução](.) tem um link 'Ver interior' para você abrir o projeto no Scratch, olhar o código para ter ideias e ver como elas funcionam. Você pode 'ver por dentro' dos projetos de exemplo para ver como eles funcionam. + +Example projects: **Fresh Space Fruit**: [See inside](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Cool Shirts**: [See inside](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Ice cream shop**: [See inside](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Vending machine**: [See inside](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} + +**Tip:** If you are logged in to a Scratch account, then you can use the **Backpack** to copy scripts or sprites to your project. + +[[[scratch-backpack]]] + +### Chatty checkout! + +Your checkout person (or machine) could ask whether the service was good, or if the customer is having a nice day. + +--- task --- + +Add `ask`{:class="block3sensing"} blocks to your **seller**'s `when this sprite clicked`{:class="block3events"} script and `say`{:class="block3looks"} different things depending on the customer's response. + +--- collapse --- + +--- +title: Ask and respond to questions +--- + +```blocks3 +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds +else +say [Maybe I should add more items to my shop] for [2] seconds +end +``` + +**Debug:** Check that you have spelled the options correctly in your code and in your answer. It's OK if you use capital letters, so "Yes" and "YES" will match "yes". + +Add multiple questions to create a chatbot or non-player character that you can talk to. + +--- /collapse --- + +--- /task --- + +### Bag the items + +--- task --- + +The Cool Shirts project has shirts that glide into a bag. + +--- collapse --- + +--- +title: Make items glide into a container +--- + +Add a **Container** sprite. You could use an existing sprite like the **Gift** or **Take out** sprite, or paint your own with simple shapes. + +Add a script to make the **Container** always appear at the front: + +```blocks3 +when flag clicked +forever +go to [front v] layer +end +``` + +Then you'll need to add code to each **Item** you have for sale to make them glide to the container when they are clicked: + +```blocks3 +when this sprite clicked ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite ++hide +change [total v] by [12] ++go to x: [-180] y: [68] // start position ++show +``` + +If you don't want the container there all the time, you can add scripts to make it show and hide at the right time: + +```blocks3 +when I receive [next customer v] +hide // previous customer takes the bag +wait [1] seconds +show +``` + +**Test:** Try your project and make sure items glide to the container and hide. + +**Debug:** Check your scripts carefully and make sure you have updated all of your **Item** sprites. You can look at [Cool Shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} if you need to see a working example. + +--- /collapse --- + +--- /task --- + +###  Stop adding items when the customer is at the checkout + +--- task --- + +Add a `shop`{:class="block3variables"} variable and use it to control when items can be added. + +--- collapse --- + +--- +title: Stop purchases when the customer is at the checkout +--- + +Add a `variable`{:class="block3variables"} called `shop` for all sprites. You will set this to `true` when the customer is in the shop and `false` when they are at the checkout. + +Select your **seller** sprite. Update the `when flag clicked`{:class="block3events"} script to allow shopping when your project starts: + +```blocks3 ++set [shop v] to [true] +``` + +Now add a block to change the `shop`{:class="block3variables"} to `false` at the beginning of your **seller**'s `when this sprite clicked`{:class="block3events"} script: + +```blocks3 ++set [shop v] to [false] +``` + +And a block to set the `shop`{:class="block3variables"} variable back to `true` at the end of the same script: + +```blocks3 ++set [shop v] to [true] +``` + +Now you need to update the items you sell to check the `shop`{:class="block3variables"} variable: + +```blocks3 +when this sprite clicked ++if <(shop) = [true]> then +start sound (Coin v) +change [total v] by [10] +end +``` +You will need to do this for every item you sell in your shop. + +**Test:** Click the green flag then try shopping. Check that you can still add items and checkout, but you can't add items once you have started checking out. + +**Debug:** Check your code really carefully. You can look at the [Space Fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project if you need to see a working example. + +--- /collapse --- + +--- /task --- + +--- task --- + +### Give the customer the option to cancel their shopping. + +--- collapse --- + +--- +title: Set up pay and cancel options +--- + +`Ask`{:class="block3sensing"} `Would you like to pay or cancel?`. Add an `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `pay` and inside it put your existing payment blocks. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end +``` + +Add a second `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `cancel` and inside it add code to cancel the order. + +```blocks3 +when this sprite clicked +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then +play sound [machine v] until done +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] +end ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] +end +``` + +--- /collapse --- + +--- /task --- + +Take a look at our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio to see projects created by community members. + +--- save --- diff --git a/pt-BR/step_7.md b/pt-BR/step_7.md new file mode 100644 index 000000000..e1fc20874 --- /dev/null +++ b/pt-BR/step_7.md @@ -0,0 +1,9 @@ +## Compartilhar + +Se você faz parte de um clube, por que não compartilhar seu projeto com os amigos? + +Inspire a comunidade da Raspberry Pi Foundation com seu projeto! + +To submit your project to our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio, please complete [this form](https://form.raspberrypi.org/f/community-project-submissions){:target="_blank"}. + +![Exemplos de projetos de lojas no estúdio Scratch 'Mercado de compras intergaláctico'.](images/studio-example.png) diff --git a/pt-BR/step_8.md b/pt-BR/step_8.md new file mode 100644 index 000000000..c91cf899b --- /dev/null +++ b/pt-BR/step_8.md @@ -0,0 +1,21 @@ +## What can you do now? + +If you are following the [More Scratch](https://projects.raspberrypi.org/en/raspberrypi/more-scratch) path, you can move on to the [Don't fall in](https://projects.raspberrypi.org/en/projects/dont-fall-in) project. Neste projeto você fará um jogo de cima para baixo onde terá que pular de plataforma em plataforma e não cair. + +--- print-only --- + +![Projeto Não caia dentro](images/dont-fall-in-project.png) + +--- /print-only --- + +--- no-print --- + +
+ +
+ +**Instructions:** Press space or tap the Stage to jump. + +--- /no-print --- + +If you want to have more fun exploring Scratch, then you could try out any of [these projects](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). diff --git a/uk-UA/meta.yml b/uk-UA/meta.yml index 2fc593594..0a7620b3e 100644 --- a/uk-UA/meta.yml +++ b/uk-UA/meta.yml @@ -9,15 +9,20 @@ listed: true copyedit: false last_tested: "2021-03-26" steps: - - title: Що ти зробиш - - title: Твій магазин - - title: Товари + - + title: Що ти зробиш + - + title: Твій магазин + - + title: Товари completion: - engaged - - title: Купівля + - + title: Купівля completion: - internal - - title: Швидкий тест + - + title: Швидкий тест knowledge_quiz: path: quiz1 version: 1 @@ -25,6 +30,8 @@ steps: passing_score: 3 completion: - external - - title: Додаткове завдання + - + title: Додаткове завдання challenge: true - - title: Пошир свій проєкт \ No newline at end of file + - + title: Пошир свій проєкт diff --git a/uk-UA/quiz1/question_1.md b/uk-UA/quiz1/question_1.md index 49579eb05..64a51f0b8 100644 --- a/uk-UA/quiz1/question_1.md +++ b/uk-UA/quiz1/question_1.md @@ -9,7 +9,7 @@ --- question --- --- -legend: Питання 1 з 3 +legend: Question 1 of 3 --- У проєкті магазину використовується змінна `всього`{:class="block3variables"} для зберігання загальної суми для кожного покупця. @@ -23,7 +23,7 @@ legend: Питання 1 з 3 - ( ) ```blocks3 -change [всього v] by [0] +change [total v] by [0] ``` --- feedback --- @@ -34,7 +34,7 @@ change [всього v] by [0] - ( ) ```blocks3 -set [всього v] to [40] +set [total v] to [40] ``` --- feedback --- @@ -46,7 +46,7 @@ set [всього v] to [40] - (x) ```blocks3 -set [всього v] to [0] +set [total v] to [0] ``` --- feedback --- @@ -58,7 +58,7 @@ set [всього v] to [0] - ( ) ```blocks3 -change [всього v] by [-50] +change [total v] by [-50] ``` --- feedback --- diff --git a/uk-UA/quiz1/question_2.md b/uk-UA/quiz1/question_2.md index c30e5b50e..851b26a5b 100644 --- a/uk-UA/quiz1/question_2.md +++ b/uk-UA/quiz1/question_2.md @@ -2,17 +2,17 @@ --- question --- --- -legend: Питання 2 з 3 +legend: Question 2 of 3 --- У магазині **продавець** має цей код у скрипті оформлення замовлення: ```blocks3 -ask [Як справи?] and wait -if <(answer) = [добре]> then -say [Прекрасно!] for [2] seconds +ask [How are you today?] and wait +if <(answer) = [good]> then +say [That's fantastic!] for [2] seconds else -say [Прикро це чути.] for [2] seconds +say [Sorry to hear that.] for [2] seconds end ``` diff --git a/uk-UA/quiz1/question_3.md b/uk-UA/quiz1/question_3.md index 0c6bd001b..136bef54d 100644 --- a/uk-UA/quiz1/question_3.md +++ b/uk-UA/quiz1/question_3.md @@ -2,7 +2,7 @@ --- question --- --- -legend: Питання 3 з 3 +legend: Question 3 of 3 --- Твій проєкт не працює. Що тобі треба робити? diff --git a/uk-UA/step_1.md b/uk-UA/step_1.md index 01eff753e..c7c52ab03 100644 --- a/uk-UA/step_1.md +++ b/uk-UA/step_1.md @@ -10,9 +10,9 @@ + На твою думку, як проєкт дізнається, що ти ще не вибрав/-ла жодного фрукта?
-**Свіжі космічні фрукти**: [Переглянути код](https://scratch.mit.edu/projects/1107251106/editor){:target="_blank"} +**Свіжі космічні фрукти**: [Переглянути код](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"}
- +
@@ -20,14 +20,14 @@ Натисни на спрайт **продавця**, щоб купити товари: -**Круті футболки**: [Переглянути код](https://scratch.mit.edu/projects/1107247335/editor){:target="_blank"} +**Круті футболки**: [Переглянути код](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"}
- +
-**Магазин морозива**: [Переглянути код](https://scratch.mit.edu/projects/1107253384/editor){:target="_blank"} +**Магазин морозива**: [Переглянути код](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"}
- +
**⭐ Значки прайду** (проєкт спільноти) @@ -46,10 +46,7 @@ Ти матимеш прийняти дизайнерські рішення, щоб створити свого персонажа. Переглянь приклади проєктів у студії Скретч «Наступний покупець!» за адресою: https://scratch.mit.edu/studios/29611454 -![Приклад проєкту](images/fruit.png) -![Приклад проєкту](images/tshirt.png) -![Приклад проєкту](images/icecream.png) -![Приклад проєкту](images/vending.png) +![Приклад проєкту](images/fruit.png) ![Приклад проєкту](images/tshirt.png) ![Приклад проєкту](images/icecream.png) ![Приклад проєкту](images/vending.png) --- /print-only --- diff --git a/uk-UA/step_2.md b/uk-UA/step_2.md index f76e528eb..2427d9f2e 100644 --- a/uk-UA/step_2.md +++ b/uk-UA/step_2.md @@ -57,7 +57,7 @@ --- task --- -Натисни на спрайт**продавця** і додай блок `оповістити`{:class="block3control"}. Створи нове повідомлення під назвою `наступний покупець`. +Click on your **seller** sprite and add a `broadcast`{:class="block3events"} block. Створи нове повідомлення під назвою `наступний покупець`. ```blocks3 when flag clicked diff --git a/uk-UA/step_3.md b/uk-UA/step_3.md index d3cc1d326..2afb23eaf 100644 --- a/uk-UA/step_3.md +++ b/uk-UA/step_3.md @@ -44,13 +44,13 @@ --- collapse --- --- -title: Додавання товару +title: Click to add an item --- ```blocks3 when this sprite clicked start sound (Coin v) -change [всього v] by [10] +change [total v] by [10] ``` --- /collapse --- @@ -105,16 +105,16 @@ change [всього v] by [10] --- collapse --- --- -title: Сума не перетворюється на 0, коли я натискаю зелений прапорець +title: The total doesn't go to 0 when I click the green flag --- -Переконайся, що ти встановив/-ла початкове значення змінної `всього`{:class="block3variables"} у скрипті `коли зелений прапорець натиснуто`{:class="block3events"} у спрайті **продавця**. +Переконайся, що ти встановив/-ла початкове значення змінної `всього`{:class="block3variables"} у скрипті `коли зелений прапорець натиснуто`{:class=" block3events"} у спрайті **продавця**. --- /collapse --- --- collapse --- --- -title: Сума збільшується на неправильну величину, коли я натискаю на товар +title: The total doesn't increase by the correct amount when I click on an item --- Переконайся, що кожен товар має скрипт `коли спрайт натиснуто`{:class="block3events"}, який змінює значення змінної `всього`{:class="block3variables"} на правильну суму для цього товару — можливо, ти змінив/-ла ціну в іншому спрайті. diff --git a/uk-UA/step_4.md b/uk-UA/step_4.md index af66f0aef..8816e32d9 100644 --- a/uk-UA/step_4.md +++ b/uk-UA/step_4.md @@ -21,7 +21,7 @@ ```blocks3 when this sprite clicked -say (join [З вас ] (всього)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds ``` --- /task --- @@ -38,7 +38,7 @@ say (join [З вас ] (всього)) for (2) seconds ```blocks3 when this sprite clicked -say (join [З вас ] (всього)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds + play sound [machine v] until done ``` @@ -46,15 +46,15 @@ say (join [З вас ] (всього)) for (2) seconds --- task --- -Заверши продаж. Знову надай змінній `всього`{:class="block3variables"} значення `0` після оплати, `скажи`{:class="block3looks"} «до побачення» та передай `повідомлення`{:class="block3control"} `наступний покупець`{:class="block3control"}. +Заверши продаж. Знову надай змінній `всього`{:class="block3variables"} значення `0` після оплати, `скажи`{:class ="block3looks"} «до побачення» та передай `повідомлення`{:class="block3control"} `наступний покупець`{:class="block3control"}. ```blocks3 when this sprite clicked -say (join [З вас ] (всього)) for (2) seconds +say (join [That will be ] (total)) for (2) seconds play sound [machine v] until done -+ set [всього v] to (0) -+ say (join [Дякую, що завітали до ] (назва)) for (2) seconds -+ broadcast (наступний покупець v) ++ set [total v] to (0) ++ say (join [Thanks for shopping at ] (name)) for (2) seconds ++ broadcast (next customer v) ``` --- /task --- @@ -76,7 +76,7 @@ play sound [machine v] until done --- collapse --- --- -title: Продавець нічого не робить, коли я натискаю на нього +title: The seller doesn't do anything when I click on them --- У твоєму проєкті досить багато спрайтів. Переконайся, що у спрайті **продавця** є скрипт `коли спрайт натиснуто`{:class="block3events"}. @@ -87,7 +87,7 @@ title: Продавець нічого не робить, коли я натис --- collapse --- --- -title: Слова у блоках «говорити» зливаються +title: The words in the say blocks merge together --- Коли ти `з’єднуєш`{:class="block3operators"} два фрагменти, тобі потрібно додати пробіл у кінці першого або на початку другого фрагмента тексту. @@ -95,35 +95,35 @@ title: Слова у блоках «говорити» зливаються Ці речення мають пробіл у кінці першої частини: ```blocks3 -say {join [З вас ](всього)} for (2) seconds +say {join [That will be ](total)} for (2) seconds -say {join [Дякую, що завітали до ](назва)} for (2) seconds +say {join [Thanks for shopping at ](name)} for (2) seconds ``` --- /collapse --- --- collapse --- --- -title: Загальна сума не скидається після купівлі +title: The total doesn't reset after a sale --- Перевір, чи в тебе використано: ```blocks3 -set [всього v] to (0) +set [total v] to (0) ``` **а не**: ```blocks3 -change [всього v] by (0) +change [total v] by (0) ``` --- /collapse --- --- collapse --- --- -title: Продавець не відповідає +title: The seller isn't responding --- Переконайся, що `оператором`{:class="block3operators"} в умові `якщо`{:class="block3control"} є знак «більше ніж» `>`{:class="block3operators"}. diff --git a/uk-UA/step_6.md b/uk-UA/step_6.md index 15f54fa21..df663cceb 100644 --- a/uk-UA/step_6.md +++ b/uk-UA/step_6.md @@ -35,11 +35,10 @@ Кожен приклад проєкту у [вступі](.) має посилання «Переглянути код», за яким ти можеш відкрити проєкт у Скретчі й переглянути код, щоб отримати ідеї та побачити, як вони працюють. Ти можеш «Переглянути код» проєктів-зразків, щоб побачити, як вони працюють. -Приклади проєктів: -**Свіжі космічні фрукти**: [Переглянути код](https://scratch.mit.edu/projects/1107251106/editor){:target="_blank"} -**Круті футболки**: [Переглянути код](https://scratch.mit.edu/projects/1107247335/editor){:target="_blank"} -**Магазин морозива**: [Переглянути код](https://scratch.mit.edu/projects/1107253384/editor){:target="_blank"} -**Торговий автомат**: [Переглянути код](https://scratch.mit.edu/projects/1107255779/editor){:target="_blank"} +Приклади проєктів: **Свіжі космічні фрукти**: [Переглянути код](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} +**Круті футболки**: [Переглянути код](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} +**Магазин морозива**: [Переглянути код](https://scratch.mit.edu/projects/525972748/editor){:target="_blank"} +**Торговий автомат**: [Переглянути код](https://scratch.mit.edu/projects/526051796/editor){:target="_blank"} **Порада:** якщо ти знаходишся в своєму обліковому записі Скретчу, ти можеш використовувати **Сховок**, щоб скопіювати скрипти або спрайти у свій проєкт. @@ -56,23 +55,21 @@ --- collapse --- --- - -title: Став запитання та відповідай на них - +title: Ask and respond to questions --- ```blocks3 -ask [Ви знайшли все, що хотіли?] and wait -if <(answer) = [так]> then -say [Це чудово!] for [2] seconds +ask [Did you find everything you wanted today?] and wait +if <(answer) = [yes]> then +say [That's fantastic!] for [2] seconds else -say [Можливо, мені варто додати більше товарів до свого магазину.] for [2] seconds +say [Maybe I should add more items to my shop] for [2] seconds end ``` -**Налагодження:** перевір, чи правильно у тебе написані параметри у коді та у відповіді. Можна використовувати великі літери, тоді «Так» і «ТАК» будуть збігатися з «так». +**Debug:** Check that you have spelled the options correctly in your code and in your answer. It's OK if you use capital letters, so "Yes" and "YES" will match "yes". -Додай кілька запитань, щоб створити чат-бота або неігрового персонажа, з яким можна спілкуватися. +Add multiple questions to create a chatbot or non-player character that you can talk to. --- /collapse --- @@ -82,51 +79,49 @@ end --- task --- -У проєкті «Класні сорочки» товари перелітають у сумку. +The Cool Shirts project has shirts that glide into a bag. --- collapse --- --- - -title: Зроби так, щоб товари перелітали в контейнер - +title: Make items glide into a container --- -Додай спрайт-**контейнер**. Ти можете використати готовий спрайт, як-от **Gift** або спрайт **Take out**, або намалювати свій власний спрайт за допомогою простих фігур. +Add a **Container** sprite. You could use an existing sprite like the **Gift** or **Take out** sprite, or paint your own with simple shapes. -Додай скрипт, щоб **контейнер** завжди зображався зверху: +Add a script to make the **Container** always appear at the front: ```blocks3 when flag clicked forever -go to [передній v] layer +go to [front v] layer end ``` -Тоді тобі потрібно буде додати код до кожного **товару**, щоб вони перелітали в контейнер, коли на них натискають: +Then you'll need to add code to each **Item** you have for sale to make them glide to the container when they are clicked: ```blocks3 when this sprite clicked -+go to [передній v] layer -+glide [1] secs to (Bag v) // використовуй назву свого спрайта-контейнера ++go to [front v] layer ++glide [1] secs to (Bag v) // use the name of your Container sprite +hide -change [всього v] by [12] -+go to x: [-180] y: [68] // початкова позиція +change [total v] by [12] ++go to x: [-180] y: [68] // start position +show ``` -Якщо ти не хочеш, щоб контейнер був там постійно, ти можеш додати скрипти, щоб він показувався й ховався у потрібний час: +If you don't want the container there all the time, you can add scripts to make it show and hide at the right time: ```blocks3 -when I receive [наступний покупець v] -hide // попередній покупець бере сумку +when I receive [next customer v] +hide // previous customer takes the bag wait [1] seconds show ``` -**Протестуй:** запусти свій проєкт і переконайся, що товари перелітають до контейнера та ховаються. +**Test:** Try your project and make sure items glide to the container and hide. -**Налагодження:** ретельно перевір свої скрипти та переконайся, що всі спрайти **товарів** оновлено. Ти можеш переглянути проєкт [Класні сорочки](https://scratch.mit.edu/projects/1107247335/editor){:target="_blank"}, якщо тобі потрібно побачити робочий приклад. +**Debug:** Check your scripts carefully and make sure you have updated all of your **Item** sprites. You can look at [Cool Shirts](https://scratch.mit.edu/projects/528697069/editor){:target="_blank"} if you need to see a working example. --- /collapse --- @@ -136,49 +131,48 @@ show --- task --- -Додай змінну `купівля`{:class="block3variables"}, щоб контролювати, коли можна додавати товари до кошика. +Add a `shop`{:class="block3variables"} variable and use it to control when items can be added. --- collapse --- --- -title: Не дозволяй додавати товари, коли покупець розраховується - +title: Stop purchases when the customer is at the checkout --- -Додай `змінну`{:class="block3variables"} під назвою `купівля` для всіх спрайтів. Ти встановиш значення `істина`, коли покупець у магазині, і `хиба`, коли покупець біля каси. +Add a `variable`{:class="block3variables"} called `shop` for all sprites. You will set this to `true` when the customer is in the shop and `false` when they are at the checkout. -Вибери спрайт **продавця**. Онови скрипт `коли прапорець натиснуто`{:class="block3events"}, щоб дозволити купувати з початком проєкту: +Select your **seller** sprite. Update the `when flag clicked`{:class="block3events"} script to allow shopping when your project starts: ```blocks3 -+set [купівля v] to [істина] ++set [shop v] to [true] ``` -Тепер додай блок, щоб змінити `купівля`{:class="block3variables"} на `хиба` на початку скрипту `коли спрайт натиснуто`{:class="block3events"} **продавця**: +Now add a block to change the `shop`{:class="block3variables"} to `false` at the beginning of your **seller**'s `when this sprite clicked`{:class="block3events"} script: ```blocks3 -+set [купівля v] to [хиба] ++set [shop v] to [false] ``` -Також додай блок, який поверне змінній `купівля`{:class="block3variables"} значення `істина` у кінці того самого скрипту: +And a block to set the `shop`{:class="block3variables"} variable back to `true` at the end of the same script: ```blocks3 -+set [купівля v] to [істина] ++set [shop v] to [true] ``` -Тепер тобі потрібно оновити товари на продаж, щоб перевірити змінну `купівля`{:class="block3variables"}: +Now you need to update the items you sell to check the `shop`{:class="block3variables"} variable: ```blocks3 when this sprite clicked -+if <(купівля) = [істина]> then ++if <(shop) = [true]> then start sound (Coin v) -change [всього v] by [10] +change [total v] by [10] end ``` -Тобі потрібно буде зробити це для кожного товару у магазині. +You will need to do this for every item you sell in your shop. -**Протестуй:** клацни зелений прапорець і спробуй купити щось. Переконайся, що ти все ще можеш додавати товари та розраховуватися, але не можеш додавати товари, коли ти вже на касі. +**Test:** Click the green flag then try shopping. Check that you can still add items and checkout, but you can't add items once you have started checking out. -**Налагодження:** уважно перевір свій код. Ти можеш переглянути проєкт [Космічні фрукти](https://scratch.mit.edu/projects/1107251106/editor){:target="_blank"}, якщо тобі потрібно побачити робочий приклад. +**Debug:** Check your code really carefully. You can look at the [Space Fruit](https://scratch.mit.edu/projects/528696418/editor){:target="_blank"} project if you need to see a working example. --- /collapse --- @@ -189,40 +183,41 @@ end ### Дай покупцеві можливість скасувати купівлю. --- collapse --- + --- -title: Можливість скасування оплати +title: Set up pay and cancel options --- -`Запитай`{:class="block3sensing"} `Бажаєте заплатити чи скасувати?`. Додай блок `якщо`{:class="block3control"} з умовою `відповідь`{:class="block3sensing"} `=`{:class="block3operators"} `оплатити` і всередині нього помісти свої наявні блоки оплати. +`Ask`{:class="block3sensing"} `Would you like to pay or cancel?`. Add an `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `pay` and inside it put your existing payment blocks. ```blocks3 when this sprite clicked -say (join [З вас ] (всього)) for (2) seconds -+ ask [Бажаєте оплатити або скасувати купівлю?] and wait -+ if {(answer) = [оплатити]} then +say (join [That will be ] (total)) for (2) seconds ++ ask [Would you like to pay or cancel?] and wait ++ if {(answer) = [pay]} then play sound [machine v] until done -set [всього v] to (0) -say (join [Дякуємо, що завітали в ] (назва)) for (2) seconds -broadcast [наступний покупець v] +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] end ``` -Додай другий блок `якщо`{:class="block3control"} з умовою `відповідь`{:class="block3sensing"} `=`{:class="block3operators"} `скасувати` і всередині нього додай код для скасування купівлі. +Add a second `If`{:class="block3control"} block for `answer`{:class="block3sensing"} `=`{:class="block3operators"} `cancel` and inside it add code to cancel the order. ```blocks3 when this sprite clicked -say (join [З вас ] (всього)) for (2) seconds -ask [Бажаєте оплатити або скасувати купівлю?] and wait -if {(answer) = [оплатити]} then +say (join [That will be ] (total)) for (2) seconds +ask [Would you like to pay or cancel?] and wait +if {(answer) = [pay]} then play sound [machine v] until done -set [всього v] to (0) -say (join [Дякуємо, що завітали в ] (назва)) for (2) seconds -broadcast [наступний покупець v] +set [total v] to (0) +say (join [Thanks for shopping at ] (name)) for (2) seconds +broadcast [next customer v] end -+ if {(answer) = [скасувати]} then -set [всього v] to (0) -say [Гаразд. Жодних проблем.] for (2) seconds -broadcast [наступний покупець v] ++ if {(answer) = [cancel]} then +set [total v] to (0) +say [Ok. No problem] for (2) seconds +broadcast [next customer v] end ``` @@ -230,6 +225,6 @@ end --- /task --- -Відвідай нашу Скретч-студію [«Міжгалактичний торговий центр»](https://scratch.mit.edu/studios/29662180){:target="_blank"}, щоб побачити проєкти, створені членами спільноти. +Take a look at our ['Intergalactic shopping market'](https://scratch.mit.edu/studios/29662180){:target="_blank"} Scratch studio to see projects created by community members. --- save --- diff --git a/uk-UA/step_7.md b/uk-UA/step_7.md index 6beff76c0..7df1304ef 100644 --- a/uk-UA/step_7.md +++ b/uk-UA/step_7.md @@ -4,6 +4,6 @@ Надихай спільноту Raspberry Pi Foundation своїм проєктом! -Щоб додати свій проєкт до Скретч-студії [«Міжгалактичний торговий центр»](https://scratch.mit.edu/studios/29662180){:target="_blank"}, заповни [цю форму](https://form.raspberrypi.org/f/community-project-submissions){:target="_blank"} (англійською мовою). +Щоб додати свій проєкт до Скретч-студії[«Міжгалактичний торговий центр»](https://scratch.mit.edu/studios/29662180){:target="_blank"}, заповни [цю форму](https://form.raspberrypi.org/f/community-project-submissions){:target= "_blank"} (англійською мовою). ![Приклади проєктів магазинів у студії Скретч «Міжгалактичний торговий центр».](images/studio-example.png) diff --git a/uk-UA/step_8.md b/uk-UA/step_8.md index 2beaf3343..d63cb9855 100644 --- a/uk-UA/step_8.md +++ b/uk-UA/step_8.md @@ -1,6 +1,6 @@ ## Що далі? -Якщо ти йдеш напрямом [Більше Скретчу](https://projects.raspberrypi.org/uk-UA/raspberrypi/more-scratch), можеш переходити до наступного проєкту — [«Не впади»](https://projects.raspberrypi.org/uk-UA/projects/dont-fall-in). У цьому проєкті ти створиш гру із видом зверху вниз, де потрібно стрибати з платформи на платформу і не впасти. +Якщо ти йдеш напрямом [Більше Скретчу](https://projects.raspberrypi.org/en/raspberrypi/more-scratch), можеш переходити до наступного проєкту — [«Не впади»](https://projects.raspberrypi.org/en/projects/dont-fall-in). У цьому проєкті ти створиш гру із видом зверху вниз, де потрібно стрибати з платформи на платформу і не впасти. --- print-only --- @@ -18,12 +18,4 @@ --- /no-print --- -Якщо тобі подобається досліджувати Скретч, спробуй [ці проєкти](https://projects.raspberrypi.org/uk-UA/projects?software%5B%5D=scratch&curriculum%5B%5D=%201). - -*** - -Цей проєкт переклали волонтери: - -Yevgenia Lazuk - -Завдяки волонтерам ми надаємо можливість людям у всьому світі навчатися рідною мовою. Ви також можете допомогти нам у цьому — більше інформації про волонтерську програму на [rpf.io/translate](https://rpf.io/translate). +Якщо тобі подобається досліджувати Скретч, спробуй [ці проєкти](https://projects.raspberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201).