• This repository has been archived on 19/Jun/2018
  • Stars
    star
    107
  • Rank 313,469 (Top 7 %)
  • Language
    C
  • License
    Other
  • Created over 11 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Source Code repository for Scratch 1.4
This is the Scratch source package README file.

This source code is released under the Gnu General Public License version 2. Modified versions of this source code may be released under the GPL V2 or later versions of the GNU General Public License.

For more information on Scratch and the Scratch Source Code, see http://wiki.scratch.mit.edu/wiki/Scratch_1.4_Source_Code

Scratch is written in Squeak, and depends on a Squeak virtual machine. You can find other versions of the Linux Squeak VM here: http://www.squeakvm.org/unix/ For more information about squeak, see: http://www.squeak.org/ 

The Squeak source code for Scratch ( Scratch.image ) is set to open in "User Mode" by default. If you'd like to enter "Dev" mode to make changes to the source code, you can do so by following these steps: 

First copy the Scratch.changes file ( located in /src ) into the same directory as your Scratch.image file, and make sure you have write permissions on it. Then download and uncompress the Squeak v2 Sources file, and place it in the same directory. See this page for more info: http://www.squeak.org/Download/?version=2  Currently, the Squeak v2 sources file is downloadable from this url: http://ftp.squeak.org/2.0/SqueakV2.sources.gz

Then open Scratch and follow these steps:

1. Shift-click the rounded bit of the R in the Scratch logo (look at the top left corner).
2. Click "Turn fill screen off".
3. Click the white area that appears at the right and bottom of the window.
4. Click open....
5. Click browser
6. The System Browser appears β€” this is where you can edit the code.

For more info, see this page on the Scratch Wiki: http://wiki.scratch.mit.edu/wiki/Shift-Click-R 

Since Scratch runs as an image on a Squeak virtual machine, all that needs to be compiled when packaging Scratch are the necessary plugins, which can be done using the included makefile. The following libraries are necessary to build the plugins:
libcairo2-dev (>= 1.8.6), libpango1.0-dev (>= 1.20.5), libglib2.0-dev (>= 2.20.1)

Note: the Camera plug-in will make use of libv4l2 (>= 0.5.8) at run-time if found.

The rest of the installation involves copying files to their correct locations (directory names are case sensitive):

/usr/lib/scratch - the Scratch.image file.
/usr/lib/scratch/Plugins - plugins necessary for Scratch to run properly

The following directories must be found in these locations, because references to them are hard-coded within the Scratch.image (Squeak source code) file:
/usr/share/scratch/Help - the help screen images, and the help html files.
/usr/share/scratch/locale - translation .po files
/usr/share/scratch/Media - image and sound files bundled with Scratch
/usr/share/scratch/Projects - sample projects bundled with Scratch

The "scratch" startup script shows how to execute the virtual machine, as well as the necessary command line switches to indicate where additional plugins can be found and which sound plugin should be used.

For more information about how to customize Scratch for your network, etc., view this page (note that some features are Windows only):
http://info.scratch.mit.edu/Network_Installation

The Scratch name and trademarks can only be used under certain circumstances. See the included "TRADEMARK_POLICY" file.

Questions? Consult the Scratch FAQ:
http://info.scratch.mit.edu/Support/Scratch_FAQ

Or email [email protected]

More Repositories

1

scratch-gui

Graphical User Interface for creating and running Scratch 3.0 projects.
JavaScript
4,239
star
2

scratch-blocks

Scratch Blocks is a library for building creative computing interfaces.
JavaScript
2,534
star
3

scratch-www

Standalone web client for Scratch
JavaScript
1,507
star
4

scratch-flash

Open source version of the Scratch 2.0 project editor. This is the basis for the online and offline versions of Scratch found on the website.
ActionScript
1,326
star
5

scratch-vm

Virtual Machine used to represent, run, and maintain the state of programs for Scratch 3.0
JavaScript
1,165
star
6

scratchjr

With ScratchJr, young children (ages 5-7) can program their own interactive stories and games.
JavaScript
662
star
7

scratch-html5

HTML 5 based Scratch project player
JavaScript
390
star
8

scratch-desktop

Scratch 3.0 as a self-contained desktop application
JavaScript
270
star
9

scratch-render

WebGL-based rendering engine for Scratch 3.0
JavaScript
254
star
10

scratchx

Scratch Extension Site
JavaScript
190
star
11

scratch-paint

Paint editor for Scratch 3.0
JavaScript
165
star
12

scratch-link

Device interoperability layer for Windows and MacOS
C#
89
star
13

scratch-l10n

JavaScript
62
star
14

scratch-parser

Validation and parsing for Scratch projects
JavaScript
57
star
15

scratch-audio

Web Audio-based audio engine for Scratch 3.0
JavaScript
54
star
16

scratch-storage

Load and store project and asset files for Scratch 3.0
JavaScript
54
star
17

scratch-rest-api

Documentation for how to interact with the Scratch REST API
53
star
18

scratchjr-website

Code for the Scratch Jr Website
JavaScript
46
star
19

scratch-svg-renderer

Scratch SVG renderer
JavaScript
31
star
20

scratch-analysis

Analysis tool for summarizing the structure, composition, and complexity of Scratch programs.
JavaScript
24
star
21

scratch-extension-docs

[Deprecated] Sample code for Scratch 2.0 hardware and web extensions.
22
star
22

scratchr2_translations

Translations for the Scratch 2.0 website
16
star
23

scratchwikiskin

Skin for the Scratch wiki
PHP
15
star
24

scratch-resources

Source files and images for translators to translate Scratch materials
JavaScript
14
star
25

scratch-render-fonts

Fonts for Scratch SVG rendering
JavaScript
13
star
26

po2icu

An npm package for converting gettext to icu.
JavaScript
11
star
27

scratch-sb1-converter

Convert Scratch .sb files (for Scratch 1) to Scratch 2 (.sb2) in JS.
JavaScript
11
star
28

scratch-auth

Authentication utilities for Scratch
JavaScript
11
star
29

eslint-config-scratch

Shareable ESLint config for Scratch
JavaScript
8
star
30

scratch-docker

Scratch docker infrastructure npm module
Shell
7
star
31

scratch2-project-analyzer

Tools for analyzing Scratch 2.0 projects
Python
6
star
32

scratch-asset-types

Supported asset detection and types for Scratch backend
JavaScript
6
star
33

django-request-provider

Python
5
star
34

scratchx-example

Examples for working with Scratch and ScratchX extensions
JavaScript
5
star
35

swiki-navbar

A small extension for the Scratch Wiki that creates a limited navigation bar for users who are not logged in
PHP
4
star
36

scratchx-crossdomain

Standard crossdomain.xml file for use with ScratchX
4
star
37

.github

Scratch community health files
2
star
38

scratch-renovate-config

Scratch's shared configuration for Renovate
1
star