Scratch junior для linux

About

A community open source port of a well-loved early educational programming tool.

We are very excited about the use of Scratch Jr in the classroom, especially for children in early school years. When we discovered the schools in our area did not have access to tablets, we decided to turn the tablet app into a full fledged desktop app. In order to do this, we have taken the original code recompiled it for Mac and Windows.

While we have chatted to the official Scratch team, they have asked us to let you know this important disclaimer about this experimental version :

Downloads

Download the latest install to your Mac or Windows computer.
For tablets, please see the official build.

Mac (Beta 1.3.2)

Windows (Beta 1.3.2)

The nitty gritty

Same app, new platform.

To port to the desktop, a small database and filesystem layer was rewritten, as well as access to video and sound.

This was accomplished using Electron for the app hosting, the original html source of ScratchJR and SQL.js for the project database. Electron is like having your own chrome browser to run one html webpage. And in our case, that webpage is ScratchJR.

Offline mode

Once installed, this app should not require an internet connection to work.

Deleting stuff (press and hold mouse)

Because this is a tablet app, there is no right click support. In order to delete stuff you need to click and hold the left mouse button until everything wiggles. When you get a red X, click this to remove characters and projects.

Where’s the cat?

Sadly, the cat is not allowed to make an official appearance in our app but has sent along all of his friends. Everything (else) you know and love about Scratch Jr on the tablet is there.

Getting Started with your Class

Scratch Jr has a set of programming worksheets your class can follow.

Where’s the data?

All projects are stored locally on the machine inside of a file (which happens to be a sql lite database.) Inside your documents/ScratchJR folder, there will be a scratchjr.sqllite file.

Reloading saved projects

For classroom use, sometimes it is handy to pre-configure a set of projects. All of the projects all save into the same Documents/ScratchJR/scratchjr.sqllite file. To set up projects beforehand, you can make a backup copy of this file.

Here’s how.

  • Make starter projects for your class — set up Scratch Jr with the projects you want everyone to use.
  • Open up the ScratchJR folder inside of Documents
  • Copy the scratchjr.sqllite file to scratchjr.sqllite.restore
  • Re-open ScratchJR for desktop.

After completing, there will be a menu option for restoring the projects. This will reset all the projects back to a clean copy of your projects. This is handy for a shared classroom setting where you don’t wish to save the work between students.

Thanks

Thank you to the official Scratch Jr team and their supporters. In addition, thank you to the folks working on Electron, ElectronForge, and Sql.js. Thank you to AppVeyor and Travis CL for contributing free Mac, Windows and Linux builds.

Читайте также:  Как сделать чистку печатающей головки на принтере canon

Finally, a special thank you to ScopeIT Education for donating their technical expertise to this project.
For more exciting projects by this author, see:

  • How to 3D print your Scratch Projects
  • Making 3D shapes using block coding

Support

Note we are working on a volunteer basis and only limited support is available.

Having problems? Here’s what to do.

  • If you have a problem with mac or windows app: file a bug report with us
  • If you are unsure how to use ScratchJr, follow the in-app help guide.
  • If you want more resources for Scratch Jr: please visit the official page

You are viewing an unoffical Scratch Jr for Desktop site.

Источник

Школьная робототехника на Linux

Здесь публикуются заметки о том, как заменить Windows и использовать бесплатное ПО для программирования роботов.

суббота, 11 августа 2018 г.

Установка Scratch 2.0 на Linux (опыт 2018)

Scratch — популярная программа для обучения программированию. Буквально за несколько минут можно научиться управлять персонажами, обрабатывать события и сложные процессы, сочетая это со звуком и анимацией. Поддерживается множество языков интерфейса, в том числе и русский.

К сожалению, на официальном сайте даны ссылки на установку только для Windows и Mac. К тому же для работы программы требуется Adobe AIR, который давно уже не поддерживается для Linux. Как решить эти проблемы рассмотрим в этой заметке.

Установка Scratch 2.0

sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0

sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0

Показать/Скрыть Что делать, если у меня белый экран

7. Откройте папку скачивания и посмотрите название скачанного установщика (возможно различие версий программ). У меня это версия 455.

8. Установите Scratch 2.0, открыв установщик с помощью AIR (обратите внимание, что путь к файлу нужно указывать полностью — у меня это домашняя директория)

Источник

jfo8000/ScratchJr-Desktop

Use Git or checkout with SVN using the web URL.

Work fast with our official CLI. Learn more.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Scratch and ScratchJr are trademarks of Massachusetts Institute of Technology, which does not sponsor, endorse, or authorize this content. See scratchjr.org for more information.

The geeky stuff

This repository contains a port of ScratchJr for Desktop.

It has been ported with love from the iPad / Android editions to Mac/Windows as an independent, open source community project.

If you are looking for the Official ScratchJr build from MIT for Android and iPad, visit the LLK/ScratchJr (https://github.com/LLK/scratchjr) repository.

About Electron and Electron Forge

This port makes use of Electron to host the ScratchJR HTML5 application on Mac and Windows.

Electron (https://electronjs.org/) is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS.

Electron Forge (https://electronforge.io/) stitches together several electron modules to provide easier support for using the latest version of javascript, making dmg/exe files and installers.

  • The HTML5 side of Scratch Jr very close to the original ios / android versions. Some changes had to be made to load modules correctly inside of the electron environment.
  • Minor changes were made to the CSS stylesheets to support resizing.
  • Touch events were translated to mouse events.

ElectronDesktopInterface as a third tabletInterface

The original html implementation called out to a tabletInterface to make calls to the host operating system (Android / iOS) for filesystem access and audio and video recording.

Читайте также:  З чого складається принтер

ElectronDesktopInterface handles these calls and either handles them itself in HTML5 (e.g. audio and video recording are achieved through the HTML5 WebRTC apis) or passes them onto the electron main process to read and write files / db.

As the database is rather small we were able to use a version of SQLLite that has been compiled into JavaScript.

The database is largely the same format as the original ios / android version, but it adds a third table called PROJECTFILES. Instead of writing individual svg, video, and audio files out to the filesystem they are all stored within the PROJECTFILES table. This was done so that you can make a set of Scratch Jr projects as a starter kit.

You will need node.js installed. (https://nodejs.org/en/) Also git (which you may already have).

Packaging for Windows / Mac

For windows installers, you must do this from a Windows machine. Same for Mac.

We use eslint to verify the install. Our configuration is similar to airbnb, however several style rules had to be adapted to avoid changing the original scratch sources.

To debug the html files, audio and video recording you can simply run

A chrome inspector window will appear by default.

To debug writing to the filesystem and database queries, you need to debug the main electron process. This is done by

To get the chrome inspector window, open another instance of the real chrome on your computer and navigate to chrome://inspect

There should be a listing there for the electron main process. Note between debugging sessions you may have to close and reopen this chrome://inspect window.

Directory Structure and Projects

This repository has the following directory structure:

  • package.json — Contains eslint rules, modules used, build and packaging scripts
  • forge.config.js — Contains rules for packaging for windows and Mac
  • src/app/ — Shared JavaScript code for iOS and Android and Desktop common client. This is where most changes should be made for features, bug fixes, UI, etc.
  • src/icons/ — Icons for Mac / Windows and ( in theory Linux NYI)
  • out/ — Build scripts and other executables
  • docs/ — Developer Documentation

Thank you to the official Scratch team and their supporters. Their contributions are listed here: https://github.com/LLK/scratchjr

In addition, thank you to the folks working on Electron, ElectronForge, and Sql.js.

Thank you to AppVeyor and Travis CL for providing Mac, Windows and Linux builds.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS «AS IS» AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

For more information, see CONTRIBUTING.md.

About

Open source community port of ScratchJr for Desktop (Mac/Win)

Источник

Scratch JR — развитие логики и знакомство с основами программирования для дошкольников

Еще совсем недавно, в семидесятых годах прошлого века, программисты были бородатыми мудрецами и почти ни у кого не возникала мысль подпускать школьников к такой крутой дорогостоящей технике. Но с повсеместным распространением компьютеров в конце восьмидесятых, появились и первые школьные компьютеры, писать программы на которых могли только самые продвинутые старшеклассники. Большинство родителей и в наше время считают что программирование — удел избранных, и даже не подозревают о том, что их малыш 5-6 летнего возраста уже может составлять алгоритмы для исполнителей и создавать первые программы. Это настолько красочный, интересный и увлекательный процесс, что дети думают что они играют, а на самом деле в этот момент они получают цифровые навыки 21 века.

Читайте также:  Hp color laserjet 2500l картридж

Один из лучших инструментов для знакомства детей с программированием Scratch JR — графическая среда для создания первых проектов в цифровом мире.

Интерфейс Scratch JR на планшете

Работает Scratch JR на большинстве популярных планшетов, на iPad, на Android и даже на Kindle. Также можно установить Scratch JR на ноутбук (и на Mac и на PC ).

Интерфейс Scratch JR на компьютере

Единственное отличие компьютерной версии — главный персонаж не котенок, а смешной инопланетянин Тик. Главное дать ребенку для работы ноутбук с тачпадом, так-как с мышкой дошколята еще не справляются.

Учить детей программированию на Scratch JR совсем не сложно. Просто перетаскивайте разноцветные блоки вниз и соединяйте. Первым всегда идет желтый блок с условием выполнения. Посмотрите как запрограммировать персонажа чтобы он подпрыгивал, когда мы нажимаем на него (пальчиком на планшете, и мышкой на ноутбуке).

Соединение блоков

А вот так юный программист может запрограммировать перемещение персонажа на 10 клеточек вправо (клеточки включаются кнопкой вверху).

Включение сетки

Обратите внимание! Тик стоял на клеточке 4, а после перемещения вправо оказался на клеточке 14, таким образом, включая клеточки, мы превратили Scratch JR в идеальный математический тренажер для подготовки к школе!

Создавая свои первые цифровые проекты дошкольники научатся не только программировать, но и хорошо считать, ведь для перемещения персонажа вправо надо будет складывать числа, а для перемещения влево — вычитать.

Вот, посмотрите, чтобы взять яблоко, Тику надо сделать 10 шагов направо. А как мы это поняли? Мы от 15 (где лежит яблоко), отняли 5 (где стоит Тик), и получилось 10.

Устный счет

А на этой картинке Тику надо подпрыгнуть вверх на 8 клеточек, чтобы слопать персик. А как же мы это посчитали? Надо из 12 (высоты персика над полом), отнять 4 (высоту Тика над полом), и получится 8.

Изучение арифметики

Персик запрограммирован вот так, поэтому при касании Тика он уменьшится в 2 раза.

Скрипт персика

Добавлять новых персонажей и предметы очень легко — надо нажать на плюсик и выбрать любого персонажа из библиотеки. Кроме фантастических персонажей есть и люди, и домашние животные, и техника и постройки.

Добавление персонажа

Изменить фон тоже совсем не сложно. В библиотеке фонов есть и природа, и времена года, и космос и сцены внутри помещения.

Изменение фона

Таким образом программирование на Scratch JR позволяет ребенку не только прокачать математические способности и алгоритмическое мышление, но и важнейшее качество 21 века — креативность, способность сочинять свои собственные истории и рассказывать их в цифровом мире.

Ведь не секрет, что скоро многие профессии заменит искусственный интеллект, и только творческие, креативные профессии останутся с нами надолго. Поэтому наша задача помочь нашим детям максимально развивать креативность и умение создавать цифровые проекты чтобы они нашли для себя хорошее место в современном мире.

Обязательно установите Scratch JR, и покажите его детям, я уверен, что они быстро освоятся и начнут креативить, а чтобы вам было немного проще, можете использовать мою книгу, в которой есть идеи 16 проектов для юных программистов.

Бестселлер про создание проектов на Scratch JR

Также можете использовать уроки по программированию на Scratch JR по ссылке.

Источник

Поделиться с друзьями
КомпСовет
Adblock
detector