<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Scratch &#8211; リビングの魔王</title>
	<atom:link href="https://living-maou.com/tag/scratch/feed/" rel="self" type="application/rss+xml" />
	<link>https://living-maou.com</link>
	<description></description>
	<lastBuildDate>Fri, 19 Jun 2026 02:09:58 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://living-maou.com/wp-content/uploads/2020/02/cropped-favicon-32x32.png</url>
	<title>Scratch &#8211; リビングの魔王</title>
	<link>https://living-maou.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【スクラッチ(Scratch)】VTuberはどうやって動くの？口パクするキャラを作ろう</title>
		<link>https://living-maou.com/scratch-vtuber/</link>
					<comments>https://living-maou.com/scratch-vtuber/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Mon, 08 Jun 2026 01:28:22 +0000</pubDate>
				<category><![CDATA[Scratch]]></category>
		<category><![CDATA[作品例]]></category>
		<category><![CDATA[自由研究]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=8197</guid>

					<description><![CDATA[YouTubeで人気にんきの VTuber。 「どうしてキャラクターが本当ほんとうにしゃべっているみたいに動うごくの？」 と思おもったことはありませんか？ 実じつはVTuberは、人ひとの動うごきを読よみ取とって、キャラ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/eyecatch-scratch-vtuber-avatar.jpg"><img fetchpriority="high" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/eyecatch-scratch-vtuber-avatar.jpg" alt="" width="800" height="450" class="aligncenter size-full wp-image-8198" srcset="https://living-maou.com/wp-content/uploads/2026/06/eyecatch-scratch-vtuber-avatar.jpg 800w, https://living-maou.com/wp-content/uploads/2026/06/eyecatch-scratch-vtuber-avatar-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2026/06/eyecatch-scratch-vtuber-avatar-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2026/06/eyecatch-scratch-vtuber-avatar-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2026/06/eyecatch-scratch-vtuber-avatar-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2026/06/eyecatch-scratch-vtuber-avatar-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2026/06/eyecatch-scratch-vtuber-avatar-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>YouTubeで<ruby>人気<rt>にんき</rt></ruby>の <b>VTuber</b>。</p>
<p>「どうしてキャラクターが<ruby>本当<rt>ほんとう</rt></ruby>にしゃべっているみたいに<ruby>動<rt>うご</rt></ruby>くの？」</p>
<p>と<ruby>思<rt>おも</rt></ruby>ったことはありませんか？</p>
<p><ruby>実<rt>じつ</rt></ruby>はVTuberは、<ruby>人<rt>ひと</rt></ruby>の<ruby>動<rt>うご</rt></ruby>きを<ruby>読<rt>よ</rt></ruby>み<ruby>取<rt>と</rt></ruby>って、キャラクターを<ruby>動<rt>うご</rt></ruby>かしています。</p>
<p><ruby>今回<rt>こんかい</rt></ruby>は、Scratchを<ruby>使<rt>つか</rt></ruby>って「<ruby>声<rt>こえ</rt></ruby>に<ruby>反応<rt>はんのう</rt></ruby>して<ruby>口<rt>くち</rt></ruby>が<ruby>動<rt>うご</rt></ruby>くVTuber<ruby>風<rt>ふう</rt></ruby>アバター」を<ruby>作<rt>つく</rt></ruby>ってみましょう！</p>
<p>&nbsp;</p>
<p>Scratchはインターネットにつながるパソコンから<ruby>無料<rt>むりょう</rt></ruby>で<ruby>利用<rt>りよう</rt></ruby>できます。</p>
<p>Scratch<ruby>公式<rt>こうしき</rt></ruby>サイト：<a rel="noopener" target="_blank" href="https://scratch.mit.edu/">https://scratch.mit.edu/<span class="fa fa-external-link external-icon anchor-icon"></span><span class="fa fa-external-link external-icon anchor-icon"></span></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">Scratchのアカウントの<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby>と<ruby>基本的<rt>きほんてき</rt></ruby>な<ruby>使<rt>つか</rt></ruby>い<ruby>方<rt>かた</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span><span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、<ruby>下<rt>した</rt></ruby>の<ruby>記事<rt>きじ</rt></ruby>で<ruby>紹介<rt>しょうかい</rt></ruby>しています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/" title="Scratch（スクラッチ）の使い方・始め方｜小学生向けプログラミング入門" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">Scratch（スクラッチ）の使い方・始め方｜小学生向けプログラミング入門</div><div class="blogcard-snippet internal-blogcard-snippet">子供向けプログラミング言語Scratch（スクラッチ）。プログラミング教育の教材として多くの小学校で使われています。【リビングの魔王】では、おうちでもスクラッチを使いたい方のために、アカウントの作成方法と基本的な使い方を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<h2><span id="toc1">VTuberのキャラクターはどうやって動いているの？</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar20.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar20.png" alt="VTuberのしくみ" width="800" height="450" class="aligncenter size-full wp-image-8224" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar20.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar20-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar20-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar20-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar20-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar20-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar20-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>「<span class="marker-under-red"><ruby>人<rt>ひと</rt></ruby>の<ruby>動<rt>うご</rt></ruby>きを<ruby>読<rt>よ</rt></ruby>み<ruby>取<rt>と</rt></ruby>って、キャラクターにまねさせている</span>」</p>
<p>これが VTuberの <ruby>基本<rt>きほん</rt></ruby>のしくみです。</p>
<p>VTuberは、<ruby>次<rt>つぎ</rt></ruby>のような<ruby>流<rt>なが</rt></ruby>れで<ruby>動<rt>うご</rt></ruby>いています。</p>
<div class="blank-box bb-blue">
<ol>
<li><ruby>人<rt>ひと</rt></ruby>が<ruby>動<rt>うご</rt></ruby>く</li>
<li>カメラやセンサーが<ruby>動<rt>うご</rt></ruby>きを<ruby>読<rt>よ</rt></ruby>み<ruby>取<rt>と</rt></ruby>る</li>
<li>トラッキングソフトが「どんな<ruby>動<rt>うご</rt></ruby>きか」を<ruby>判断<rt>はんだん</rt></ruby>する</li>
<li>アバターが<ruby>同<rt>おな</rt></ruby>じように<ruby>動<rt>うご</rt></ruby>く</li>
</ol>
</div>
<p>この<ruby>人<rt>ひと</rt></ruby>の<ruby>動<rt>うご</rt></ruby>きを<ruby>読<rt>よ</rt></ruby>み<ruby>取<rt>と</rt></ruby>って<ruby>追<rt>お</rt></ruby>いかける<ruby>技術<rt>ぎじゅつ</rt></ruby>を、<b>トラッキング</b>と<ruby>言<rt>い</rt></ruby>います。</p>
<p>それぞれ、くわしく<ruby>見<rt>み</rt></ruby>てみましょう！</p>
<p>&nbsp;</p>
<h3><span id="toc2">カメラで「中の人」の動きを読み取る</span></h3>
<p>まずは、カメラやセンサーを<ruby>使<rt>つか</rt></ruby>って キャラクターを<ruby>演<rt>えん</rt></ruby>じている<ruby>人<rt>ひと</rt>の <ruby>顔<rt>かお</rt></ruby>や <ruby>体<rt>からだ</rt></ruby>の <ruby>動<rt>うご</rt></ruby>きを 1<ruby>秒間<rt>びょうかん</rt></ruby>に <ruby>何<rt>なに</rt></ruby>十<ruby>回<rt>かい</rt></ruby>もチェックします。</ruby></p>
<p><ruby>人<rt>ひと</rt></ruby>の<ruby>動<rt>うご</rt></ruby>きをコンピューターで<ruby>読<rt>よ</rt></ruby>み<ruby>取<rt>と</rt></ruby>ることを <b>モーションキャプチャ</b>と<ruby>言<rt>い</rt></ruby>います。</p>
<p>&nbsp;</p>
<h3><span id="toc3">トラッキングソフトが動きを判断する</span></h3>
<p><ruby>次<rt>つぎ</rt></ruby>に、カメラが<ruby>読<rt>よ</rt></ruby>み<ruby>取<rt>と</rt></ruby>った<ruby>動<rt>うご</rt></ruby>きを トラッキングソフトが すばやく<ruby>判断<rt>はんだん</rt></ruby>します。</p>
<p>たとえば、</p>
<ul>
<li><ruby>今<rt>いま</rt></ruby>、<ruby>目<rt>め</rt></ruby>を<ruby>閉<rt>と</rt></ruby>じた！</li>
<li><ruby>口<rt>くち</rt></ruby>が<ruby>開<rt>あ</rt></ruby>いた！</li>
<li><ruby>右<rt>みぎ</rt></ruby>を<ruby>向<rt>む</rt></ruby>いた！</li>
</ul>
<p>といった<ruby>感<rt>かん</rt></ruby>じです。</p>
<p><b>トラッキングソフト</b>とは、<ruby>人<rt>ひと</rt></ruby>の<ruby>動<rt>うご</rt></ruby>きを<ruby>読<rt>よ</rt></ruby>み<ruby>取<rt>と</rt></ruby>ってキャラクターを<ruby>動<rt>うご</rt></ruby>かすためのソフトです。</p>
<p>&nbsp;</p>
<h3><span id="toc4">アバターが同じように動く</span></h3>
<p>VTuberのイラストは、<ruby>実<rt>じつ</rt></ruby>は1<ruby>枚<rt>まい</rt></ruby>の<ruby>絵<rt>え</rt></ruby>ではありません。</p>
<ul>
<li><ruby>目<rt>め</rt></ruby></li>
<li><ruby>口<rt>ぐち</rt></ruby></li>
<li>かみの<ruby>毛<rt>け</rt></ruby></li>
<li><ruby>顔<rt>かお</rt></ruby></li>
</ul>
<p>などが、バラバラのパーツに<ruby>分<rt>わ</rt></ruby>かれています。</p>
<p>トラッキングソフトは、それぞれのパーツを <ruby>福笑<rt>ふくわら</rt></ruby>いみたいに <ruby>動<rt>うご</rt></ruby>かして、キャラクターをアニメのように<ruby>動<rt>うご</rt></ruby>かしているのです。</p>
<p>だから、<ruby>笑<rt>わら</rt></ruby>ったり、しゃべったり、<ruby>本当<rt>ほんとう</rt></ruby>に<ruby>生<rt>い</rt></ruby>きているみたいに<ruby>見<rt>み</rt></ruby>えるんですね。</p>
<p>&nbsp;</p>
<h2><span id="toc5">ScratchでVTuber風アバターを作ろう！</span></h2>
<p>Scratchで VTuber<ruby>風<rt>ふう</rt></ruby>アバターを <ruby>作<rt>つく</rt></ruby>ってみましょう。</p>
<p><ruby>本物<rt>ほんもの</rt></ruby>は AIや <ruby>特別<rt>とくべつ</rt></ruby>なソフトを <ruby>使<rt>つか</rt></ruby>いますが、<ruby>今回<rt>こんかい</rt></ruby>は、</p>
<ul>
<li><ruby>声<rt>こえ</rt></ruby>を<ruby>出<rt>だ</rt></ruby>したら<ruby>口<rt>くち</rt></ruby>が<ruby>動<rt>うご</rt></ruby>く</li>
<li>ときどき まばたきする</li>
</ul>
<p>という「かんたん<ruby>版<rt>ばん</rt></ruby> VTuber」を<ruby>作<rt>つく</rt></ruby>ります。</p>
<p>しくみを シンプルにすることで、VTuberが どうやって<ruby>動<rt>うご</rt></ruby>いているのか <ruby>分<rt>わ</rt></ruby>かりやすく <ruby>体験<rt>たいけん</rt></ruby>できますよ。</p>
<p>&nbsp;</p>
<h2><span id="toc6">完成プログラム</span></h2>
<p><ruby>完成<rt>かんせい</rt></ruby>した<ruby>作品<rt>さくひん</rt></ruby>です。</p>
<p><iframe loading="lazy" width="485" height="402" src="https://scratch.mit.edu/projects/1324243735/embed" allowtransparency="true" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></p>
<p><ruby>緑<rt>みどり</rt></ruby>のハタをおして、パソコンに<ruby>向<rt>む</rt></ruby>かって <ruby>何<rt>なに</rt></ruby>か<ruby>話<rt>はな</rt></ruby>してみてください。</p>
<p>マイク<ruby>付<rt>つ</rt></ruby>きのパソコンで<ruby>試<rt>ため</rt></ruby>してくださいね。</p>
<p>&nbsp;</p>
<p><ruby>完成<rt>かんせい</rt></ruby>したコードは<ruby>下<rt>した</rt></ruby>の<ruby>通<rt>とお</rt></ruby>りです。</p>
<p><ruby>口<rt>ぐち</rt></ruby>と<ruby>目<rt>め</rt></ruby>のスプライトを<ruby>別々<rt>べつべつ</rt></ruby>に<ruby>作<rt>つく</rt></ruby>り、それぞれにプログラムを<ruby>書<rt>か</rt></ruby>いて<ruby>動<rt>うご</rt></ruby>かします。</p>
<h3><span id="toc7">口のスプライト</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar02.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar02.png" alt="VTuber風アバター：口のスプライト" width="800" height="450" class="aligncenter size-full wp-image-8201" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar02.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc8">目のスプライト</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar03.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar03.png" alt="VTuber風アバター：目のスプライト" width="800" height="450" class="aligncenter size-full wp-image-8202" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar03.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc9">ネコの体のスプライト</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar04.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar04.png" alt="VTuber風アバター：体のスプライト" width="800" height="450" class="aligncenter size-full wp-image-8203" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar04.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h2><span id="toc10">プログラミングの手順</span></h2>
<h3><span id="toc11">口：声に合わせてパクパクさせる</span></h3>
<h4>コスチューム</h4>
<p><ruby>最初<rt>さいしょ</rt></ruby>に、ネコのスプライト(Sprite1)を<ruby>好<rt>す</rt></ruby>きな<ruby>大<rt>おお</rt></ruby>きさにして、<ruby>位置<rt>いち</rt></ruby>を<ruby>決<rt>き</rt></ruby>めましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar05.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar05.png" alt="ネコのスプライトを好きな大きさにし位置を決める" width="800" height="450" class="aligncenter size-full wp-image-8204" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar05.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>次<rt>つぎ</rt></ruby>に、<ruby>口<rt>くち</rt></ruby>のパーツを<ruby>作<rt>つく</rt></ruby>ります。</p>
<p>ネコのスプライトをコピーして、スプライトの<ruby>名前<rt>なまえ</rt></ruby>をつけます。</p>
<p>たとえば、</p>
<ul>
<li>Sprite1 → Cat</li>
<li>Sprite2 → mouth</li>
</ul>
<p>のようにすると<ruby>分<rt>わ</rt></ruby>かりやすいですよ。</p>
<p><ruby>口<rt>ぐち</rt></ruby>のスプライトは、<ruby>体<rt>からだ</rt></ruby>と<ruby>同<rt>おな</rt></ruby>じ<ruby>位置<rt>いち</rt></ruby>に<ruby>置<rt>お</rt></ruby>きましょう。</p>
<p>X<ruby>座標<rt>ざひょう</rt></ruby>とY<ruby>座標<rt>ざひょう</rt></ruby>を<ruby>同<rt>おな</rt></ruby>じにすればOKです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar06.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar06.png" alt="スプライトをコピーし、大きさと位置を合わせる" width="800" height="450" class="aligncenter size-full wp-image-8205" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar06.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>体<rt>からだ</rt></ruby>のスプライトを<ruby>選<rt>えら</rt></ruby>んで、<ruby>口<rt>くち</rt></ruby>を<ruby>消<rt>け</rt></ruby>します。</p>
<ol>
<li><ruby>顔<rt>かお</rt></ruby>をクリック</li>
<li>グループ<ruby>解除<rt>かいじょ</rt></ruby></li>
<li><ruby>顔<rt>かお</rt></ruby><ruby>以外<rt>いがい</rt></ruby>の<ruby>場所<rt>ばしょ</rt></ruby>をクリック</li>
<li><ruby>口<rt>ぐち</rt></ruby>を<ruby>選<rt>えら</rt></ruby>んでdeleteキー</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar07.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar07.png" alt="体のスプライトの口を消す" width="800" height="450" class="aligncenter size-full wp-image-8206" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar07.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>口<rt>くち</rt></ruby>のスプライトは、<ruby>口<rt>くち</rt></ruby>だけを<ruby>残<rt>のこ</rt></ruby>して<ruby>他<rt>ほか</rt></ruby>を<ruby>消<rt>け</rt></ruby>しましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar08.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar08.png" alt="口のスプライトは、口だけ残す" width="800" height="450" class="aligncenter size-full wp-image-8207" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar08.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>次<rt>つぎ</rt></ruby>に、<ruby>閉<rt>と</rt></ruby>じた<ruby>口<rt>くち</rt></ruby>のコスチュームを<ruby>作<rt>つく</rt></ruby>ります。</p>
<p>1.<ruby>元々<rt>もともと</rt></ruby>ある コスチューム2を <ruby>消<rt>け</rt></ruby>す<br />
2.コスチューム1を コピーし、<ruby>新<rt>あたら</rt></ruby>しいコスチューム2を<ruby>作<rt>つく</rt></ruby>る</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar09.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar09.png" alt="コスチューム1をコピー" width="800" height="450" class="aligncenter size-full wp-image-8208" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar09.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar09-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar09-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar09-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar09-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar09-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar09-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>閉<rt>と</rt></ruby>じた<ruby>口<rt>くち</rt></ruby>を<ruby>描<rt>か</rt></ruby>きます。</p>
<p>3.「<ruby>直線<rt>ちょくせん</rt></ruby>ツール」で <ruby>線<rt>せん</rt></ruby>を<ruby>引<rt>ひ</rt></ruby>く<br />
4.「<ruby>形<rt>かたち</rt></ruby>を<ruby>変<rt>か</rt></ruby>えるツール」で <ruby>線<rt>せん</rt></ruby>を<ruby>曲<rt>ま</rt></ruby>げる。<br />
<em>  </em><ruby>真<rt>ま</rt></ruby>ん<ruby>中<rt>なか</rt></ruby>をクリック → <ruby>真<rt>ま</rt></ruby>ん<ruby>中<rt>なか</rt></ruby>の<ruby>点<rt>てん</rt></ruby>を<ruby>少<rt>すこ</rt></ruby>し<ruby>下<rt>した</rt></ruby>に<ruby>引<rt>ひ</rt></ruby>っ<ruby>張<rt>ぱ</rt></ruby>る<br />
5.<ruby>口<rt>ぐち</rt></ruby>のあった<ruby>部分<rt>ぶぶん</rt></ruby>に<ruby>動<rt>うご</rt></ruby>かして、<ruby>元々<rt>もともと</rt></ruby>の<ruby>口<rt>くち</rt></ruby>を<ruby>消<rt>け</rt></ruby>す</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar10.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar10.png" alt="口のコスチューム2、閉じた口を描く" width="800" height="450" class="aligncenter size-full wp-image-8209" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar10.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>口<rt>くち</rt></ruby>のコスチュームが かくれてしまっている<ruby>場合<rt>ばあい</rt></ruby>は、<ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>カテゴリにある<span style="color: #9966ff;"><b>「<ruby>最前面<rt>さいぜんめん</rt></ruby>へ<ruby>移動<rt>いどう</rt></ruby>する」</b></span>ブロックを クリックすれば<ruby>出<rt>で</rt></ruby>てきます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar11.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar11.png" alt="「最前面へ移動する」ブロックをクリック" width="800" height="450" class="aligncenter size-full wp-image-8210" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar11.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>1.イベントカテゴリから<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>す</p>
<p>2.<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックを<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の<ruby>下<rt>した</rt></ruby>に<ruby>置<rt>お</rt></ruby>く</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12.png" alt="口のプログラム1" width="800" height="450" class="aligncenter size-full wp-image-8211" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックを<ruby>使<rt>つか</rt></ruby>うことで、<ruby>常<rt>つね</rt></ruby>に <ruby>声<rt>こえ</rt></ruby>をチェックできます。</p>
<p>&nbsp;</p>
<p>3.<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「もし ( ) なら でなければ」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックの<ruby>中<rt>なか</rt></ruby>に<ruby>入<rt>い</rt></ruby>れる</p>
<p>4.<ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「( ) &gt; ( )」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>し、<ruby>左側<rt>ひだりがわ</rt></ruby>に<ruby>調<rt>しら</rt></ruby>べるカテゴリの<span style="color: #4cbfe6;"><b>「<ruby>音量<rt>おんりょう</rt></ruby>」</b></span>ブロックを<ruby>入<rt>い</rt></ruby>れ、<ruby>右側<rt>みぎがわ</rt></ruby>に 30 を<ruby>入力<rt>にゅうりょく</rt></ruby>する</p>
<div class="blank-box bb-tab bb-memo bb-blue"><ruby>今回<rt>こんかい</rt></ruby>は<b>マイクの<ruby>音量<rt>おんりょう</rt></ruby></b>を<ruby>使<rt>つか</rt></ruby>いたいので、<ruby>調<rt>しら</rt></ruby>べるカテゴリの<span style="color: #4cbfe6;"><b>「<ruby>音量<rt>おんりょう</rt></ruby>」</b></span>ブロックを<ruby>使<rt>つか</rt></ruby>ってください。<br />
・<ruby>音<rt>おと</rt></ruby>カテゴリの<span style="color: #d65cd6;"><b>「<ruby>音量<rt>おんりょう</rt></ruby>」</b></span>　　：スプライトが<ruby>出<rt>だ</rt></ruby>す<ruby>音<rt>おと</rt></ruby>の<ruby>大<rt>おお</rt></ruby>きさ<br />
・<ruby>調<rt>しら</rt></ruby>べるカテゴリの<span style="color: #4cbfe6;"><b>「<ruby>音量<rt>おんりょう</rt></ruby>」</b></span>：マイクが<ruby>拾<rt>ひろ</rt></ruby>った<ruby>音<rt>おと</rt></ruby>の<ruby>大<rt>おお</rt></ruby>きさ</div>
<p>5.<span style="color: #40bf4a;"><b>「（<ruby>音量<rt>おんりょう</rt></ruby>）&gt; ( 30 )」</b></span>ブロックを<span style="color: #ffab19;"><b>「もし ( ) なら でなければ」</b></span>ブロックの( )の<ruby>中<rt>なか</rt></ruby>に<ruby>入<rt>い</rt></ruby>れる</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar13.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar13.png" alt="口のプログラム2" width="800" height="450" class="aligncenter size-full wp-image-8212" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar13.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar13-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar13-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar13-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar13-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar13-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar13-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>この<ruby>判定<rt>はんてい</rt></ruby>で、<ruby>声<rt>こえ</rt></ruby>を<ruby>出<rt>だ</rt></ruby>しているかいないか<ruby>判断<rt>はんだん</rt></ruby>しています。</p>
<p>&nbsp;</p>
<p><span style="color: #ffab19;"><b>「もし（<ruby>音量<rt>おんりょう</rt></ruby>） &gt; 30 」</b></span>の<ruby>中<rt>なか</rt></ruby>には、<ruby>声<rt>こえ</rt></ruby>を<ruby>出<rt>だ</rt></ruby>している<ruby>時<rt>とき</rt></ruby>に<ruby>口<rt>くち</rt></ruby>をパクパクさせる<ruby>処理<rt>しょり</rt></ruby>を<ruby>入<rt>い</rt></ruby>れます。</p>
<p>6.<ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>カテゴリから<span style="color: #9966ff;"><b>「<ruby>次<rt>つぎ</rt></ruby>のコスチュームにする」</b></span>ブロックを<ruby>入<rt>い</rt></ruby>れる</p>
<p>7.<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「( 1 ) <ruby>秒<rt>びょう</rt></ruby><ruby>待<rt>ま</rt></ruby>つ」</b></span>ブロックを<ruby>入<rt>い</rt></ruby>れ、1 を 0.25 に<ruby>変<rt>か</rt></ruby>える</p>
<p>&nbsp;</p>
<p><span style="color: #ffab19;"><b>「でなければ」</b></span>の<ruby>中<rt>なか</rt></ruby>には、<ruby>声<rt>こえ</rt></ruby>を<ruby>出<rt>だ</rt></ruby>していない<ruby>場合<rt>ばあい</rt></ruby>は<ruby>口<rt>くち</rt></ruby>を<ruby>閉<rt>と</rt></ruby>じる<ruby>処理<rt>しょり</rt></ruby>を<ruby>入<rt>い</rt></ruby>れます。</p>
<p>8.<ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>カテゴリから<span style="color: #9966ff;"><b>「コスチュームを( Costume2 )にする」</b></span>ブロックを<ruby>入<rt>い</rt></ruby>れる<br />
<em>　</em>Costume2は、<ruby>口<rt>くち</rt></ruby>を<ruby>閉<rt>と</rt></ruby>じたコスチュームを<ruby>指定<rt>してい</rt></ruby>しましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar14.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar14.png" alt="口のプログラム3" width="800" height="450" class="aligncenter size-full wp-image-8213" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar14.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar14-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar14-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar14-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar14-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar14-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar14-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>緑<rt>みどり</rt></ruby>のハタをおして <ruby>動<rt>うご</rt></ruby>かしてみましょう。</p>
<div class="blank-box bb-tab bb-memo bb-blue">Scratchから マイクの<ruby>使用<rt>しよう</rt></ruby>の<ruby>許可<rt>きょか</rt></ruby>が <ruby>求<rt>もと</rt></ruby>められます。<br />
「サイトへのアクセス<ruby>時<rt>じ</rt></ruby>は<ruby>許可<rt>きょか</rt></ruby>」または「<ruby>今回<rt>こんかい</rt></ruby>のみ<ruby>許可<rt>きょか</rt></ruby>」をクリックしてください。</div>
<p>パソコンに<ruby>向<rt>む</rt></ruby>かって<ruby>話<rt>はな</rt></ruby>してみてください。<ruby>声<rt>こえ</rt></ruby>に<ruby>合<rt>あ</rt></ruby>わせて<ruby>口<rt>くち</rt></ruby>をパクパクしたらOKです。</p>
<p><ruby>音量<rt>おんりょう</rt></ruby>の<ruby>条件<rt>じょうけん</rt></ruby>の30や、<ruby>待<rt>ま</rt></ruby>つ<ruby>時間<rt>じかん</rt></ruby>0.25は <ruby>好<rt>この</rt></ruby>みの<ruby>数字<rt>すうじ</rt></ruby>に <ruby>調整<rt>ちょうせい</rt></ruby>してみてくださいね。</p>
<p>&nbsp;</p>
<h3><span id="toc12">目：まばたきさせる</span></h3>
<p><ruby>口<rt>くち</rt></ruby>が<ruby>動<rt>うご</rt></ruby>くだけでも VTuberっぽいですが、さらに「まばたき」を<ruby>追加<rt>ついか</rt></ruby>してみましょう！</p>
<p>まばたきがあると、キャラクターが もっと<ruby>生<rt>い</rt></ruby>きているみたいに <ruby>見<rt>み</rt></ruby>えます。</p>
<h4>コスチューム</h4>
<p>ネコの<ruby>体<rt>からだ</rt></ruby>のスプライト(Cat)をコピーします。</p>
<p>スプライト<ruby>名<rt>めい</rt></ruby>を「eye」などに<ruby>変<rt>か</rt></ruby>え、<ruby>位置<rt>いち</rt></ruby>を<ruby>体<rt>からだ</rt></ruby>と<ruby>同<rt>おな</rt></ruby>じにしましょう。</p>
<p>&nbsp;</p>
<p><ruby>体<rt>からだ</rt></ruby>のスプライトを<ruby>選<rt>えら</rt></ruby>んで、<ruby>目<rt>め</rt></ruby>を<ruby>消<rt>け</rt></ruby>します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar15.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar15.png" alt="体のスプライトの目を消す" width="800" height="450" class="aligncenter size-full wp-image-8214" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar15.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar15-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar15-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar15-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar15-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar15-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar15-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>口<rt>くち</rt></ruby>を<ruby>作<rt>つく</rt></ruby>った<ruby>時<rt>とき</rt></ruby>と<ruby>同<rt>おな</rt></ruby>じように、<ruby>開<rt>ひら</rt></ruby>いた<ruby>目<rt>め</rt></ruby>と <ruby>閉<rt>と</rt></ruby>じた<ruby>目<rt>め</rt></ruby>の コスチュームを<ruby>作<rt>つく</rt></ruby>ります。</p>
<p>コスチューム1は、<ruby>目<rt>め</rt></ruby>だけを<ruby>残<rt>のこ</rt></ruby>して<ruby>他<rt>ほか</rt></ruby>を<ruby>消<rt>け</rt></ruby>します。</p>
<p>コスチューム2は、<ruby>閉<rt>と</rt></ruby>じた<ruby>目<rt>め</rt></ruby>を<ruby>描<rt>か</rt></ruby>きます。</p>
<ol>
<li><ruby>元々<rt>もともと</rt></ruby>あった、コスチューム2を<ruby>消<rt>け</rt></ruby>す</li>
<li>コスチューム1をコピーする</li>
<li>コスチューム2の<ruby>黒目<rt>くろめ</rt></ruby>を<ruby>消<rt>け</rt></ruby>して、<ruby>閉<rt>と</rt></ruby>じた<ruby>目<rt>め</rt></ruby>にする</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar16.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar16.png" alt="目のスプライト" width="800" height="450" class="aligncenter size-full wp-image-8215" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar16.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar16-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar16-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar16-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar16-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar16-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar16-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>目<rt>め</rt></ruby>のコスチュームが かくれてしまっている<ruby>場合<rt>ばあい</rt></ruby>は、<span style="color: #9966ff;"><b>「<ruby>最前面<rt>さいぜんめん</rt></ruby>へ<ruby>移動<rt>いどう</rt></ruby>する」</b></span>ブロックを クリックして<ruby>出<rt>だ</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>1.イベントカテゴリから<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>す</p>
<p>2.<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックを<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の<ruby>下<rt>した</rt></ruby>に<ruby>置<rt>お</rt></ruby>く</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12.png" alt="口のプログラム1" width="800" height="450" class="aligncenter size-full wp-image-8211" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar12-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>3.<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「( 1 ) <ruby>秒<rt>びょう</rt></ruby><ruby>待<rt>ま</rt></ruby>つ」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>して、<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックの<ruby>中<rt>なか</rt></ruby>に<ruby>入<rt>い</rt></ruby>れる</p>
<p>4.<ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「( 1 ) から ( 10 ) までの<ruby>乱数<rt>らんすう</rt></ruby>」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>し、<span style="color: #40bf4a;"><b>「( 3.0 ) から ( 5.0 ) までの<ruby>乱数<rt>らんすう</rt></ruby>」</b></span>に<ruby>変<rt>か</rt></ruby>える</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar17.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar17.png" alt="目のプログラム1" width="800" height="450" class="aligncenter size-full wp-image-8216" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar17.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar17-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar17-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar17-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar17-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar17-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar17-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>まばたきのタイミングが <ruby>一定<rt>いってい</rt></ruby>にならないように <a rel="noopener" target="_self" href="https://living-maou.com/scratch-random/"><ruby>乱数<rt>らんすう</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a>を<ruby>使<rt>つか</rt></ruby>っています。</p>
<p>&nbsp;</p>
<p>5.<ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>カテゴリから<span style="color: #9966ff;"><b>「コスチュームを( Costume2 )にする」</b></span>ブロックを<ruby>入<rt>い</rt></ruby>れる</p>
<p>6.<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「( 1 ) <ruby>秒<rt>びょう</rt></ruby><ruby>待<rt>ま</rt></ruby>つ」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>して、<span style="color: #ffab19;"><b>「( 0.25 ) <ruby>秒<rt>びょう</rt></ruby><ruby>待<rt>ま</rt></ruby>つ」</b></span>にする</p>
<p>7.<ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>カテゴリから<span style="color: #9966ff;"><b>「コスチュームを( Costume1 )にする」</b></span>ブロックを<ruby>入<rt>い</rt></ruby>れる</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar18.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar18.png" alt="目のプログラム2" width="800" height="450" class="aligncenter size-full wp-image-8217" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar18.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar18-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar18-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar18-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar18-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar18-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar18-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>まばたきの<ruby>間<rt>かん</rt></ruby>かくは <ruby>好<rt>この</rt></ruby>みの<ruby>数字<rt>すうじ</rt></ruby>に <ruby>変<rt>か</rt></ruby>えてみてください。</p>
<p>&nbsp;</p>
<p><ruby>最後<rt>さいご</rt></ruby>に、<ruby>背景<rt>はいけい</rt></ruby>をつけて できあがりです！</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar19.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar19.png" alt="Scratch VTuber風アバター" width="800" height="450" class="aligncenter size-full wp-image-8200" srcset="https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar19.png 800w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar19-500x281.png 500w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar19-300x169.png 300w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar19-768x432.png 768w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar19-120x68.png 120w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar19-160x90.png 160w, https://living-maou.com/wp-content/uploads/2026/06/scratch-vtuber-avatar19-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h2><span id="toc13">もっと本物っぽく改造してみよう</span></h2>
<p>さらに<ruby>改造<rt>かいぞう</rt></ruby>してみましょう！</p>
<p><ruby>例<rt>たと</rt></ruby>えば、</p>
<ul>
<li><ruby>体<rt>からだ</rt></ruby>を<ruby>上下<rt>じょうげ</rt></ruby>にゆらす</li>
<li>キーをおすと<ruby>表情<rt>ひょうじょう</rt></ruby>が<ruby>変<rt>か</rt></ruby>わる</li>
<li>コメントが<ruby>流<rt>なが</rt></ruby>れる</li>
</ul>
<p>などを<ruby>追加<rt>ついか</rt></ruby>すると、もっとVTuberっぽくなります。</p>
<p><ruby>自分<rt>じぶん</rt></ruby>でオリジナルのキャラクターを<ruby>描<rt>か</rt></ruby>いてみるのも<ruby>楽<rt>たの</rt></ruby>しいですよ！</p>
<blockquote class="twitter-tweet" data-media-max-width="560">
<p lang="ja" dir="ltr">機能を追加してみました<br />
&#x1f539;体が上下に動く<br />
&#x1f539;キーボード操作で表情が変わる<br />
&#x1f539;コメントが流れる<br />
よりVTuberっぽくなったかな <a rel="noopener" target="_blank" href="https://t.co/RYuwMLjDsj">pic.twitter.com/RYuwMLjDsj<span class="fa fa-external-link external-icon anchor-icon"></span></a></p>
<p>— メソ@子ども向けプログラミング教材で遊ぼう (@Meso_blog) <a rel="noopener" target="_blank" href="https://x.com/Meso_blog/status/2067044628789088489?ref_src=twsrc%5Etfw">June 17, 2026<span class="fa fa-external-link external-icon anchor-icon"></span></a></p></blockquote>
<p><script async src="https://platform.x.com/widgets.js" charset="utf-8"></script></p>
<p>&nbsp;</p>
<p>さらにレベルアップしたい<ruby>人<rt>ひと</rt></ruby><ruby>向<rt>む</rt></ruby>けに、<ruby>体<rt>からだ</rt></ruby>のゆれ・<ruby>表情<rt>ひょうじょう</rt></ruby><ruby>切<rt>き</rt></ruby>り<ruby>替<rt>か</rt></ruby>え・<ruby>流<rt>なが</rt></ruby>れるコメントを<ruby>追加<rt>ついか</rt></ruby>した「<a rel="noopener" target="_blank" href="https://note.com/living_maou/n/n382e107d3966?sub_rt=share_pw">VTuber<ruby>風<rt>ふう</rt></ruby>アバター<ruby>完全<rt>かんぜん</rt></ruby><ruby>版<rt>ばん</rt></ruby><span class="fa fa-external-link external-icon anchor-icon"></span></a>」の<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby>をnoteで<ruby>紹介<rt>しょうかい</rt></ruby>しています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_blank" href="https://note.com/living_maou/n/n382e107d3966?sub_rt=share_pw" title="ScratchでVTuber風アバターを作ろう【完全版】｜メソ" class="blogcard-wrap external-blogcard-wrap a-wrap cf"><div class="blogcard external-blogcard eb-left cf"><div class="blogcard-label external-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail external-blogcard-thumbnail"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/cocoon-resources/blog-card-cache/dffb0c9b39449139d20840e49039c96d.png" alt="" class="blogcard-thumb-image external-blogcard-thumb-image" width="160" height="90" /></figure><div class="blogcard-content external-blogcard-content"><div class="blogcard-title external-blogcard-title">ScratchでVTuber風アバターを作ろう【完全版】｜メソ</div><div class="blogcard-snippet external-blogcard-snippet">この記事は、2026年6月時点での情報を元に書いています。Scratchのアプリやソフトのバージョン、画面などは 更新されている可能性もありますので、あらかじめご了承ください。 以前、ブログで「声に反応して口をパクパクさせるVTuber風ア...</div></div><div class="blogcard-footer external-blogcard-footer cf"><div class="blogcard-site external-blogcard-site"><div class="blogcard-favicon external-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://note.com/living_maou/n/n382e107d3966" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">note.com</div></div></div></div></a>
</div>
<p>チャレンジしてみたい<ruby>人<rt>ひと</rt></ruby>は、ぜひチェックしてみてください。</p>
<p>&nbsp;</p>
<h2><span id="toc14">まとめ</span></h2>
<p>VTuberは、「<ruby>人<rt>ひと</rt></ruby>の<ruby>動<rt>うご</rt></ruby>きをキャラクターに<ruby>変<rt>か</rt></ruby>える」ことで<ruby>動<rt>うご</rt></ruby>いています。</p>
<p><ruby>本物<rt>ほんもの</rt></ruby>のVTuberは、</p>
<ul>
<li>カメラやセンサー</li>
<li>トラッキングソフト（<ruby>動<rt>うご</rt></ruby>きを<ruby>分析<rt>ぶんせき</rt></ruby>して キャラクターを<ruby>動<rt>うご</rt></ruby>かす）</li>
<li>2D・3Dモデル</li>
</ul>
<p>などを<ruby>使<rt>つか</rt></ruby>い、<ruby>細<rt>こま</rt></ruby>かい<ruby>表情<rt>ひょうじょう</rt></ruby>や<ruby>動<rt>うご</rt></ruby>きを<ruby>読<rt>よ</rt></ruby>み<ruby>取<rt>と</rt></ruby>って アバターを<ruby>動<rt>うご</rt></ruby>かしています。</p>
<p><ruby>今回<rt>こんかい</rt></ruby><ruby>作<rt>つく</rt></ruby>ったScratch<ruby>版<rt>ばん</rt></ruby>は、そのしくみをシンプルにして VTuberっぽい<ruby>動<rt>うご</rt></ruby>きを <ruby>再現<rt>さいげん</rt></ruby>したものです。</p>
<div class="scrollable-table"><table>
<tbody>
<tr>
<th>VTuberのしくみ</th>
<th><ruby>本物<rt>ほんもの</rt></ruby>のVTuber</th>
<th>Scratch<ruby>版<rt>ばん</rt></ruby></th>
</tr>
<tr>
<td><ruby>動<rt>うご</rt></ruby>きを<ruby>読<rt>よ</rt></ruby>み<ruby>取<rt>と</rt></ruby>る</td>
<td>カメラやセンサー</td>
<td>マイク</td>
</tr>
<tr>
<td><ruby>動<rt>うご</rt></ruby>きを<ruby>判断<rt>はんだん</rt></ruby>する</td>
<td>トラッキングソフト</td>
<td><ruby>条件<rt>じょうけん</rt></ruby><ruby>分岐<rt>ぶんき</rt></ruby></td>
</tr>
<tr>
<td>キャラクター</td>
<td>2D・3Dモデルを<ruby>動<rt>うご</rt></ruby>かす</td>
<td>コスチュームを<ruby>切<rt>き</rt></ruby>り<ruby>替<rt>か</rt></ruby>える</td>
</tr>
</tbody>
</table></div>
<p>ぜひ、<ruby>自分<rt>じぶん</rt></ruby>だけの アバターを<ruby>作<rt>つく</rt></ruby>って <ruby>遊<rt>あそ</rt></ruby>んでみてくださいね！</p>
<p>&nbsp;</p>
<div class="blogcard-type bct-related">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-secret-letter/" title="【スクラッチ(Scratch)】ヒミツのお手紙作り！暗号文をつくろう" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【スクラッチ(Scratch)】ヒミツのお手紙作り！暗号文をつくろう</div><div class="blogcard-snippet internal-blogcard-snippet">Scratch（スクラッチ）を使って、暗号文を作ったりもどしたりするプログラムの作り方を紹介。手紙の内容を誰にも読めない秘密の言葉に変換することができますよ！自由研究にもおすすめです。【リビングの魔王】ではプログラムの作り方を分かりやすく解説します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/scratch-vtuber/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【子ども向け】プログラムもテストするって本当？バグを見つけよう！</title>
		<link>https://living-maou.com/scratch-test/</link>
					<comments>https://living-maou.com/scratch-test/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Thu, 05 Sep 2024 00:18:31 +0000</pubDate>
				<category><![CDATA[用語解説]]></category>
		<category><![CDATA[Scratch]]></category>
		<category><![CDATA[用語]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6925</guid>

					<description><![CDATA[みなさん、テストは好すきですか？ もしかしたら、「ちょっと苦手にがてかな…」と思おもっているかもしれませんね。 でも、実じつはプログラムもテストを受うけているって知しっていましたか？ みなさんがいつも使つかっているサービ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6926" src="https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test.jpg 800w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>みなさん、テストは<ruby>好<rt>す</rt></ruby>きですか？<br />
もしかしたら、「ちょっと<ruby>苦手<rt>にがて</rt></ruby>かな…」と<ruby>思<rt>おも</rt></ruby>っているかもしれませんね。</p>
<p>でも、<ruby>実<rt>じつ</rt></ruby>は<span class="marker-under-red">プログラムもテストを<ruby>受<rt>う</rt></ruby>けている</span>って<ruby>知<rt>し</rt></ruby>っていましたか？</p>
<p>みなさんがいつも<ruby>使<rt>つか</rt></ruby>っているサービスやゲームは、たくさんの<ruby>人<rt>ひと</rt></ruby>が<ruby>時間<rt>じかん</rt></ruby>をかけてテストして、<ruby>安心<rt>あんしん</rt></ruby>して<ruby>使<rt>つか</rt></ruby>えるようにしています。</p>
<p>この<ruby>記事<rt>きじ</rt></ruby>では、プログラムをテストする<ruby>方法<rt>ほうほう</rt></ruby>を、<ruby>小学生<rt>しょうがくせい</rt></ruby><ruby>向<rt>む</rt></ruby>けにかんたんな<ruby>形<rt>かたち</rt></ruby>にアレンジして<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>テストの<ruby>準備<rt>じゅんび</rt></ruby>から<ruby>実行<rt>じっこう</rt></ruby>、そして<ruby>結果<rt>けっか</rt></ruby>の<ruby>確認<rt>かくにん</rt></ruby>まで、いっしょに<ruby>楽<rt>たの</rt></ruby>しく<ruby>学<rt>まな</rt></ruby>んでいきましょう！</p>
<p>&nbsp;</p>
<h2><span id="toc1">なぜプログラムをテストするの？</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6929" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b.png" alt="プログラムをテストする目的" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>プログラミングにおける<span style="color: #ff6600;"><b>テスト</b></span>は、<ruby>作<rt>つく</rt></ruby>った<span class="marker-under-red">プログラムが<ruby>正<rt>ただ</rt></ruby>しく<ruby>動<rt>うご</rt></ruby>くか<ruby>確認<rt>かくにん</rt></ruby>する</span>ための<ruby>作業<rt>さぎょう</rt></ruby>です。</p>
<p>テストを<ruby>行<rt>おこな</rt></ruby>うことで、プログラムにまちがい（<span style="color: #ff6600;"><b>バグ</b></span>）がないか<ruby>確<rt>たし</rt></ruby>かめます。</p>
<p>これは、<ruby>料理<rt>りょうり</rt></ruby>を<ruby>作<rt>つく</rt></ruby>るときに<ruby>味見<rt>あじみ</rt></ruby>をしたり、<ruby>自転<rt>じてん</rt></ruby><ruby>車<rt>くるま</rt></ruby>に<ruby>乗<rt>の</rt></ruby>る<ruby>前<rt>まえ</rt></ruby>にタイヤやブレーキをチェックするのと<ruby>同<rt>おな</rt></ruby>じです。<ruby>問題<rt>もんだい</rt></ruby>があれば、<ruby>味<rt>あじ</rt></ruby>を<ruby>調整<rt>ちょうせい</rt></ruby>したり、<ruby>修理<rt>しゅうり</rt></ruby>したりします。</p>
<p>プログラムも<ruby>同<rt>おな</rt></ruby>じように、<ruby>使<rt>つか</rt></ruby>う<ruby>前<rt>まえ</rt></ruby>にテストし、エラーやバグを<ruby>見<rt>み</rt></ruby>つけて<ruby>修正<rt>しゅうせい</rt></ruby>します（<span style="color: #ff6600;"><b>デバッグ</b></span>）</p>
<p>もしテストをしなかったら、プログラムにバグが<ruby>残<rt>のこ</rt></ruby>ったままになってしまい、<ruby>使<rt>つか</rt></ruby>う<ruby>人<rt>ひと</rt></ruby>が<ruby>困<rt>こま</rt></ruby>ってしまうかもしれません。</p>
<div class="blank-box bb-blue">
<ul>
<li>バグ　　: プログラムのまちがい</li>
<li>デバッグ: プログラムのまちがいを<ruby>見<rt>み</rt></ruby>つけて<ruby>修正<rt>しゅうせい</rt></ruby>する<ruby>作業<rt>さぎょう</rt></ruby></li>
</ul>
</div>
<p>&nbsp;</p>
<h2><span id="toc2">テストの計画をたてよう</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6930" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test02.png" alt="ホワイトボックステストとブラックボックステスト" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test02.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>テストには<ruby>大<rt>おお</rt></ruby>きく<ruby>分<rt>わ</rt></ruby>けて2つの<ruby>方法<rt>ほうほう</rt></ruby>があります。</p>
<div class="blank-box bb-blue">
<ul>
<li>ホワイトボックステスト：プログラムの<ruby>中身<rt>なかみ</rt></ruby>を<ruby>見<rt>み</rt></ruby>て、どう<ruby>動<rt>うご</rt></ruby>いているか<ruby>確認<rt>かくにん</rt></ruby></li>
<li>ブラックボックステスト：プログラムの<ruby>中身<rt>なかみ</rt></ruby>を<ruby>見<rt>み</rt></ruby>ないで、<ruby>結果<rt>けっか</rt></ruby>だけ<ruby>確認<rt>かくにん</rt></ruby></li>
</ul>
</div>
<p><ruby>算数<rt>さんすう</rt></ruby>のテストに たとえると、<ruby>答<rt>こた</rt></ruby>えが<ruby>正<rt>ただ</rt></ruby>しいだけでなく <ruby>計算<rt>けいさん</rt></ruby>の<ruby>式<rt>しき</rt></ruby>が<ruby>正<rt>ただ</rt></ruby>しいかどうかも<ruby>確認<rt>かくにん</rt></ruby>するのがホワイトボックステスト、<ruby>答<rt>こた</rt></ruby>えだけを<ruby>見<rt>み</rt></ruby>てそれが<ruby>正<rt>ただ</rt></ruby>しいかどうかを<ruby>確認<rt>かくにん</rt></ruby>するのが ブラックボックステストです。</p>
<p><ruby>今回<rt>こんかい</rt></ruby>は、ホワイトボックステストの<ruby>方法<rt>ほうほう</rt></ruby>を、<ruby>小学生<rt>しょうがくせい</rt></ruby><ruby>向<rt>む</rt></ruby>けにかんたんな<ruby>形<rt>かたち</rt></ruby>にアレンジして<ruby>説明<rt>せつめい</rt></ruby>します。</p>
<p>&nbsp;</p>
<h3><span id="toc3">確認することのチェックリストを作ろう</span></h3>
<p>まず、プログラムがちゃんと<ruby>動<rt>うご</rt></ruby>くかどうか<ruby>確認<rt>かくにん</rt></ruby>するために、「<ruby>何<rt>なに</rt></ruby>をチェックするか」のリストを<ruby>作<rt>つく</rt></ruby>りましょう。これを「<b>テスト<ruby>項目<rt>こうもく</rt></ruby></b>」といいます。</p>
<p>リストを<ruby>作<rt>つく</rt></ruby>るときに<ruby>考<rt>かんが</rt></ruby>えること</p>
<div class="blank-box bb-blue">
<ul>
<li>ふつうにやってみる</li>
<li>ギリギリを<ruby>攻<rt>せ</rt></ruby>めてみる</li>
<li>おかしなことをしてみる</li>
<li><ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせを<ruby>考<rt>かんが</rt></ruby>える</li>
<li>プログラムが<ruby>通<rt>とお</rt></ruby>るすべてのルートを<ruby>確認<rt>かくにん</rt></ruby>する</li>
</ul>
</div>
<p>&nbsp;</p>
<h4 id="item01">ふつうにやってみる</h4>
<p>まずは、プログラムがふつうに<ruby>動<rt>うご</rt></ruby>くかどうか<ruby>確認<rt>かくにん</rt></ruby>してみましょう。</p>
<p><ruby>例<rt>れい</rt></ruby>：<ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>数字<rt>すうじ</rt></ruby>を3<ruby>倍<rt>ばい</rt></ruby>にするプログラムで、7を<ruby>入力<rt>にゅうりょく</rt></ruby>したら21になるかみる。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test03.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-6931 size-full" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test03.png" alt="正常系" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test03.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4 id="item02">ギリギリを攻めてみる</h4>
<p>プログラムが「さかい目の<ruby>値<rt>あたい</rt></ruby>」でどう<ruby>動<rt>うご</rt></ruby>くか<ruby>確<rt>たし</rt></ruby>かめましょう。</p>
<p><ruby>例<rt>れい</rt></ruby>：「1から100までの<ruby>数<rt>かず</rt></ruby>しか<ruby>入<rt>い</rt></ruby>れられない」とき、1や100だけでなく、0や101のようなギリギリアウトな<ruby>数<rt>かず</rt></ruby>も<ruby>入<rt>い</rt></ruby>れてどうなるかみる。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test04.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-6932 size-full" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test04.png" alt="境界値テスト" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test04.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4 id="item03">おかしなことをしてみる</h4>
<p><ruby>変<rt>へん</rt></ruby>なデータを<ruby>入力<rt>にゅうりょく</rt></ruby>したらどうなるか、プログラムがちゃんと<ruby>対応<rt>たいおう</rt></ruby>できるか<ruby>確認<rt>かくにん</rt></ruby>しましょう。</p>
<p><ruby>例<rt>れい</rt></ruby>：<ruby>数字<rt>すうじ</rt></ruby>を<ruby>入力<rt>にゅうりょく</rt></ruby>するところに<ruby>文字<rt>もじ</rt></ruby>を<ruby>入<rt>い</rt></ruby>れたらどうなるか<ruby>試<rt>ため</rt></ruby>してみる。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6933" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test05.png" alt="異常系" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test05.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4 id="item04">組み合わせを考える</h4>
<p>プログラムで<ruby>複数<rt>ふくすう</rt></ruby>の<ruby>設定<rt>せってい</rt></ruby>がある<ruby>場合<rt>ばあい</rt></ruby>、それらの<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせをテストしてみましょう。</p>
<p><ruby>例<rt>れい</rt></ruby>：アイスクリームの<ruby>味<rt>あじ</rt></ruby>と<ruby>食<rt>た</rt></ruby>べ<ruby>方<rt>かた</rt></ruby>を<ruby>選<rt>えら</rt></ruby>ぶプログラムで、「バニラ・コーン」「チョコレート・カップ」など、いろんな<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせをチェックする。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6934" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test06.png" alt="組み合わせ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test06.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4 id="item05">プログラムが通るすべてのルートを確認する</h4>
<p>プログラムに「もし…ならこうする」や「そうでなければこうする」などの<ruby>命令<rt>めいれい</rt></ruby>で<ruby>処理<rt>しょり</rt></ruby>が<ruby>分<rt>わ</rt></ruby>かれる<ruby>場合<rt>ばあい</rt></ruby>、それぞれのルートをテストします。</p>
<p><ruby>例<rt>れい</rt></ruby>：<ruby>温度<rt>おんど</rt></ruby>によってネコが<ruby>話<rt>はな</rt></ruby>す<ruby>内容<rt>ないよう</rt></ruby>が<ruby>変<rt>か</rt></ruby>わる<ruby>場合<rt>ばあい</rt></ruby>、それぞれのルートをテストします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6935" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test07.png" alt="カバレッジ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test07.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h3><span id="toc4">どのようにテストするか考えよう</span></h3>
<p><ruby>次<rt>つぎ</rt></ruby>に、テストのやり<ruby>方<rt>かた</rt></ruby>を<ruby>具体的<rt>ぐたいてき</rt></ruby>に<ruby>考<rt>かんが</rt></ruby>えてみましょう。これを「テストケース」といいます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6936" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test08.png" alt="テストケース" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test08.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ol>
<li>どこをチェックするか<ruby>決<rt>き</rt></ruby>めよう</li>
<li><ruby>何<rt>なに</rt></ruby>を<ruby>入力<rt>にゅうりょく</rt></ruby>してどう<ruby>動<rt>うご</rt></ruby>かすかを<ruby>考<rt>かんが</rt></ruby>えよう</li>
<li>こうなるハズという<ruby>結果<rt>けっか</rt></ruby>を<ruby>予想<rt>よそう</rt></ruby>しよう</li>
</ol>
</div>
<p>&nbsp;</p>
<h4 id="case01">どこをチェックするか決めよう</h4>
<p>テスト<ruby>項目<rt>こうもく</rt></ruby>をもとに、プログラムのどの<ruby>部分<rt>ぶぶん</rt></ruby>をチェックするか<ruby>決<rt>き</rt></ruby>めます。</p>
<p>たとえば、「<ruby>計算<rt>けいさん</rt></ruby>が<ruby>正<rt>ただ</rt></ruby>しくできるか」「0を<ruby>入力<rt>にゅうりょく</rt></ruby>したらどうなるか」などです。</p>
<p>&nbsp;</p>
<h4 id="case02">何を入力してどう動かすかを考えよう</h4>
<p><ruby>次<rt>つぎ</rt></ruby>に、どんなデータを<ruby>入<rt>い</rt></ruby>れて、どう<ruby>操作<rt>そうさ</rt></ruby>するかを<ruby>決<rt>き</rt></ruby>めます。</p>
<p><ruby>例<rt>たと</rt></ruby>えば、「7を<ruby>入力<rt>にゅうりょく</rt></ruby>してEnterキーを<ruby>押<rt>お</rt></ruby>す」といった<ruby>具体的<rt>ぐたいてき</rt></ruby>な<ruby>値<rt>あたい</rt></ruby>や<ruby>操作<rt>そうさ</rt></ruby>です。</p>
<p>&nbsp;</p>
<h4 id="case03">こうなるハズという結果を予想しよう</h4>
<p>その<ruby>操作<rt>そうさ</rt></ruby>をしたら、プログラムがどう<ruby>動<rt>うご</rt></ruby>くべきか、<ruby>期待<rt>きたい</rt></ruby>される<ruby>結果<rt>けっか</rt></ruby>を<ruby>考<rt>かんが</rt></ruby>えます。</p>
<p><ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>数字<rt>すうじ</rt></ruby>を3<ruby>倍<rt>ばい</rt></ruby>にするプログラムだったら、「ネコのスプライトが&#8221;7の3<ruby>倍<rt>ばい</rt></ruby>は21&#8243;と2<ruby>秒<rt>びょう</rt></ruby><ruby>言<rt>い</rt></ruby>う」になるハズと<ruby>予想<rt>よそう</rt></ruby>します。</p>
<p>&nbsp;</p>
<h2><span id="toc5">プログラムを動かして確認してみよう</span></h2>
<p><ruby>準備<rt>じゅんび</rt></ruby>が<ruby>整<rt>ととの</rt></ruby>ったら、いよいよテストしてみましょう。</p>
<p>テスト<ruby>項目<rt>こうもく</rt></ruby>とテストケースに<ruby>従<rt>したが</rt></ruby>って、プログラムを<ruby>実際<rt>じっさい</rt></ruby>に<ruby>動<rt>うご</rt></ruby>かします。</p>
<h3><span id="toc6">結果を記録しよう</span></h3>
<p><ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>内容<rt>ないよう</rt></ruby>と<ruby>実行<rt>じっこう</rt></ruby><ruby>結果<rt>けっか</rt></ruby>をスクリーンショットや<ruby>写真<rt>しゃしん</rt></ruby>、<ruby>動画<rt>どうが</rt></ruby>などで<ruby>記録<rt>きろく</rt></ruby>しておきましょう。</p>
<p><ruby>後<rt>ご</rt></ruby>でプログラムが<ruby>正<rt>ただ</rt></ruby>しく<ruby>動<rt>うご</rt></ruby>いたかどうかをふり<ruby>返<rt>かえ</rt></ruby>るときに<ruby>役立<rt>やくだ</rt></ruby>ちます。</p>
<p>スクリーンショットの<ruby>撮<rt>と</rt></ruby>り<ruby>方<rt>かた</rt></ruby></p>
<div class="blank-box bb-blue">
<ul>
<li>Windows：「Print Screen」や「prt sc」と<ruby>書<rt>か</rt></ruby>いてあるキーをおす</li>
<li>chromebook：「Ctrl」キー＋「ウィンドウを<ruby>表示<rt>ひょうじ</rt></ruby>」キー（□||）</li>
<li>Mac：「shift」キー＋「Command」キー＋「3」</li>
</ul>
</div>
<p>&nbsp;</p>
<h2><span id="toc7">結果を見て評価しよう</span></h2>
<p>テストが<ruby>終<rt>お</rt></ruby>わったら、<ruby>結果<rt>けっか</rt></ruby>が<ruby>期待<rt>きたい</rt></ruby>した<ruby>通<rt>とお</rt></ruby>りになっているか<ruby>確認<rt>かくにん</rt></ruby>します。</p>
<p><ruby>以下<rt>いか</rt></ruby>の<ruby>手順<rt>てじゅん</rt></ruby>で<ruby>進<rt>すす</rt></ruby>めましょう。</p>
<div class="blank-box bb-blue">
<ol>
<li>メモを<ruby>取<rt>と</rt></ruby>ろう</li>
<li>バグを<ruby>特定<rt>とくてい</rt></ruby>しよう</li>
<li>バグを<ruby>修正<rt>しゅうせい</rt></ruby>しよう</li>
<li>もう<ruby>一度<rt>いちど</rt></ruby>テストしよう</li>
</ol>
</div>
<p>&nbsp;</p>
<h4 id="evaluation01">メモを取ろう</h4>
<p><ruby>確認<rt>かくにん</rt></ruby>した<ruby>内容<rt>ないよう</rt></ruby>をメモしておきましょう。</p>
<p><ruby>後<rt>あと</rt></ruby>でふり<ruby>返<rt>かえ</rt></ruby>りたい<ruby>時<rt>とき</rt></ruby>に、どこを<ruby>見<rt>み</rt></ruby>て<ruby>何<rt>なに</rt></ruby>を<ruby>確認<rt>かくにん</rt></ruby>したのかすぐにわかります。</p>
<p>&nbsp;</p>
<h4 id="evaluation02">バグを特定しよう</h4>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6567" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error05.png" alt="間違っている場所を特定する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error05.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>もし、<ruby>問題<rt>もんだい</rt></ruby>が<ruby>見<rt>み</rt></ruby>つかったら、プログラムのどこが まちがっているのかを<ruby>見<rt>み</rt></ruby>つけます。</p>
<p>ブロックの<ruby>順番<rt>じゅんばん</rt></ruby>や<ruby>判定<rt>はんてい</rt></ruby><ruby>条件<rt>じょうけん</rt></ruby>、<ruby>変数<rt>へんすう</rt></ruby>の<ruby>動<rt>うご</rt></ruby>きなど くわしく<ruby>確認<rt>かくにん</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h4 id="evaluation03">バグを修正しよう</h4>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6568" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error06.png" alt="解決案を考える" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error06.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>まちがっている<ruby>場所<rt>ばしょ</rt></ruby>を<ruby>見<rt>み</rt></ruby>つけたら、どのように<ruby>修正<rt>しゅうせい</rt></ruby>すれば<ruby>正<rt>ただ</rt></ruby>しい<ruby>結果<rt>けっか</rt></ruby>になるのかを<ruby>考<rt>かんが</rt></ruby>えて<ruby>直<rt>なお</rt></ruby>しましょう。</p>
<p><ruby>解決策<rt>かいけつさく</rt></ruby>が<ruby>一<rt>ひと</rt></ruby>つではない<ruby>場合<rt>ばあい</rt></ruby>もあるので、いくつか<ruby>方法<rt>ほうほう</rt></ruby>を<ruby>考<rt>かんが</rt></ruby>えてみてください。</p>
<p>&nbsp;</p>
<h4 id="evaluation04">もう一度テストしよう</h4>
<p>バグを<ruby>修正<rt>しゅうせい</rt></ruby>したら、もう<ruby>一度<rt>いちど</rt></ruby>テストします。</p>
<p><ruby>修正<rt>しゅうせい</rt></ruby>によって <ruby>新<rt>あたら</rt></ruby>しいバグが<ruby>発生<rt>はっせい</rt></ruby>しているかもしれないからです。</p>
<p>このようにテストをくり<ruby>返<rt>かえ</rt></ruby>すことで、プログラムの<ruby>完成<rt>かんせい</rt></ruby><ruby>度<rt>ど</rt></ruby>をさらに<ruby>高<rt>たか</rt></ruby>めることができます。</p>
<p>&nbsp;</p>
<h2><span id="toc8">まとめ</span></h2>
<p>プログラムが<ruby>正<rt>ただ</rt></ruby>しく<ruby>動<rt>うご</rt></ruby>くかどうかを<ruby>確認<rt>かくにん</rt></ruby>する テストの<ruby>手順<rt>てじゅん</rt></ruby>について <ruby>解説<rt>かいせつ</rt></ruby>しました。</p>
<p>プログラムを<ruby>作<rt>つく</rt></ruby>るだけでなく、しっかりとテストすることで、より<ruby>良<rt>よ</rt></ruby>い<ruby>作品<rt>さくひん</rt></ruby>ができます。</p>
<p><ruby>自分<rt>じぶん</rt></ruby>のプログラムが <ruby>思<rt>おも</rt></ruby>った<ruby>通<rt>とお</rt></ruby>りに<ruby>動<rt>うご</rt></ruby>く<ruby>瞬間<rt>しゅんかん</rt></ruby>の<ruby>達成感<rt>たっせいかん</rt></ruby>をぜひ<ruby>味<rt>あじ</rt></ruby>わってください！</p>
<p>&nbsp;</p>
<p><ruby>下<rt>した</rt></ruby>の<ruby>記事<rt>きじ</rt></ruby>では、エラーの<ruby>原因<rt>げんいん</rt></ruby>を<ruby>見<rt>み</rt></ruby>つけて <ruby>修正<rt>しゅうせい</rt></ruby>する<ruby>力<rt>ちから</rt></ruby>を <ruby>身<rt>み</rt></ruby>につけたい<ruby>人<rt>ひと</rt></ruby>に おすすめの『<a rel="noopener" target="_self" href="https://living-maou.com/scratch-err/">エラーで学ぶScratch まちがいを<ruby>見<rt>み</rt></ruby>つけてプログラミング<ruby>初心者<rt>しょしんしゃ</rt></ruby>から<ruby>抜<rt>ぬ</rt></ruby>け<ruby>出<rt>だ</rt></ruby>そう<span class="fa fa-external-link internal-icon anchor-icon"></span></a>』という<ruby>本<rt>ほん</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>しています。</p>
<p><ruby>興味<rt>きょうみ</rt></ruby>がある<ruby>人<rt>ひと</rt></ruby>はぜひ<ruby>読<rt>よ</rt></ruby>んでみてくださいね。</p>
<div class="blogcard-type bct-together">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-err/" title="【エラーで学ぶScratch】バグを自分で解決！デバッグの基礎を学ぼう" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【エラーで学ぶScratch】バグを自分で解決！デバッグの基礎を学ぼう</div><div class="blogcard-snippet internal-blogcard-snippet">『エラーで学ぶScratch まちがいを見つけてプログラミング初心者から抜け出そう』は、Scratchでよくあるエラーを見つけて修正することで、プログラミング力を高める問題集。Scratch経験のある小学生～プログラミング初心者の大人の方におすすめな一冊です。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3><span id="toc9">用語集</span></h3>
<ul>
<li>バグ　　：プログラムのエラーやまちがい</li>
<li>デバッグ：プログラムのまちがいを<ruby>見<rt>み</rt></ruby>つけて<ruby>修正<rt>しゅうせい</rt></ruby>する<ruby>作業<rt>さぎょう</rt></ruby></li>
<li>ホワイトボックステスト：プログラム（ソースコード）の<ruby>中身<rt>なかみ</rt></ruby>を<ruby>見<rt>み</rt></ruby>てテストする<ruby>方法<rt>ほうほう</rt></ruby></li>
<li>ブラックボックステスト：プログラムの<ruby>中身<rt>なかみ</rt></ruby>を<ruby>見<rt>み</rt></ruby>ずに、<ruby>入力<rt>にゅうりょく</rt></ruby>と<ruby>出力<rt>しゅつりょく</rt></ruby>だけ<ruby>見<rt>み</rt></ruby>てテストする<ruby>方法<rt>ほうほう</rt></ruby></li>
<li>テスト項目　：プログラムの<ruby>何<rt>なに</rt></ruby>をチェックするかのリスト</li>
<li>テストケース：<ruby>具体的<rt>ぐたいてき</rt></ruby>なテストのやり<ruby>方<rt>かた</rt></ruby>や<ruby>手順<rt>てじゅん</rt></ruby></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/scratch-test/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【スクラッチ(Scratch)】デジタル時計をプログラミングしよう！</title>
		<link>https://living-maou.com/scratch-digital-clock/</link>
					<comments>https://living-maou.com/scratch-digital-clock/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Mon, 19 Aug 2024 23:41:41 +0000</pubDate>
				<category><![CDATA[Scratch]]></category>
		<category><![CDATA[作品例]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6879</guid>

					<description><![CDATA[今回こんかいはスクラッチ (Scratch) を使つかった「デジタル時計とけい」の作つくり方かたを紹介しょうかいします。 デジタル時計とけいとは、数字すうじを使つかって 現在げんざいの時間じかんを表示ひょうじする 時計と [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6880" src="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock.jpg 800w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>今回<rt>こんかい</rt></ruby>はスクラッチ (Scratch) を<ruby>使<rt>つか</rt></ruby>った「<b>デジタル<ruby>時計<rt>とけい</rt></ruby></b>」の<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>デジタル<ruby>時計<rt>とけい</rt></ruby>とは、<ruby>数字<rt>すうじ</rt></ruby>を<ruby>使<rt>つか</rt></ruby>って <ruby>現在<rt>げんざい</rt></ruby>の<ruby>時間<rt>じかん</rt></ruby>を<ruby>表示<rt>ひょうじ</rt></ruby>する <ruby>時計<rt>とけい</rt></ruby>のことです。</p>
<p><ruby>今回<rt>こんかい</rt></ruby>のプロジェクトでは、<ruby>時<rt>とき</rt></ruby>と<ruby>分<rt>ぶん</rt></ruby>を それぞれの<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>と<ruby>一<rt>いち</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>に<ruby>分<rt>わ</rt></ruby>けて <ruby>表示<rt>ひょうじ</rt></ruby>し、<ruby>秒<rt>びょう</rt></ruby>はニワトリが<ruby>歩<rt>ある</rt></ruby>くアニメーションで <ruby>表現<rt>ひょうげん</rt></ruby>します。</p>
<p>プログラミングを<ruby>通<rt>つう</rt></ruby>じて、<b>わり<ruby>算<rt>ざん</rt></ruby>（<ruby>商<rt>しょう</rt></ruby>とあまり）</b>や、<b>がい<ruby>算<rt>さん</rt></ruby>（<ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>て）</b>の<ruby>勉強<rt>べんきょう</rt></ruby>にもなりますよ。</p>
<p><ruby>図<rt>ず</rt></ruby>やコード<ruby>例<rt>れい</rt></ruby>を<ruby>交<rt>まじ</rt></ruby>えながら、わかりやすく<ruby>解説<rt>かいせつ</rt></ruby>していきますので、プログラミング<ruby>初心者<rt>しょしんしゃ</rt></ruby>さんでも<ruby>安心<rt>あんしん</rt></ruby>して<ruby>取<rt>と</rt></ruby>り<ruby>組<rt>く</rt></ruby>めます。</p>
<p>ぜひ、プログラミングに<ruby>挑戦<rt>ちょうせん</rt></ruby>して、オリジナルのデジタル<ruby>時計<rt>とけい</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ってみてください！</p>
<p>&nbsp;</p>
<p>Scratchはインターネットにつながるパソコンから<ruby>無料<rt>むりょう</rt></ruby>で<ruby>利用<rt>りよう</rt></ruby>できます。</p>
<p>Scratch<ruby>公式<rt>こうしき</rt></ruby>サイト：<a rel="noopener" target="_blank" href="https://scratch.mit.edu/">https://scratch.mit.edu/<span class="fa fa-external-link external-icon anchor-icon"></span></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">Scratchのアカウントの<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby>と<ruby>基本的<rt>きほんてき</rt></ruby>な<ruby>使<rt>つか</rt></ruby>い<ruby>方<rt>かた</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、<ruby>下<rt>した</rt></ruby>の<ruby>記事<rt>きじ</rt></ruby>で<ruby>紹介<rt>しょうかい</rt></ruby>しています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/" title="Scratch（スクラッチ）の使い方・始め方｜小学生向けプログラミング入門" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">Scratch（スクラッチ）の使い方・始め方｜小学生向けプログラミング入門</div><div class="blogcard-snippet internal-blogcard-snippet">子供向けプログラミング言語Scratch（スクラッチ）。プログラミング教育の教材として多くの小学校で使われています。【リビングの魔王】では、おうちでもスクラッチを使いたい方のために、アカウントの作成方法と基本的な使い方を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<h2><span id="toc1">デジタル時計の読み方をおさらい</span></h2>
<p><b>アナログ<ruby>時計<rt>とけい</rt></ruby></b>は、<ruby>丸<rt>まる</rt></ruby>い<ruby>文字盤<rt>もじばん</rt></ruby>と<ruby>針<rt>はり</rt></ruby>を<ruby>使<rt>つか</rt></ruby>って<ruby>時間<rt>じかん</rt></ruby>を<ruby>示<rt>しめ</rt></ruby>しますが、<b>デジタル<ruby>時計<rt>とけい</rt></ruby></b>は<ruby>数字<rt>すうじ</rt></ruby>だけで<ruby>時間<rt>じかん</rt></ruby>を<ruby>表示<rt>ひょうじ</rt></ruby>します。</p>
<p>24<ruby>時間<rt>じかん</rt></ruby><ruby>表示<rt>ひょうじ</rt></ruby>のデジタル<ruby>時計<rt>とけい</rt></ruby>の<ruby>場合<rt>ばあい</rt></ruby>、<ruby>午前<rt>ごぜん</rt></ruby>8<ruby>時<rt>じ</rt></ruby>15<ruby>分<rt>ふん</rt></ruby>は「08:15」と<ruby>表示<rt>ひょうじ</rt></ruby>され、<ruby>午後<rt>ごご</rt></ruby>1<ruby>時<rt>じ</rt></ruby>45<ruby>分<rt>ふん</rt></ruby>は「13:45」と<ruby>表示<rt>ひょうじ</rt></ruby>されます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6881" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01.png" alt="デジタル時計の読み方" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>今回<rt>こんかい</rt></ruby>は、<ruby>時<rt>じ</rt></ruby>の<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>、<ruby>一<rt>いち</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>、<ruby>分<rt>ふん</rt></ruby>の<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>、<ruby>一<rt>いち</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>のスプライトを<ruby>準備<rt>じゅんび</rt></ruby>し、それぞれのコスチュームを<ruby>使<rt>つか</rt></ruby>ってデジタル<ruby>時計<rt>とけい</rt></ruby>を<ruby>表示<rt>ひょうじ</rt></ruby>するプログラムを<ruby>作成<rt>さくせい</rt></ruby>します。</p>
<p>また、<ruby>秒<rt>びょう</rt></ruby>の<ruby>変<rt>か</rt></ruby>わった<ruby>表示<rt>ひょうじ</rt></ruby><ruby>方法<rt>ほうほう</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>&nbsp;</p>
<h2><span id="toc2">完成プログラム</span></h2>
<p><ruby>完成<rt>かんせい</rt></ruby>した<ruby>作品<rt>さくひん</rt></ruby>です。ハタをおして<ruby>動<rt>うご</rt></ruby>かしてみてください。</p>
<p><iframe loading="lazy" width="485" height="402" src="https://scratch.mit.edu/projects/1045611047/embed" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></p>
<p>&nbsp;</p>
<p><ruby>完成<rt>かんせい</rt></ruby>したコードは<ruby>下<rt>した</rt></ruby>の<ruby>通<rt>とお</rt></ruby>りです。</p>
<p><ruby>時<rt>じ</rt></ruby>の<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>と <ruby>一<rt>いち</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>、 <ruby>分<rt>ふん</rt></ruby>の<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>と <ruby>一<rt>いち</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>の スプライトを<ruby>準備<rt>じゅんび</rt></ruby>し、それぞれ<ruby>現在<rt>げんざい</rt></ruby>の<ruby>時間<rt>じかん</rt></ruby>にあった <ruby>数字<rt>すうじ</rt></ruby>のコスチュームを <ruby>表示<rt>ひょうじ</rt></ruby>します。</p>
<h3><span id="toc3">時の十の位のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6882" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02.png" alt="時の十の位のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc4">時の一の位のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6883" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03.png" alt="時の一の位のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc5">分のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6884" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04.png" alt="分のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc6">秒のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6885" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05.png" alt="秒のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="ad-area no-icon ad-shortcode ad-rectangle ad-label-visible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-9126458450711382"
  data-ad-slot="2965068638"
  data-ad-format="rectangle"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc7">プログラミングの手順</span></h2>
<h3><span id="toc8">時の十の位</span></h3>
<h4>コスチューム</h4>
<p><ruby>時<rt>じ</rt></ruby>の<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>のスプライトを<ruby>作成<rt>さくせい</rt></ruby>し、0から9のコスチュームを<ruby>作<rt>つく</rt></ruby>ります。</p>
<p>1.スプライトを<ruby>作<rt>つく</rt></ruby>る</p>
<p>「スプライトを<ruby>選<rt>えら</rt></ruby>ぶ」→「<ruby>描<rt>えが</rt></ruby>く」を<ruby>選<rt>えら</rt></ruby>びます。</p>
<p>ネコのスプライトは<ruby>消<rt>け</rt></ruby>してOKです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6855" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06.png" alt="スプライトを作る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.<ruby>数字<rt>すうじ</rt></ruby>をかく</p>
<p><ruby>筆<rt>ふで</rt></ruby>ツールを<ruby>使<rt>つか</rt></ruby>って0を<ruby>描<rt>えが</rt></ruby>きます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6886" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06.png" alt="筆ツールを使って0を描く" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ペイントエディターのくわしい<ruby>使<rt>つか</rt></ruby>い<ruby>方<rt>かた</rt></ruby>は「<a rel="noopener" target="_self" href="https://living-maou.com/scratch-paint-vector/">【スクラッチ（Scratch）】<ruby>絵<rt>え</rt></ruby>を<ruby>描<rt>か</rt></ruby>いてスプライトや<ruby>背景<rt>はいけい</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ろう（ベクター<ruby>編<rt>へん</rt></ruby>）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」で<ruby>解説<rt>かいせつ</rt></ruby>しています。</p>
<p>&nbsp;</p>
<p>コスチュームを<ruby>右<rt>みぎ</rt></ruby>クリック →「<ruby>複製<rt>ふくせい</rt></ruby>」でコスチュームをコピーし、1から9のコスチュームを<ruby>作<rt>つく</rt></ruby>ります。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-6887 size-full" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07.png" alt="コスチュームをコピーする" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>コスチュームのならびは、<ruby>小<rt>ちい</rt></ruby>さい<ruby>順<rt>じゅん</rt></ruby>(0、1、2、3 … 7、8、9)になるようにしてください。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6888" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08.png" alt="1から9のコスチュームを作る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>3.スプライトの<ruby>名前<rt>なまえ</rt></ruby>を<ruby>変更<rt>へんこう</rt></ruby></p>
<p>スプライトの<ruby>名前<rt>なまえ</rt></ruby>を「<ruby>時<rt>じ</rt></ruby>の<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>」に<ruby>変<rt>か</rt></ruby>えましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6889" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09.png" alt="スプライトの名前を「時の十の位」に変える" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>1.イベントカテゴリから<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>す。</p>
<p>2.<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックを<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の<ruby>下<rt>した</rt></ruby>に<ruby>出<rt>だ</rt></ruby>す。</p>
<p>3.<ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>カテゴリから<span style="color: #9966ff;"><b>「コスチュームを( )にする」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックの<ruby>中<rt>なか</rt></ruby>に<ruby>入<rt>い</rt></ruby>れる。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-6890 size-full" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10.png" alt="Scratch ブロック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>4.<ruby>時<rt>じ</rt></ruby>の<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>がいくつになるか<ruby>計算<rt>けいさん</rt></ruby></p>
<p><ruby>現在<rt>げんざい</rt></ruby>の<ruby>時間<rt>じかん</rt></ruby>から<ruby>時<rt>じ</rt></ruby>の<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>の<ruby>数字<rt>すうじ</rt></ruby>を<ruby>取<rt>と</rt></ruby>り<ruby>出<rt>だ</rt></ruby>しましょう。</p>
<p><ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>は、その<ruby>数字<rt>すうじ</rt></ruby>が<ruby>何個<rt>なんこ</rt></ruby>の10を<ruby>持<rt>も</rt></ruby>っているか<ruby>表<rt>あらわ</rt></ruby>しています。</p>
<p>なので、<span class="marker-under-red"><ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>じ</rt></ruby>を10で<ruby>割<rt>わ</rt></ruby>ると<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>の<ruby>数字<rt>すうじ</rt></ruby>だけ<ruby>取<rt>と</rt></ruby>り<ruby>出<rt>だ</rt></ruby>せます</span>。<ruby>小数点<rt>しょうすうてん</rt></ruby><ruby>以下<rt>いか</rt></ruby>は<ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>てて<ruby>無視<rt>むし</rt></ruby>しましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6891" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11.png" alt="十の位の数字を取り出す" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>たとえば、</p>
<ul>
<li><ruby>午前<rt>ごぜん</rt></ruby>8<ruby>時<rt>じ</rt></ruby>： 8÷10 = 0.8 → <ruby>小数点<rt>しょうすうてん</rt></ruby><ruby>以下<rt>いか</rt></ruby><ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>て → <span style="color: #ff6600;">0</span></li>
<li><ruby>午後<rt>ごご</rt></ruby>1<ruby>時<rt>じ</rt></ruby>：13÷10 = 1.3 → <ruby>小数点<rt>しょうすうてん</rt></ruby><ruby>以下<rt>いか</rt></ruby><ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>て → <span style="color: #ff6600;">1</span></li>
</ul>
<p>となります。</p>
<p><ruby>演算<rt>えんざん</rt></ruby>カテゴリの<span style="color: #40bf4a;"><b>「( )/( )」</b></span>を<ruby>出<rt>だ</rt></ruby>して、<ruby>左側<rt>ひだりがわ</rt></ruby>に<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>じ</rt></ruby>」</b></span>ブロックを<ruby>入<rt>い</rt></ruby>れ、<ruby>右側<rt>みぎがわ</rt></ruby>に10を<ruby>入力<rt>にゅうりょく</rt></ruby>します。</p>
<p><ruby>現在<rt>げんざい</rt></ruby>の<ruby>時間<rt>じかん</rt></ruby>の<ruby>時<rt>じ</rt></ruby>は、<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>じ</rt></ruby>」</b></span>ブロックで<ruby>得<rt>え</rt></ruby>られます。</p>
<p><ruby>調<rt>しら</rt></ruby>べるカテゴリにある<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の<ruby>年<rt>ねん</rt></ruby>」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>し、<ruby>年<rt>ねん</rt></ruby>の<ruby>部分<rt>ぶぶん</rt></ruby>をクリックして、<ruby>時<rt>じ</rt></ruby>に<ruby>変<rt>か</rt></ruby>えましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6892" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12.png" alt="現在の時ブロック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>小数点<rt>しょうすうてん</rt></ruby><ruby>以下<rt>いか</rt></ruby>を<ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>てるため、<ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「( )の<ruby>絶対値<rt>ぜったいち</rt></ruby>」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>し、<ruby>絶対値<rt>ぜったいち</rt></ruby>の<ruby>部分<rt>ぶぶん</rt></ruby>をクリックして「<ruby>切<rt>き</rt></ruby>り<ruby>下<rt>さ</rt></ruby>げ」に<ruby>変<rt>か</rt></ruby>えます。</p>
<p><ruby>中<rt>なか</rt></ruby>に<span style="color: #40bf4a;"><b>「<span style="color: #4cbfe6;"> <ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>じ</rt></ruby></span> / 10 」</b></span>を<ruby>入<rt>い</rt></ruby>れましょう。</p>
<p><ruby>切<rt>き</rt></ruby>り<ruby>下<rt>さ</rt></ruby>げは、<ruby>指定<rt>してい</rt></ruby>した<ruby>数<rt>かず</rt></ruby>の<ruby>小数点<rt>しょうすうてん</rt></ruby><ruby>以下<rt>いか</rt></ruby>を<ruby>切<rt>き</rt></ruby>り<ruby>下<rt>さ</rt></ruby>げて<ruby>整数<rt>せいすう</rt></ruby>にする<ruby>命令<rt>めいれい</rt></ruby>です。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6893" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13.png" alt="小数点以下を切り捨てる" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>5.<ruby>表示<rt>ひょうじ</rt></ruby>するコスチュームの<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby></p>
<p><span style="color: #9966ff;"><b>「コスチュームを()にする」</b></span>ブロックは、()で<ruby>指定<rt>してい</rt></ruby>した<ruby>値<rt>あたい</rt></ruby>と <ruby>同<rt>おな</rt></ruby>じコスチューム<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>の コスチュームが<ruby>表示<rt>ひょうじ</rt></ruby>されます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6894" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14.png" alt="「コスチュームを()にする」ブロック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>このスプライトの<ruby>場合<rt>ばあい</rt></ruby>だと、</p>
<ul>
<li>「コスチュームを(1)にする」なら「0」</li>
<li>「コスチュームを(2)にする」なら「1」</li>
</ul>
<p>と1つズレてしまうため<span style="color: #40bf4a;"><b>「<span style="color: #4cbfe6;"> <ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>じ</rt></ruby></span> / 10 の<ruby>切<rt>き</rt></ruby>り<ruby>下<rt>さ</rt></ruby>げ」</b></span>で<ruby>求<rt>もと</rt></ruby>めた<ruby>値<rt>あたい</rt></ruby>に 1<ruby>足<rt>た</rt></ruby>した<ruby>値<rt>あたい</rt></ruby>をコスチューム<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>に<ruby>指定<rt>してい</rt></ruby>しましょう。</p>
<p><ruby>演算<rt>えんざん</rt></ruby>カテゴリの<span style="color: #40bf4a;"><b>「( )+( )」</b></span>を<ruby>出<rt>だ</rt></ruby>して、<ruby>左側<rt>ひだりがわ</rt></ruby>に<span style="color: #40bf4a;"><b>「<span style="color: #4cbfe6;"> <ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>じ</rt></ruby></span> / 10 の<ruby>切<rt>き</rt></ruby>り<ruby>下<rt>さ</rt></ruby>げ」</b></span>ブロックを<ruby>入<rt>い</rt></ruby>れ、<ruby>右側<rt>みぎがわ</rt></ruby>に1を<ruby>入力<rt>にゅうりょく</rt></ruby>します。これを<span style="color: #9966ff;"><b>「コスチュームを()にする」</b></span>ブロックの<ruby>中<rt>なか</rt></ruby>に<ruby>入<rt>い</rt></ruby>れましょう。</p>
<p>&nbsp;</p>
<h3><span id="toc9">時の一の位</span></h3>
<p><ruby>時<rt>じ</rt></ruby>の<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>のスプライトをコピーして<ruby>作<rt>つく</rt></ruby>ります。</p>
<h4>コスチューム</h4>
<p>1.<ruby>時<rt>じ</rt></ruby>の<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>のスプライトを <ruby>右<rt>みぎ</rt></ruby>クリックして「<ruby>複製<rt>ふくせい</rt></ruby>」を <ruby>選<rt>えら</rt></ruby>ぶ。</p>
<p>2.スプライト<ruby>名<rt>めい</rt></ruby>を「<ruby>時<rt>じ</rt></ruby>の<ruby>一<rt>いち</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>」に<ruby>変更<rt>へんこう</rt></ruby>する。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6901" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20.png" alt="スプライトをコピー" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4>コード</h4>
<p><ruby>現在<rt>げんざい</rt></ruby>の<ruby>時間<rt>じかん</rt></ruby>から <ruby>時<rt>じ</rt></ruby>の<ruby>一<rt>いち</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>の<ruby>数字<rt>すうじ</rt></ruby>を <ruby>取<rt>と</rt></ruby>り<ruby>出<rt>だ</rt></ruby>す<ruby>方法<rt>ほうほう</rt></ruby>を <ruby>考<rt>かんが</rt></ruby>えましょう。</p>
<p><ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>じ</rt></ruby>を 10で<ruby>割<rt>わ</rt></ruby>った<ruby>商<rt>しょう</rt></ruby>（<ruby>小数点<rt>しょうすうてん</rt></ruby><ruby>以下<rt>いか</rt></ruby><ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>て）が <ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>になりました。</p>
<p>このとき、<ruby>割<rt>わ</rt></ruby>り<ruby>切<rt>き</rt></ruby>れなかった<ruby>部分<rt>ぶぶん</rt></ruby>……つまり<span class="marker-under-red">「あまり」が<ruby>一<rt>いち</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>になります</span>。</p>
<p>たとえば、</p>
<ul>
<li><ruby>午前<rt>ごぜん</rt></ruby>8<ruby>時<rt>じ</rt></ruby>：  8÷10 = 0 あまり <span style="color: #ff6600;">8</span></li>
<li><ruby>午後<rt>ごご</rt></ruby>1<ruby>時<rt>じ</rt></ruby>： 13÷10 = 1 あまり <span style="color: #ff6600;">3</span></li>
</ul>
<p>となります。</p>
<p>&nbsp;</p>
<p><span style="color: #9966ff;"><b>「コスチュームを( )にする」</b></span>ブロックの<ruby>中<rt>なか</rt></ruby>を<ruby>変更<rt>へんこう</rt></ruby>します。</p>
<p><ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「( )を( )で<ruby>割<rt>わ</rt></ruby>った<ruby>余<rt>あま</rt></ruby>り」</b></span>を<ruby>出<rt>だ</rt></ruby>して、<ruby>左側<rt>ひだりがわ</rt></ruby>に<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>じ</rt></ruby>」</b></span>ブロックを<ruby>入<rt>い</rt></ruby>れ、<ruby>右側<rt>みぎがわ</rt></ruby>に10を<ruby>入力<rt>にゅうりょく</rt></ruby>しましょう。</p>
<p>コスチュームの<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>は1つズレるので、<span style="color: #40bf4a;"><b>「( <span style="color: #4cbfe6;"><ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>じ</rt></ruby></span> を 10 で<ruby>割<rt>わ</rt></ruby>った<ruby>余<rt>あま</rt></ruby>り )+(1)」</b></span>にします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-6902 size-full" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21.png" alt="時の一の位がいくつになるか計算" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h3><span id="toc10">分の十の位と一の位</span></h3>
<p><ruby>分<rt>ふん</rt></ruby>の<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>と<ruby>一<rt>いち</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>は、<ruby>時<rt>とき</rt></ruby>の<ruby>十<rt>じゅう</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>と<ruby>一<rt>いち</rt></ruby>の<ruby>位<rt>くらい</rt></ruby>とほぼ<ruby>同<rt>おな</rt></ruby>じです。</p>
<p>スプライトをコピーし、<ruby>必要<rt>ひつよう</rt></ruby>な<ruby>変更<rt>へんこう</rt></ruby>を<ruby>加<rt>くわ</rt></ruby>えましょう。</p>
<p><ruby>何<rt>なに</rt></ruby>を<ruby>変<rt>か</rt></ruby>えたらよいか、<ruby>自分<rt>じぶん</rt></ruby>で<ruby>考<rt>かんが</rt></ruby>えてみてくださいね！</p>
<p>&nbsp;</p>
<h3><span id="toc11">スプライトを配置する</span></h3>
<p>4つのスプライトをステージに<ruby>配置<rt>はいち</rt></ruby>します。</p>
<p><ruby>時<rt>じ</rt></ruby>と<ruby>分<rt>ふん</rt></ruby>の<ruby>真<rt>ま</rt></ruby>ん<ruby>中<rt>なか</rt></ruby>にある「：」のスプライトも<ruby>作<rt>つく</rt></ruby>って<ruby>配置<rt>はいち</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h3><span id="toc12">ちょっと変わった表現を紹介！</span></h3>
<p><ruby>時<rt>じ</rt></ruby>や<ruby>分<rt>ふん</rt></ruby>と <ruby>同<rt>おな</rt></ruby>じやり<ruby>方<rt>かた</rt></ruby>で <ruby>秒<rt>びょう</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ってもよいのですが、<ruby>今回<rt>こんかい</rt></ruby>はちょっと<ruby>変<rt>か</rt></ruby>わったやり<ruby>方<rt>かた</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>ニワトリが0<ruby>秒<rt>びょう</rt></ruby>のとき <ruby>左<rt>ひだり</rt></ruby>はしから<ruby>歩<rt>ある</rt></ruby>き<ruby>始<rt>はじ</rt></ruby>めて、60<ruby>秒<rt>びょう</rt></ruby><ruby>後<rt>ご</rt></ruby>に <ruby>右<rt>みぎ</rt></ruby>はしに<ruby>到着<rt>とうちゃく</rt></ruby>する プログラムを<ruby>作成<rt>さくせい</rt></ruby>します。</p>
<p><iframe loading="lazy" width="485" height="402" src="https://scratch.mit.edu/projects/1050530918/embed" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></p>
<h4>コスチューム</h4>
<p>スプライトを<ruby>準備<rt>じゅんび</rt></ruby>します。</p>
<p>「スプライトを<ruby>選<rt>えら</rt></ruby>ぶ」→「スプライトを<ruby>選<rt>えら</rt></ruby>ぶ」から、ニワトリ(Hen)のスプライトを<ruby>選択<rt>せんたく</rt></ruby>します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6895" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15.png" alt="ニワトリ(Hen)のスプライトを選択" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>コスチュームの3つめと4つめは<ruby>使<rt>つか</rt></ruby>わないので<ruby>消<rt>け</rt></ruby>しましょう。</p>
<p>スプライトの<ruby>大<rt>おお</rt></ruby>きさを<ruby>調整<rt>ちょうせい</rt></ruby>し、ステージの<ruby>好<rt>す</rt></ruby>きな<ruby>場所<rt>ばしょ</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6896" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16.png" alt="使わないコスチュームを消し、ステージに配置する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>1.イベントカテゴリから<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>す</p>
<p>2.<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリの<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックを<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の<ruby>下<rt>した</rt></ruby>に<ruby>入<rt>い</rt></ruby>れる</p>
<p>3.<ruby>動<rt>うご</rt></ruby>きカテゴリから<span style="color: #4c97ff;"><b>「X<ruby>座標<rt>ざひょう</rt></ruby>を ( ) にする」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>す</p>
<p>&nbsp;</p>
<p><ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>に<ruby>応<rt>おう</rt></ruby>じてニワトリの<ruby>位置<rt>いち</rt></ruby>を<ruby>計算<rt>けいさん</rt></ruby>し、X<ruby>座標<rt>ざひょう</rt></ruby>を<ruby>設定<rt>せってい</rt></ruby>します。</p>
<div class="blank-box bb-blue"><span style="color: #ff6600;"><b>X<ruby>座標<rt>ざひょう</rt></ruby></b></span>とは、<ruby>画面<rt>がめん</rt></ruby>の<ruby>横<rt>よこ</rt></ruby>の<ruby>位置<rt>いち</rt></ruby>を<ruby>表<rt>あらわ</rt></ruby>す<ruby>数字<rt>すうじ</rt></ruby>です。<ruby>画面<rt>がめん</rt></ruby>の<ruby>真<rt>ま</rt></ruby>ん<ruby>中<rt>なか</rt></ruby>を「0」として、<ruby>左側<rt>ひだりがわ</rt></ruby>に<ruby>行<rt>い</rt></ruby>くほど<ruby>数字<rt>すうじ</rt></ruby>がマイナスになり、<ruby>右側<rt>みぎがわ</rt></ruby>に<ruby>行<rt>い</rt></ruby>くほど<ruby>数字<rt>すうじ</rt></ruby>がプラスになります。</div>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6897" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17.png" alt="ニワトリの位置を計算" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>X<ruby>座標<rt>ざひょう</rt></ruby> -180 から 180 まで<ruby>移動<rt>いどう</rt></ruby>する<ruby>場合<rt>ばあい</rt></ruby>、<ruby>距離<rt>きょり</rt></ruby>は360です。</p>
<p>1<ruby>分<rt>ふん</rt></ruby>（60<ruby>秒<rt>びょう</rt></ruby>）かけて360<ruby>進<rt>すす</rt></ruby>みたいので、360 ÷ 60 で<ruby>毎秒<rt>まいびょう</rt></ruby>6ずつ<ruby>移動<rt>いどう</rt></ruby>する<ruby>必要<rt>ひつよう</rt></ruby>があります。</p>
<p>なので、<b><ruby>出発<rt>しゅっぱつ</rt></ruby><ruby>地点<rt>ちてん</rt></ruby>のX<ruby>座標<rt>ざひょう</rt></ruby>-180 に <ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby> * 6 を<ruby>足<rt>た</rt></ruby>す</b>と、ニワトリの<ruby>位置<rt>いち</rt></ruby>が<ruby>求<rt>もと</rt></ruby>められます。</p>
<p><span style="color: #40bf4a;"><b>「( -180 ) + ( <span style="color: #4cbfe6;"><ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby></span> * 6 ) にする」</b></span>を<ruby>作<rt>つく</rt></ruby>り、<span style="color: #4c97ff;"><b>「X<ruby>座標<rt>ざひょう</rt></ruby>を ( ) にする」</b></span>ブロックに<ruby>入<rt>い</rt></ruby>れましょう。</p>
<p>&nbsp;</p>
<p>4.ニワトリに<ruby>動<rt>うご</rt></ruby>きをつける</p>
<p>このままだと <ruby>歩<rt>ある</rt></ruby>いている<ruby>感<rt>かん</rt></ruby>じが<ruby>出<rt>で</rt></ruby>ないので、ニワトリに<ruby>動<rt>うご</rt></ruby>きをつけましょう。</p>
<p>コスチューム1と2を <ruby>交互<rt>こうご</rt></ruby>に<ruby>表示<rt>ひょうじ</rt></ruby>させて、ニワトリが<ruby>歩<rt>ある</rt></ruby>いているように<ruby>見<rt>み</rt></ruby>せます。</p>
<p><ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>カテゴリから<span style="color: #9966ff;"><b>「<ruby>次<rt>つぎ</rt></ruby>のコスチューム」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックの<ruby>中<rt>なか</rt></ruby>に<ruby>入<rt>い</rt></ruby>れましょう。</p>
<p>ただ、このままだと<ruby>超高速<rt>ちょうこうそく</rt></ruby>で ニワトリのコスチュームが<ruby>変<rt>か</rt></ruby>わってしまうので、<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリの<span style="color: #ffab19;"><b>「( )<ruby>秒<rt>びょう</rt></ruby><ruby>待<rt>ま</rt></ruby>つ」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>し、0.5と<ruby>入力<rt>にゅうりょく</rt></ruby>します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6898" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18.png" alt="Scratch ブロック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>秒数<rt>びょうすう</rt></ruby>を<ruby>変<rt>か</rt></ruby>えるとニワトリの<ruby>動<rt>うご</rt></ruby>きが<ruby>早<rt>はや</rt></ruby>くなったり、おそくなったりします。</p>
<p>いろいろ<ruby>試<rt>ため</rt></ruby>してみましょう！</p>
<p>&nbsp;</p>
<h2><span id="toc13">作品の完成</span></h2>
<p>デジタル<ruby>時計<rt>とけい</rt></ruby>が<ruby>完成<rt>かんせい</rt></ruby>しました。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6899" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19.png" alt="デジタル時計" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<ul>
<li><ruby>文字<rt>もじ</rt></ruby>のデザインを<ruby>変<rt>か</rt></ruby>える</li>
<li><ruby>音<rt>おと</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>する</li>
<li>12<ruby>時間<rt>じかん</rt></ruby><ruby>表示<rt>ひょうじ</rt></ruby>にしてみる</li>
<li><ruby>時間帯<rt>じかんたい</rt></ruby>で<ruby>背景<rt>はいけい</rt></ruby>が<ruby>変<rt>か</rt></ruby>わる</li>
</ul>
<p>など、<ruby>好<rt>す</rt></ruby>きなようにアレンジして、<ruby>自分<rt>じぶん</rt></ruby>だけの オリジナル<ruby>時計<rt>とけい</rt></ruby>を <ruby>作<rt>つく</rt></ruby>ってみてくださいね！</p>
<p>&nbsp;</p>
<h2><span id="toc14">まとめ</span></h2>
<p>この<ruby>記事<rt>きじ</rt></ruby>では、Scratchを<ruby>使<rt>つか</rt></ruby>った「デジタル<ruby>時計<rt>とけい</rt></ruby>」の<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>しました。</p>
<p><ruby>自分<rt>じぶん</rt></ruby>だけのオリジナル<ruby>時計<rt>とけい</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ることができたでしょうか？</p>
<p><ruby>当<rt>とう</rt></ruby>ブログでは、<a rel="noopener" target="_self" href="https://living-maou.com/scratch-analog-clock/">アナログ<ruby>時計<rt>とけい</rt></ruby>の<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a>も<ruby>紹介<rt>しょうかい</rt></ruby>しています。ぜひチャレンジしてみてくださいね！</p>
<div class="blogcard-type bct-prev">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-analog-clock/" title="【スクラッチ(Scratch)】アナログ時計をプログラミングしよう！時計算の基礎も学べる" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【スクラッチ(Scratch)】アナログ時計をプログラミングしよう！時計算の基礎も学べる</div><div class="blogcard-snippet internal-blogcard-snippet">スクラッチ(Scratch)を使った「アナログ時計」の作り方を紹介。針の動きをプログラミングして自分だけの時計を作ってみましょう！【リビングの魔王】ではコード例を交えながら分かりやすく解説します。「時計算」の基本的な考え方も学べますよ。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/scratch-digital-clock/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【スクラッチ(Scratch)】アナログ時計をプログラミングしよう！時計算の基礎も学べる</title>
		<link>https://living-maou.com/scratch-analog-clock/</link>
					<comments>https://living-maou.com/scratch-analog-clock/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Mon, 05 Aug 2024 00:36:08 +0000</pubDate>
				<category><![CDATA[Scratch]]></category>
		<category><![CDATA[作品例]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6848</guid>

					<description><![CDATA[上のアイキャッチ画像はAIによって生成されました。 今回こんかいは、スクラッチ(Scratch)を使つかった「アナログ時計とけい」の作つくり方かたを紹介しょうかいします。 秒針びょうしん、短針たんしん、長針ちょうしんの動 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6849" src="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock.jpg 800w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p style="text-align: right;"><span class="fz-14px">上のアイキャッチ画像はAIによって生成されました。</span></p>
<p><ruby>今回<rt>こんかい</rt></ruby>は、スクラッチ(Scratch)を<ruby>使<rt>つか</rt></ruby>った「<b>アナログ<ruby>時計<rt>とけい</rt></ruby></b>」の<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p><ruby>秒針<rt>びょうしん</rt></ruby>、<ruby>短針<rt>たんしん</rt></ruby>、<ruby>長針<rt>ちょうしん</rt></ruby>の<ruby>動<rt>うご</rt></ruby>きをプログラミングして、<ruby>自分<rt>じぶん</rt></ruby>だけのオリジナル<ruby>時計<rt>とけい</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ってみましょう！</p>
<p>プログラミングを<ruby>通<rt>つう</rt></ruby>じて <ruby>時間<rt>じかん</rt></ruby>の<ruby>考<rt>かんが</rt></ruby>え<ruby>方<rt>かた</rt></ruby>をより<ruby>深<rt>ふか</rt></ruby>く<ruby>理解<rt>りかい</rt></ruby>し、<ruby>算数<rt>さんすう</rt></ruby>でつまづきがちな「<b><ruby>時計<rt>とけい</rt></ruby><ruby>算<rt>ざん</rt></ruby></b>」の<ruby>基本的<rt>きほんてき</rt></ruby>な<ruby>考<rt>かんが</rt></ruby>え<ruby>方<rt>かた</rt></ruby>を<ruby>学<rt>まな</rt></ruby>べます。</p>
<p><ruby>図<rt>ず</rt></ruby>やコード<ruby>例<rt>れい</rt></ruby>を<ruby>交<rt>まじ</rt></ruby>えながら、わかりやすく<ruby>解説<rt>かいせつ</rt></ruby>していきますので、プログラミング<ruby>初心者<rt>しょしんしゃ</rt></ruby>でも<ruby>安心<rt>あんしん</rt></ruby>して<ruby>取<rt>と</rt></ruby>り<ruby>組<rt>く</rt></ruby>めますよ。</p>
<p>ぜひ、<ruby>親子<rt>おやこ</rt></ruby>で<ruby>一緒<rt>いっしょ</rt></ruby>に<ruby>挑戦<rt>ちょうせん</rt></ruby>して、プログラミングの<ruby>楽<rt>たの</rt></ruby>しさを<ruby>体験<rt>たいけん</rt></ruby>してみてください！</p>
<p>&nbsp;</p>
<p>Scratchはインターネットにつながるパソコンから<ruby>無料<rt>むりょう</rt></ruby>で<ruby>利用<rt>りよう</rt></ruby>できます。</p>
<p>Scratch<ruby>公式<rt>こうしき</rt></ruby>サイト: <a rel="noopener" target="_blank" href="https://scratch.mit.edu/">https://scratch.mit.edu/<span class="fa fa-external-link external-icon anchor-icon"></span></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">Scratchのアカウントの<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby>と<ruby>基本的<rt>きほんてき</rt></ruby>な<ruby>使<rt>つか</rt></ruby>い<ruby>方<rt>かた</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、<ruby>下<rt>した</rt></ruby>の<ruby>記事<rt>きじ</rt></ruby>で<ruby>紹介<rt>しょうかい</rt></ruby>しています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/" title="Scratch（スクラッチ）の使い方・始め方｜小学生向けプログラミング入門" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">Scratch（スクラッチ）の使い方・始め方｜小学生向けプログラミング入門</div><div class="blogcard-snippet internal-blogcard-snippet">子供向けプログラミング言語Scratch（スクラッチ）。プログラミング教育の教材として多くの小学校で使われています。【リビングの魔王】では、おうちでもスクラッチを使いたい方のために、アカウントの作成方法と基本的な使い方を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2><span id="toc1">アナログ時計の読み方をおさらい</span></h2>
<p>「<b>アナログ<ruby>時計<rt>とけい</rt></ruby></b>」は、3<ruby>本<rt>ぼん</rt></ruby>の<ruby>針<rt>はり</rt></ruby>で<ruby>時間<rt>じかん</rt></ruby>を<ruby>教<rt>おし</rt></ruby>えてくれる<ruby>時計<rt>とけい</rt></ruby>です。</p>
<div class="blank-box bb-blue">
<ul>
<li><ruby>秒針<rt>びょうしん</rt></ruby>：<ruby>何秒<rt>なんびょう</rt></ruby>かを<ruby>教<rt>おし</rt></ruby>えてくれる<ruby>針<rt>はり</rt></ruby>。60<ruby>秒<rt>びょう</rt></ruby>で1<ruby>周<rt>しゅう</rt></ruby>します。</li>
<li><ruby>長針<rt>ちょうしん</rt></ruby>：<ruby>何分<rt>なんぷん</rt></ruby>かを<ruby>教<rt>おし</rt></ruby>えてくれる<ruby>針<rt>はり</rt></ruby>。60<ruby>分<rt>ふん</rt></ruby>で1<ruby>周<rt>しゅう</rt></ruby>します。</li>
<li><ruby>短針<rt>たんしん</rt></ruby>： <ruby>何時<rt>なんじ</rt></ruby>かを<ruby>教<rt>おし</rt></ruby>えてくれる<ruby>針<rt>はり</rt></ruby>。12<ruby>時間<rt>じかん</rt></ruby>で1<ruby>周<rt>しゅう</rt></ruby>します。</li>
</ul>
</div>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6850" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01.png" alt="アナログ時計の読み方" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>これら3<ruby>本<rt>ぼん</rt></ruby>の<ruby>針<rt>はり</rt></ruby>の<ruby>動<rt>うご</rt></ruby>きをプログラミングして、<ruby>実際<rt>じっさい</rt></ruby>の<ruby>時計<rt>とけい</rt></ruby>のように<ruby>動<rt>うご</rt></ruby>かしてみましょう。</p>
<p>また、<ruby>時計<rt>とけい</rt></ruby>の<ruby>文字盤<rt>もじばん</rt></ruby>の<ruby>目盛<rt>めもり</rt></ruby>もプログラミングで<ruby>描<rt>えが</rt></ruby>いてみます。</p>
<p>&nbsp;</p>
<h2><span id="toc2">完成プログラム</span></h2>
<p><ruby>完成<rt>かんせい</rt></ruby>した<ruby>作品<rt>さくひん</rt></ruby>です。ハタをおして<ruby>動<rt>うご</rt></ruby>かしてみてください。</p>
<p><iframe loading="lazy" width="485" height="402" src="https://scratch.mit.edu/projects/1047993172/embed" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></p>
<p>&nbsp;</p>
<p><ruby>完成<rt>かんせい</rt></ruby>したソースコードは<ruby>下<rt>した</rt></ruby>の<ruby>通<rt>とお</rt></ruby>りです。</p>
<p><ruby>現在<rt>げんざい</rt></ruby>の<ruby>時間<rt>じかん</rt></ruby>を<ruby>取得<rt>しゅとく</rt></ruby>し、それぞれの<ruby>針<rt>はり</rt></ruby>が 12<ruby>時<rt>じ</rt></ruby>の<ruby>位置<rt>いち</rt></ruby>から どれくらい<ruby>回転<rt>かいてん</rt></ruby>しているかを<ruby>計算<rt>けいさん</rt></ruby>、<ruby>針<rt>はり</rt></ruby>の<ruby>向<rt>む</rt></ruby>きを<ruby>変<rt>か</rt></ruby>えています。</p>
<h3><span id="toc3">秒針のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6851" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png" alt="Scratch 秒針のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc4">長針のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6852" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03.png" alt="Scratch 長針のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc5">短針のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6853" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04.png" alt="Scratch 短針のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc6">文字盤のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6854" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05.png" alt="Scratch 文字盤のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="ad-area no-icon ad-shortcode ad-rectangle ad-label-visible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-9126458450711382"
  data-ad-slot="2965068638"
  data-ad-format="rectangle"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc7">プログラミングの手順</span></h2>
<h3><span id="toc8">秒針</span></h3>
<h4>コスチューム</h4>
<p>1.スプライトを<ruby>作<rt>つく</rt></ruby>る</p>
<p>「スプライトを<ruby>選<rt>えら</rt></ruby>ぶ」→「<ruby>描<rt>えが</rt></ruby>く」を<ruby>選<rt>えら</rt></ruby>びます。</p>
<p>ネコのスプライトは<ruby>消<rt>け</rt></ruby>してOKです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6855" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06.png" alt="スプライトを作る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.<ruby>秒針<rt>びょうしん</rt></ruby>をかく</p>
<p><ruby>直線<rt>ちょくせん</rt></ruby>ツールを<ruby>使<rt>つか</rt></ruby>って<ruby>秒針<rt>びょうしん</rt></ruby>をかきます。</p>
<p><ruby>直線<rt>ちょくせん</rt></ruby>のはしをキャンバスの<ruby>丸<rt>まる</rt></ruby><ruby>十字<rt>じゅうじ</rt></ruby>に<ruby>合<rt>あ</rt></ruby>わせてください。ここを<ruby>中心<rt>ちゅうしん</rt></ruby>に<ruby>針<rt>はり</rt></ruby>が<ruby>回転<rt>かいてん</rt></ruby>します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6856" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07.png" alt="直線ツールを使って秒針をかく" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ペイントエディターのくわしい<ruby>使<rt>つか</rt></ruby>い<ruby>方<rt>かた</rt></ruby>は「<a rel="noopener" target="_self" href="https://living-maou.com/scratch-paint-vector/">【スクラッチ（Scratch）】<ruby>絵<rt>え</rt></ruby>を<ruby>描<rt>か</rt></ruby>いてスプライトや<ruby>背景<rt>はいけい</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ろう（ベクター<ruby>編<rt>へん</rt></ruby>）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」で<ruby>解説<rt>かいせつ</rt></ruby>しています。</p>
<p>&nbsp;</p>
<p>3.ステージにスプライトを<ruby>配置<rt>はいち</rt></ruby>する</p>
<p>ステージの<ruby>中心<rt>ちゅうしん</rt></ruby>(x<ruby>座標<rt>ざひょう</rt></ruby>0、y<ruby>座標<rt>ざひょう</rt></ruby>0）に、スプライトを<ruby>配置<rt>はいち</rt></ruby>し、<ruby>向<rt>む</rt></ruby>きを0にします。</p>
<p>スプライトの<ruby>名前<rt>なまえ</rt></ruby>を「<ruby>秒針<rt>びょうしん</rt></ruby>」に<ruby>変<rt>か</rt></ruby>えましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6857" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08.png" alt="ステージの中心にスプライトを配置" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>1.イベントカテゴリにある<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>す</p>
<p>2.<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリにある<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックを<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の<ruby>下<rt>した</rt></ruby>に<ruby>出<rt>だ</rt></ruby>す</p>
<p>3.<ruby>針<rt>はり</rt></ruby>の<ruby>向<rt>む</rt></ruby>きを<ruby>変<rt>か</rt></ruby>える<ruby>処理<rt>しょり</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>する</p>
<p><ruby>動<rt>うご</rt></ruby>きカテゴリにある<span style="color: #4c97ff;"><b>「 ( 90 ）<ruby>度<rt>ど</rt></ruby>に<ruby>向<rt>む</rt></ruby>ける」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックの<ruby>中<rt>なか</rt></ruby>に<ruby>入<rt>い</rt></ruby>れましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6858" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09.png" alt="Scratch ブロック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>次<rt>つぎ</rt></ruby>に、<ruby>何度<rt>なんど</rt></ruby>に<ruby>向<rt>む</rt></ruby>けたらいいか<ruby>考<rt>かんが</rt></ruby>えましょう。<span style="color: #4c97ff;"><b>「 ( 90 ）<ruby>度<rt>ど</rt></ruby>に<ruby>向<rt>む</rt></ruby>ける」</b></span>ブロックの( 90 )の<ruby>部分<rt>ぶぶん</rt></ruby>です。</p>
<p><ruby>秒針<rt>びょうしん</rt></ruby>は1<ruby>分<rt>ぷん</rt></ruby>で<ruby>一周<rt>いっしゅう</rt></ruby>します。</p>
<p>つまり、60<ruby>秒<rt>びょう</rt></ruby>で360<ruby>度<rt>ど</rt></ruby><ruby>回転<rt>かいてん</rt></ruby>するので、360<ruby>度<rt>ど</rt></ruby> ÷ 60<ruby>秒<rt>びょう</rt></ruby>で <ruby>毎秒<rt>まいびょう</rt></ruby>6<ruby>度<rt>ど</rt></ruby>ずつ <ruby>進<rt>すす</rt></ruby>んでいます。</p>
<p>1<ruby>秒<rt>びょう</rt></ruby>で6<ruby>度<rt>ど</rt></ruby>、2<ruby>秒<rt>びょう</rt></ruby>で12<ruby>度<rt>ど</rt></ruby>、3<ruby>秒<rt>びょう</rt></ruby>で18<ruby>度<rt>ど</rt></ruby>……と<ruby>進<rt>すす</rt></ruby>むので、<ruby>秒針<rt>びょうしん</rt></ruby>の<ruby>角度<rt>かくど</rt></ruby>は<b>「<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby> × 6」</b>で<ruby>求<rt>もと</rt></ruby>められますね。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6859" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10.png" alt="Scrach 秒針の角度" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>演算<rt>えんざん</rt></ruby>カテゴリの<span style="color: #40bf4a;"><b>「( )*( )」</b></span>を<ruby>出<rt>だ</rt></ruby>して、<ruby>左側<rt>ひだりがわ</rt></ruby>に<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>」</b></span>ブロックを<ruby>入<rt>い</rt></ruby>れ、<ruby>右側<rt>みぎがわ</rt></ruby>に6を<ruby>入力<rt>にゅうりょく</rt></ruby>しましょう。</p>
<p>そして<span style="color: #4c97ff;"><b>「 ( 90 ）<ruby>度<rt>ど</rt></ruby>に<ruby>向<rt>む</rt></ruby>ける」</b></span>の90の<ruby>部分<rt>ぶぶん</rt></ruby>に<ruby>入<rt>い</rt></ruby>れます。</p>
<p><span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>」</b></span>ブロックは、<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>を<ruby>調<rt>しら</rt></ruby>べるブロックです。</p>
<p><ruby>調<rt>しら</rt></ruby>べるカテゴリにある<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の<ruby>年<rt>とし</rt></ruby>」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>し、<ruby>年<rt>とし</rt></ruby>の<ruby>部分<rt>ぶぶん</rt></ruby>をクリックして、<ruby>秒<rt>びょう</rt></ruby>に<ruby>変<rt>か</rt></ruby>えましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6860" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11.png" alt="Scratch ブロック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>秒針<rt>びょうしん</rt></ruby>のプログラムが<ruby>完成<rt>かんせい</rt></ruby>しました。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6851" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png" alt="Scratch 秒針のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h3><span id="toc9">長針</span></h3>
<p><ruby>長針<rt>ちょうしん</rt></ruby>は1<ruby>時間<rt>じかん</rt></ruby>で<ruby>一周<rt>いっしゅう</rt></ruby>します。</p>
<p>60<ruby>分<rt>ぷん</rt></ruby>で360<ruby>度<rt>ど</rt></ruby><ruby>回転<rt>かいてん</rt></ruby>するので、<b>1<ruby>分<rt>ぷん</rt></ruby>で6<ruby>度<rt>ど</rt></ruby></b>（360<ruby>度<rt>ど</rt></ruby>÷60<ruby>分<rt>ぷん</rt></ruby>）<ruby>進<rt>すす</rt></ruby>みます。</p>
<p>……<ruby>秒針<rt>びょうしん</rt></ruby>と<ruby>似<rt>に</rt></ruby>ていますね。<ruby>秒針<rt>びょうしん</rt></ruby>のスプライトをコピーして<ruby>作<rt>つく</rt></ruby>りましょう。</p>
<p>&nbsp;</p>
<h4>コスチューム</h4>
<p>1.<ruby>秒針<rt>びょうしん</rt></ruby>のスプライトを<ruby>右<rt>みぎ</rt></ruby>クリックして「<ruby>複製<rt>ふくせい</rt></ruby>」を<ruby>選<rt>えら</rt></ruby>びます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6861" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12.png" alt="Scratch スプライトをコピーする" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.<ruby>秒針<rt>びょうしん</rt></ruby>2という<ruby>名前<rt>なまえ</rt></ruby>のスプライトができるので、スプライト<ruby>名<rt>めい</rt></ruby>を「<ruby>長針<rt>ちょうしん</rt></ruby>」に<ruby>変更<rt>へんこう</rt></ruby>しましょう。</p>
<p>3.ステージの<ruby>中心<rt>ちゅうしん</rt></ruby>(x<ruby>座標<rt>ざひょう</rt></ruby>0、y<ruby>座標<rt>ざひょう</rt></ruby>0）に、スプライトを<ruby>配置<rt>はいち</rt></ruby>し、<ruby>向<rt>む</rt></ruby>きを0にします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6862" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13.png" alt="長針をステージに配置する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>4.<ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>を<ruby>変更<rt>へんこう</rt></ruby>する</p>
<p>コスチュームから<ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>を<ruby>変更<rt>へんこう</rt></ruby>します。<ruby>線<rt>せん</rt></ruby>の<ruby>太<rt>ふと</rt></ruby>さや<ruby>色<rt>いろ</rt></ruby>を<ruby>変<rt>か</rt></ruby>えて、<ruby>秒針<rt>びょうしん</rt></ruby>と<ruby>区別<rt>くべつ</rt></ruby>できるようにしましょう。</p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>プログラムは、1<ruby>ヵ所<rt>かしょ</rt></ruby>だけ<ruby>変<rt>か</rt></ruby>えればOKです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6851" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png" alt="Scratch 秒針のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>何<rt>なに</rt></ruby>を<ruby>変<rt>か</rt></ruby>えたらよいか、<ruby>自分<rt>じぶん</rt></ruby>で<ruby>考<rt>かんが</rt></ruby>えてみましょう！</p>
<p>&nbsp;</p>
<h3><span id="toc10">短針</span></h3>
<h4>コスチューム</h4>
<p>1.<ruby>長針<rt>ちょうしん</rt></ruby>のスプライトを<ruby>右<rt>みぎ</rt></ruby>クリックして「<ruby>複製<rt>ふくせい</rt></ruby>」を<ruby>選<rt>えら</rt></ruby>びます。</p>
<p>2.<ruby>長針<rt>ちょうしん</rt></ruby>2のスプライトができるので、スプライト<ruby>名<rt>めい</rt></ruby>を「<ruby>短針<rt>たんしん</rt></ruby>」に<ruby>変更<rt>へんこう</rt></ruby>しましょう。</p>
<p>3.ステージの<ruby>中心<rt>ちゅうしん</rt></ruby>(x<ruby>座標<rt>ざひょう</rt></ruby>0、y<ruby>座標<rt>ざひょう</rt></ruby>0）に、スプライトを<ruby>配置<rt>はいち</rt></ruby>し、<ruby>向<rt>む</rt></ruby>きを0にします。</p>
<p>4.<ruby>他<rt>ほか</rt></ruby>の<ruby>針<rt>はり</rt></ruby>と<ruby>区別<rt>くべつ</rt></ruby>がつくようにコスチュームの<ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>を<ruby>変更<rt>へんこう</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h4>コード</h4>
<p><ruby>短針<rt>たんしん</rt></ruby>は12<ruby>時間<rt>じかん</rt></ruby>で<ruby>一周<rt>いっしゅう</rt></ruby>するので、1<ruby>時間<rt>じかん</rt></ruby>で30<ruby>度<rt>ど</rt></ruby>（360<ruby>度<rt>ど</rt></ruby>÷12<ruby>時間<rt>じかん</rt></ruby>）<ruby>進<rt>すす</rt></ruby>んでいます。</p>
<p>なので、<ruby>角度<rt>かくど</rt></ruby>は<b>「 <ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>とき</rt></ruby> × 30 」</b>で<ruby>求<rt>もと</rt></ruby>められますね。</p>
<p><span style="color: #40bf4a;"><b>「<span style="color: #4cbfe6;">( <ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>とき</rt></ruby> )</span> * ( 30 )<ruby>度<rt>ど</rt></ruby>に<ruby>向<rt>む</rt></ruby>ける」</b></span>にすればよさそうですが……</p>
<p><ruby>実際<rt>じっさい</rt></ruby>に<ruby>動<rt>うご</rt></ruby>かしてみてください。<ruby>本物<rt>ほんもの</rt></ruby>の<ruby>時計<rt>とけい</rt></ruby>とちがうところがありませんか？</p>
<p>&nbsp;</p>
<p><ruby>本物<rt>ほんもの</rt></ruby>の<ruby>時計<rt>とけい</rt></ruby>の<ruby>短針<rt>たんしん</rt></ruby>は、1<ruby>時間<rt>じかん</rt></ruby>の<ruby>間<rt>あいだ</rt></ruby>にもちょっとずつ<ruby>進<rt>すす</rt></ruby>んでいますね。</p>
<p>60<ruby>分<rt>ふん</rt></ruby>で30<ruby>度<rt>ど</rt></ruby><ruby>進<rt>すす</rt></ruby>むので、<b>1<ruby>分<rt>ふん</rt></ruby>で0.5<ruby>度<rt>ど</rt></ruby></b>（30<ruby>度<rt>ど</rt></ruby>÷60<ruby>分<rt>ふん</rt></ruby>）<ruby>進<rt>すす</rt></ruby>みます。</p>
<p>よって<span style="color: #4c97ff;"><b>「(<span style="color: #40bf4a;">（<span style="color: #4cbfe6;"><ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>とき</rt></ruby></span> * 30）+（<span style="color: #4cbfe6;"><ruby>現在<rt>げんざい</rt></ruby>の<ruby>分<rt>ぶん</rt></ruby></span> * 0.5）</span><ruby>度<rt>ど</rt></ruby>に<ruby>向<rt>む</rt></ruby>ける」</b></span>で<ruby>角度<rt>かくど</rt></ruby>が<ruby>求<rt>もと</rt></ruby>められます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6863" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14.png" alt="Scrach 短針の角度" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h3><span id="toc11">文字盤を作る</span></h3>
<p>ペイントエディターで<ruby>文字盤<rt>もじばん</rt></ruby>を<ruby>描<rt>えが</rt></ruby>くのも<ruby>楽<rt>たの</rt></ruby>しいですが、プログラムを<ruby>使<rt>つか</rt></ruby>って<ruby>文字盤<rt>もじばん</rt></ruby>を<ruby>描<rt>えが</rt></ruby>いてみませんか？</p>
<p>これから<ruby>紹介<rt>しょうかい</rt></ruby>するプログラムの<ruby>動<rt>うご</rt></ruby>きをゆっくりにすると、こんな<ruby>感<rt>かん</rt></ruby>じになります。</p>
<p><iframe loading="lazy" width="485" height="402" src="https://scratch.mit.edu/projects/1047993283/embed" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></p>
<p>&nbsp;</p>
<h4>コスチューム</h4>
<p><ruby>文字盤<rt>もじばん</rt></ruby>に<ruby>使<rt>つか</rt></ruby>いたいスプライトを<ruby>準備<rt>じゅんび</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>「<ruby>中心<rt>ちゅうしん</rt></ruby>から<ruby>外側<rt>そとがわ</rt></ruby>へ<ruby>移動<rt>いどう</rt></ruby> → スタンプ → <ruby>中心<rt>ちゅうしん</rt></ruby>へもどる → 30<ruby>度<rt>ど</rt></ruby><ruby>回<rt>まわ</rt></ruby>す」を12<ruby>回<rt>かい</rt></ruby>くり<ruby>返<rt>かえ</rt></ruby>します。</p>
<p><ruby>目盛<rt>めもり</rt></ruby>は12<ruby>個<rt>こ</rt></ruby>あるので、360<ruby>度<rt>ど</rt></ruby>÷12で30<ruby>度<rt>ど</rt></ruby>ずつ<ruby>回<rt>まわ</rt></ruby>します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6864" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15.png" alt="12個の目盛を描く" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>1.<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>す</p>
<p>2.<ruby>拡張機能<rt>かくちょうきのう</rt></ruby>から「ペン」を<ruby>選<rt>えら</rt></ruby>ぶ</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6865" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16.png" alt="拡張機能から「ペン」を追加" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>3.ペンカテゴリにある<span style="color: #2abd90;"><b>「<ruby>全部<rt>ぜんぶ</rt></ruby><ruby>消<rt>け</rt></ruby>す」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>す</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6866" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17.png" alt="Scratch ペン" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>4.ステージの<ruby>中心<rt>ちゅうしん</rt></ruby>に、スプライトを<ruby>配置<rt>はいち</rt></ruby>します。</p>
<p><ruby>動<rt>うご</rt></ruby>きカテゴリから<ruby>下<rt>した</rt></ruby>の2つのブロックを<ruby>出<rt>だ</rt></ruby>しましょう。</p>
<ul>
<li><span style="color: #4c97ff;"><b>「x<ruby>座標<rt>ざひょう</rt></ruby>を(0)、y<ruby>座標<rt>ざひょう</rt></ruby>を(0)にする」</b></span>ブロック</li>
<li><span style="color: #4c97ff;"><b>「(0)<ruby>度<rt>ど</rt></ruby>に<ruby>向<rt>む</rt></ruby>ける」</b></span>ブロック</li>
</ul>
<p>&nbsp;</p>
<p>5.<ruby>目盛<rt>めもり</rt></ruby>を<ruby>描<rt>えが</rt></ruby>く</p>
<p><ruby>制御<rt>せいぎょ</rt></ruby>カテゴリ<span style="color: #ffab19;"><b>「(12)<ruby>回<rt>かい</rt></ruby><ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>す」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>し、<ruby>中<rt>なか</rt></ruby>に<ruby>以下<rt>いか</rt></ruby>の<ruby>処理<rt>しょり</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>しましょう。</p>
<ol>
<li><ruby>動<rt>うご</rt></ruby>きカテゴリ<span><span style="color: #4c97ff;"><b>「(120)<ruby>歩<rt>ほ</rt></ruby><ruby>動<rt>うご</rt></ruby>かす」</b></span></span><span>ブロック</span></li>
<li>ペンカテゴリ<span style="color: #2abd90;"><b>「スタンプ」</b></span>ブロック</li>
<li><ruby>動<rt>うご</rt></ruby>きカテゴリ<span style="color: #4c97ff;"><b>「(-120)<ruby>歩<rt>ほ</rt></ruby><ruby>動<rt>うご</rt></ruby>かす」</b></span>ブロック</li>
<li><ruby>動<rt>うご</rt></ruby>きカテゴリ<span style="color: #4c97ff;"><b>「(30)<ruby>度<rt>ど</rt></ruby><ruby>回<rt>まわ</rt></ruby>す」</b></span>ブロック</li>
</ol>
<p><ruby>何歩<rt>なんぽ</rt></ruby><ruby>動<rt>うご</rt></ruby>かすかは、お<ruby>好<rt>この</rt></ruby>みで<ruby>調整<rt>ちょうせい</rt></ruby>してください。</p>
<p><span style="color: #2abd90;"><b>「スタンプ」</b></span>ブロックは、スプライトの<ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>をハンコみたいにはりつける<ruby>命令<rt>めいれい</rt></ruby>です。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6854" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05.png" alt="Scratch 文字盤のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>「アナとエルサとコードを<ruby>書<rt>か</rt></ruby>く」という<a rel="noopener" target="_blank" href="https://hourofcode.com/jp/learn">アワーオブコード<span class="fa fa-external-link external-icon anchor-icon"></span></a>のアクティビティでは、プログラムを<ruby>使<rt>つか</rt></ruby>って<ruby>美<rt>うつく</rt></ruby>しいもようを<ruby>描<rt>えが</rt></ruby>く<ruby>方法<rt>ほうほう</rt></ruby>を<ruby>学<rt>まな</rt></ruby>べます。</p>
<p>プログラムでもようを<ruby>描<rt>えが</rt></ruby>くのが<ruby>楽<rt>たの</rt></ruby>しかった<ruby>人<rt>ひと</rt></ruby>は、ぜひこちらもチェックしてみてください。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/hoc-frozen/" title="アワーオブコード「アナとエルサとコードを書く」答えを導くためのヒント" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">アワーオブコード「アナとエルサとコードを書く」答えを導くためのヒント</div><div class="blogcard-snippet internal-blogcard-snippet">アワーオブコード「アナとエルサとコードを書く」を解くヒント。【リビングの魔王】では難易度が高いと感じるお子さん向けに、課題を解く考え方を紹介します。答えは公開しませんので、ぜひ自分の力で美しい氷の模様を作ってみましょう！</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2><span id="toc12">作品の完成</span></h2>
<p>アナログ<ruby>時計<rt>とけい</rt></ruby>が<ruby>完成<rt>かんせい</rt></ruby>しました！</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6867" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18.png" alt="Scratch アナログ時計" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>このままでは<ruby>飾<rt>かざ</rt></ruby>り<ruby>気<rt>け</rt></ruby>のない<ruby>時計<rt>とけい</rt></ruby>なので、<ruby>好<rt>す</rt></ruby>きなようにアレンジしてみましょう。</p>
<p>たとえば、</p>
<ul>
<li><ruby>針<rt>はり</rt></ruby>のデザインを<ruby>変<rt>か</rt></ruby>える</li>
<li><ruby>決<rt>き</rt></ruby>まった<ruby>時間<rt>じかん</rt></ruby>に<ruby>音<rt>おと</rt></ruby>を<ruby>鳴<rt>な</rt></ruby>らす</li>
<li><ruby>時間帯<rt>じかんたい</rt></ruby>で<ruby>背景<rt>はいけい</rt></ruby>が<ruby>変<rt>か</rt></ruby>わる</li>
</ul>
<p>など、<ruby>自分<rt>じぶん</rt></ruby>だけのオリジナル<ruby>時計<rt>とけい</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ってみてくださいね！</p>
<p>&nbsp;</p>
<h2><span id="toc13">まとめ</span></h2>
<p>この<ruby>記事<rt>きじ</rt></ruby>では、Scratchを<ruby>使<rt>つか</rt></ruby>った「アナログ<ruby>時計<rt>とけい</rt></ruby>」の<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>しました。<ruby>自分<rt>じぶん</rt></ruby>だけのオリジナル<ruby>時計<rt>とけい</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ることができたでしょうか？</p>
<p>また、<ruby>算数<rt>さんすう</rt></ruby>でつまづきがちな「<ruby>時計<rt>とけい</rt></ruby><ruby>算<rt>ざん</rt></ruby>」の<ruby>基本的<rt>きほんてき</rt></ruby>な<ruby>考<rt>かんが</rt></ruby>え<ruby>方<rt>かた</rt></ruby>も<ruby>学<rt>まな</rt></ruby>ぶことができましたね。</p>
<div class="blank-box bb-blue">
<ul>
<li><ruby>秒針<rt>びょうしん</rt></ruby>： 60<ruby>秒<rt>びょう</rt></ruby>で360<ruby>度<rt>ど</rt></ruby><ruby>進<rt>すす</rt></ruby>むので、1<ruby>秒<rt>びょう</rt></ruby>で  6<ruby>度<rt>ど</rt></ruby>（360<ruby>度<rt>ど</rt></ruby>÷60<ruby>秒<rt>びょう</rt></ruby>）<ruby>進<rt>すす</rt></ruby>む。</li>
<li><ruby>長針<rt>ちょうしん</rt></ruby>： 60<ruby>分<rt>ぷん</rt></ruby>で360<ruby>度<rt>ど</rt></ruby><ruby>進<rt>すす</rt></ruby>むので、1<ruby>分<rt>ぷん</rt></ruby>で  6<ruby>度<rt>ど</rt></ruby>（360<ruby>度<rt>ど</rt></ruby>÷60<ruby>分<rt>ふん</rt></ruby>）<ruby>進<rt>すす</rt></ruby>む。</li>
<li><ruby>短針<rt>たんしん</rt></ruby>：12<ruby>時間<rt>じかん</rt></ruby>で360<ruby>度<rt>ど</rt></ruby><ruby>進<rt>すす</rt></ruby>むので、1<ruby>分<rt>ぷん</rt></ruby>で0.5<ruby>度<rt>ど</rt></ruby>（360<ruby>度<rt>ど</rt></ruby>÷(12<ruby>時間<rt>じかん</rt></ruby>×60<ruby>分<rt>ぷん</rt></ruby>)）<ruby>進<rt>すす</rt></ruby>む。</li>
</ul>
</div>
<p><ruby>当<rt>とう</rt></ruby>ブログでは<a rel="noopener" target="_self" href="https://living-maou.com/scratch-digital-clock/">「デジタル<ruby>時計<rt>とけい</rt></ruby>」の<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a>も<ruby>紹介<rt>しょうかい</rt></ruby>しています。ぜひチャレンジしてみてくださいね！</p>
<div class="blogcard-type bct-next">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-digital-clock/" title="【スクラッチ(Scratch)】デジタル時計をプログラミングしよう！" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【スクラッチ(Scratch)】デジタル時計をプログラミングしよう！</div><div class="blogcard-snippet internal-blogcard-snippet">スクラッチ(Scratch)を使った「デジタル時計」の作り方を紹介。【リビングの魔王】では図やコード例を交えながら分かりやすく解説します。自分だけのオリジナル時計を作ってみましょう！</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/scratch-analog-clock/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Raspberry Pi】Scratchでマインクラフトパイリボーンを動かす方法</title>
		<link>https://living-maou.com/raspberrypi4-jibunpc03/</link>
					<comments>https://living-maou.com/raspberrypi4-jibunpc03/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Thu, 20 Jun 2024 01:03:43 +0000</pubDate>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Minecraft]]></category>
		<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[Scratch]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6744</guid>

					<description><![CDATA[前回は、ラズベリーパイに「マインクラフトパイリボーン（Minecraft Pi Reborn）」をインストールしました。 今回は、スクラッチ(Scratch)を使ってマインクラフトパイリボーンを動かす方法を紹介します。  [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6745" src="https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03.png" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03.png 800w, https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>前回は、ラズベリーパイに「<a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc02/">マインクラフトパイリボーン（Minecraft Pi Reborn）」をインストール<span class="fa fa-external-link internal-icon anchor-icon"></span></a>しました。</p>
<p>今回は、<a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">スクラッチ(Scratch)<span class="fa fa-external-link internal-icon anchor-icon"></span></a>を使ってマインクラフトパイリボーンを動かす方法を紹介します。</p>
<p>スクラッチとマインクラフトパイリボーンの橋渡しをしてくれるソフト「Scratch2MCPI」のインストール方法と、プログラミングできるようにする手順を詳しく説明していきますので、ぜひお子様と一緒にトライしてみてください。</p>
<p>人気ゲーム「マインクラフト（Minecraft）」を通じて、楽しくプログラミングを学びましょう！</p>
<p>この作業は、子供の科学「<a rel="noopener" target="_blank" href="https://www.kodomonokagaku.com/wp-content/uploads/2024/03/%E7%AC%AC84%E5%9B%9E-%E3%82%B8%E3%83%96%E3%83%B3%E5%B0%82%E7%94%A8%E3%83%91%E3%82%BD%E3%82%B3%E3%83%B3.pdf">マイクラをプログラミングして球をつくろう<span class="fa fa-external-link external-icon anchor-icon"></span></a>」の記事を参考にしています。</p>
<p>&nbsp;</p>
<p>ラズベリーパイの組み立て方と、マイクロビットリボーンのインストール方法は、下の記事でくわしく解説しています。</p>
<div class="blank-box bb-blue">
<ol>
<li><a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc01/">【Raspberry Pi】ラズベリーパイでジブン専用パソコン作ってみた（子供の科学）<span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
<li><a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc02/">【Minecraft Pi Reborn】マイクラをラズパイで遊ぼう！インストール手順<span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
</ol>
</div>
<h2><span id="toc1">「マインクラフトパイリボーン」をインストールする</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6720" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02.jpg" alt="マインクラフトパイリボーン" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02.jpg 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>まだ「マインクラフトパイリボーン」を入れていない場合は、インストールしましょう。</p>
<p>手順は「<a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc02/">【Raspberry Pi】ラズベリーパイにマインクラフトパイリボーンを入れる方法<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」をご覧ください。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc02/" title="【Minecraft Pi Reborn】マイクラをラズパイで遊ぼう！インストール手順" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【Minecraft Pi Reborn】マイクラをラズパイで遊ぼう！インストール手順</div><div class="blogcard-snippet internal-blogcard-snippet">ラズベリーパイ向けに作られた「マインクラフトパイ」の後継版「マインクラフトパイリボーン」について紹介。【リビングの魔王】ではマインクラフトパイリボーンをインストールする方法と、遊び方を初心者向けに詳しく解説します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2><span id="toc2">「Scratch2MCPI」をインストールする</span></h2>
<p>次に「Scratch2MCPI」をインストールします。</p>
<p>「Scratch2MCPI」は、Scratchとマインクラフトパイリボーンを連携させるソフトウェアです。</p>
<h3><span id="toc3">ブラウザからコマンドをコピー</span></h3>
<p>1.ラズベリーパイのブラウザを起動する</p>
<p>スタートメニュー → インターネット → Chromium ウェブ・ブラウザ で起動します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6746" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01.png" alt="スタートメニュー → インターネット → Chromium ウェブ・ブラウザ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.「scratch2mcpi」を検索する</p>
<p>ブラウザのアドレスバーに「scratch2mcpi」と入力し、「Enter」キーをおします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6747" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02.png" alt="アドレスバーに「scratch2mcpi」と入力し「Enter」キーをおす" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>3.「Scratch2MCPI」のページを開く</p>
<p>検索結果から「Scratch2MCPI」（<a rel="noopener" target="_blank" href="https://scratch2mcpi.github.io">https://scratch2mcpi.github.io<span class="fa fa-external-link external-icon anchor-icon"></span></a>）をクリックして開きます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6748" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03.png" alt="検索結果から「Scratch2MCPI」を開く" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>4.「Raspberry Pi OS Bullseyeでのインストール方法」をクリック</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6749" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04.png" alt="「Raspberry Pi OS Bullseyeでのインストール方法」をクリック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>5.コマンドをコピーする</p>
<p>「Scratch2MCPIのインストール」に書かれている「https://scratch2mcpi.github.io/bullseye/install.sh | sh」をドラッグして右クリックし、コピーを選びます。先頭にある「%」は不要です。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6750" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05.png" alt="コマンドをコピー" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h3><span id="toc4">LXTerminal</span></h3>
<p>1.ターミナル（LXTerminal）を起動する</p>
<p>タスクバーのアイコンまたは、スタートメニュー → アクセサリ → LXTerminal で起動します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6751" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06.png" alt="スタートメニュー → アクセサリ → LXTerminal で起動" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.コマンドを貼り付け実行する</p>
<p>編集 → 貼り付け を選び、さっきコピーした「https://scratch2mcpi.github.io/bullseye/install.sh | sh」を貼り付けます。</p>
<p>「Enter」キーをおすと、ダウンロードとインストールが始まります。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6752" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07.png" alt="コマンドを貼り付ける" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>3.インストールが完了したらブラウザとターミナルを閉じる</p>
<p>しばらく待って「Installation of scratch2mcpi is completed.」が表示されたらインストール完了です。</p>
<p>ブラウザとターミナルは「×」をクリックして閉じてOKです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6753" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08.png" alt="「Installation of scratch2mcpi is completed.」が表示されたらインストール完了" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<div class="ad-area no-icon ad-shortcode ad-rectangle ad-label-visible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-9126458450711382"
  data-ad-slot="2965068638"
  data-ad-format="rectangle"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc5">マインクラフトパイリボーンをプログラミングで動かそう</span></h2>
<p>マインクラフトパイリボーンとScratch2MCPIを起動して、プログラミングできるようにします。</p>
<h3><span id="toc6">マインクラフトパイリボーンを起動</span></h3>
<p>1.マインクラフトパイリボーンを起動する</p>
<p>スタートメニュー → ゲーム → Minecraft: Pi Edition: Reborn で起動します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6729" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11.png" alt="「Minecraft: Pi Edition: Reborn」が追加された" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11.png 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>オプション選択画面はそのまま「OK」をクリックで進めて大丈夫です。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6730" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12.png" alt="オプション選択画面1" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12.png 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>ユーザーネームもそのままでOK。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6731" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13.png" alt="オプション選択画面2" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13.png 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.クリエイティブモードのワールドを作る</p>
<p>「Start Game」をクリックします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6732" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14.jpg" alt="「Start Game」をクリック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14.jpg 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>「Create new」をクリックします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6733" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15.png" alt="「Create new」をクリック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15.png 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>「Creative mode」を選び、クリエイティブモードのワールドを作ります。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6734" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16.jpg" alt="モードを選択する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16.jpg 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>3.ウィンドウを右下に移動する</p>
<p>マイクラのウィンドウは邪魔にならないように画面の右下に移動しておきましょう。</p>
<p>「Tab」キーをおすと、マウスカーソルをマイクラのウィンドウの外に移動できます。</p>
<p>ウィンドウのタイトルバーをドラッグすると移動できます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6754" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09.jpg" alt="ウィンドウを右下に移動" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09.jpg 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h3><span id="toc7">Scratch2MCPIを起動</span></h3>
<p>1.「Scratch2MCPI」を起動する</p>
<p>デスクトップにある「Scratch2MCPI」のアイコンをダブルクリックして起動します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6755" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10.png" alt="「Scratch2MCPI」のアイコンをダブルクリック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>「ファイルを実行する」の表示が出たら「実行」をクリックします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6756" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11.png" alt="「実行」をクリック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>タスクバーにある「Scratch2MCPI」をクリックして「Scratch2MCPI Terminal」をかくします。</p>
<p>「遠隔センサ接続が有効になりました」は「OK」で閉じます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6757" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12.png" alt="「Scratch2MCPI Terminal」をかくす" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.ウィンドウを左に移動する</p>
<p>スクラッチのウィンドウは左に移動してスクリプトエリアが見えるようにしましょう。</p>
<p>緑の旗をクリックして、マイクラに「&lt;StevePi&gt;hello minecraft」と表示されたら準備完了です。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6758" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13.png" alt="緑の旗をクリックしてマイクラに「&lt;StevePi&gt;hello minecraft」と表示されたら準備完了" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>これでスクラッチでマイクラを動かせるようになりました！</p>
<p>&nbsp;</p>
<h3><span id="toc8">整地する</span></h3>
<p>地形がフラットな方がプログラミングしやすいと思います。</p>
<p>最初からスクリプトエリアにある「[hello_minecraft▼]を送る」の「▼」をクリックし、「reset」を選びます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6759" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14.png" alt="resetを送る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>緑の旗をおすと、地形がフラットな状態になります。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6760" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15.png" alt="緑の旗をおす" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h2><span id="toc9">プログラムの保存</span></h2>
<p>スクラッチで作ったプログラムは「ファイル」→「名前をつけて保存&#8230;」から保存できます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6762" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16.png" alt="「ファイル」→「名前をつけて保存...」" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>新しいファイル名で名前をつけて「OK」をクリックしましょう。「mcpi_templete」は上書きしないように気をつけてください。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-6761 size-full" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17.png" alt="ファイル名をつけてOK" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>保存したファイルは「ファイル」→「開く&#8230;」から開けます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6763" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18.png" alt="「ファイル」→「開く...」" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>開きたいファイル名を選んで「OK」をクリックします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6764" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19.png" alt="ファイル名を選んでOK" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h2><span id="toc10">終了する方法</span></h2>
<p>マイクラを終了するときは、キーボードの左上にある「Esc」キーをおして「Quit to title（タイトルにもどる）」を選びます。</p>
<p>タイトル画面にもどったら、ウィンドウ右上の「×」をおして閉じましょう。</p>
<p>スクラッチもウィンドウ右上の「×」をおして閉じます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6765" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20.png" alt="×でアプリを閉じる" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h2><span id="toc11">まとめ</span></h2>
<p>「Scratch2MCPI」を使って、マインクラフトをスクラッチでプログラミングして動かす方法を紹介しました。</p>
<p>これで『子供の科学』に連載中の「<a rel="noopener" target="_blank" href="https://www.kodomonokagaku.com/experience/programming/7234/">はじめようジブン専用パソコン<span class="fa fa-external-link external-icon anchor-icon"></span></a>」の記事で紹介されていることができるようになったのではないでしょうか。</p>
<p>また、テキストプログラミングに興味がある人は、ぜひPythonに挑戦してみてください！<br />
<a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc04/">環境構築の方法をわかりやすく解説した記事<span class="fa fa-external-link internal-icon anchor-icon"></span></a>がありますので、ぜひそちらも参考にしてみてくださいね。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc04/" title="【Raspberry Pi】Pythonでマインクラフトパイリボーンを楽しむための環境設定ガイド" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【Raspberry Pi】Pythonでマインクラフトパイリボーンを楽しむための環境設定ガイド</div><div class="blogcard-snippet internal-blogcard-snippet">マインクラフトでPythonプログラミングに挑戦！【リビングの魔王】では初心者にも分かりやすいようスクリーンショットを使いつつ、環境構築の方法を丁寧に紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3><span id="toc12">【PR】小中学生向けのラズベリーパイ入門書</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6769" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20.jpg" alt="ジブン専用パソコン Raspberry Piでプログラミング" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20.jpg 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>最後に、小中学生向けのラズベリーパイ入門書を紹介します。</p>
<p>『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4416719191">ジブン専用パソコン Raspberry Piでプログラミング<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』は、ラズベリーパイを使って、パソコンのしくみや文書作成、プログラミングの基本を学べる本です。</p>
<p>この本は2019年11月に発行され、「Raspberry Pi 3 Model B+」を本体とした「ジブン専用パソコン2」を使って解説しています。</p>
<p>そのため、最新の<span style="color: #ff6600;">「ジブン専用パソコン4」や「ジブン専用パソコン3.5S」では、一部の内容が実践できない場合があります</span>。</p>
<p>しかし、以前のバージョンを元にした解説内容も参考になるため、読んで損はないと思います。</p>
<p><a rel="noopener" target="_blank" href="https://jp.mercari.com/search?afid=2355148725&amp;keyword=%E3%82%B8%E3%83%96%E3%83%B3%E5%B0%82%E7%94%A8%E3%83%91%E3%82%BD%E3%82%B3%E3%83%B3+Raspberry+Pi%E3%81%A7%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0">メルカリ<span class="fa fa-external-link external-icon anchor-icon"></span></a>でも出品があるので、探してみてはいかがでしょうか。</p>
<p><!-- START MoshimoAffiliateEasyLink --><br />
<script type="text/javascript">
(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;
b[a]=b[a]||function(){arguments.currentScript=c.currentScript
||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};
c.getElementById(a)||(d=c.createElement(f),d.src=g,
d.id=a,e=c.getElementsByTagName("body")[0],e.appendChild(d))})
(window,document,"script","//dn.msmstatic.com/site/cardlink/bundle.js?20220329","msmaflink");
msmaflink({"n":"ジブン専用パソコン Raspberry Piでプログラミング: ゲームづくりから自由研究までなんだってできる! (子供の科学★ミライクリエイティブ)","b":"誠文堂新光社","t":"","d":"https:\/\/m.media-amazon.com","c_p":"\/images\/I","p":["\/51nTdzbE15L._SL500_.jpg","\/51Em8TuwsYL._SL500_.jpg","\/51SwovkyiuL._SL500_.jpg","\/514eq3MR4+L._SL500_.jpg","\/51rapLI0hLL._SL500_.jpg","\/513C-wzS+cL._SL500_.jpg","\/51h1oBmkF0L._SL500_.jpg","\/51JQ3oC3tiL._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/4416719191","t":"amazon","r_v":""},"v":"2.1","b_l":[{"id":1,"u_tx":"Amazonで見る","u_bc":"#f79256","u_url":"https:\/\/www.amazon.co.jp\/dp\/4416719191","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":29,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/%E3%82%B8%E3%83%96%E3%83%B3%E5%B0%82%E7%94%A8%E3%83%91%E3%82%BD%E3%82%B3%E3%83%B3%20Raspberry%20Pi%E3%81%A7%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%3A%20%E3%82%B2%E3%83%BC%E3%83%A0%E3%81%A5%E3%81%8F%E3%82%8A%E3%81%8B%E3%82%89%E8%87%AA%E7%94%B1%E7%A0%94%E7%A9%B6%E3%81%BE%E3%81%A7%E3%81%AA%E3%82%93%E3%81%A0%E3%81%A3%E3%81%A6%E3%81%A7%E3%81%8D%E3%82%8B!%20(%E5%AD%90%E4%BE%9B%E3%81%AE%E7%A7%91%E5%AD%A6%E2%98%85%E3%83%9F%E3%83%A9%E3%82%A4%E3%82%AF%E3%83%AA%E3%82%A8%E3%82%A4%E3%83%86%E3%82%A3%E3%83%96)\/","a_id":1820957,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":30,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=%E3%82%B8%E3%83%96%E3%83%B3%E5%B0%82%E7%94%A8%E3%83%91%E3%82%BD%E3%82%B3%E3%83%B3%20Raspberry%20Pi%E3%81%A7%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%3A%20%E3%82%B2%E3%83%BC%E3%83%A0%E3%81%A5%E3%81%8F%E3%82%8A%E3%81%8B%E3%82%89%E8%87%AA%E7%94%B1%E7%A0%94%E7%A9%B6%E3%81%BE%E3%81%A7%E3%81%AA%E3%82%93%E3%81%A0%E3%81%A3%E3%81%A6%E3%81%A7%E3%81%8D%E3%82%8B!%20(%E5%AD%90%E4%BE%9B%E3%81%AE%E7%A7%91%E5%AD%A6%E2%98%85%E3%83%9F%E3%83%A9%E3%82%A4%E3%82%AF%E3%83%AA%E3%82%A8%E3%82%A4%E3%83%86%E3%82%A3%E3%83%96)","a_id":1832853,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"U7mqe","s":"s"});
</script></p>
<div id="msmaflink-U7mqe">リンク</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/raspberrypi4-jibunpc03/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【スクラッチ(Scratch)】ヒミツのお手紙作り！暗号文をつくろう</title>
		<link>https://living-maou.com/scratch-secret-letter/</link>
					<comments>https://living-maou.com/scratch-secret-letter/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Mon, 20 May 2024 01:25:34 +0000</pubDate>
				<category><![CDATA[Scratch]]></category>
		<category><![CDATA[作品例]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6654</guid>

					<description><![CDATA[上のアイキャッチ画像はAIによって生成されました。 お友達ともだちと手紙てがみのやりとり、楽たのしいですよね！ でも、もし手紙てがみを落おとしてしまったり、だれかに見みられてしまったら一大事いちだいじ…！ 特とくに好すき [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6655" src="https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter.jpg 800w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p style="text-align: right;"><span class="fz-14px">上のアイキャッチ画像はAIによって生成されました。</span></p>
<p>お<ruby>友達<rt>ともだち</rt></ruby>と<ruby>手紙<rt>てがみ</rt></ruby>のやりとり、<ruby>楽<rt>たの</rt></ruby>しいですよね！</p>
<p>でも、もし<ruby>手紙<rt>てがみ</rt></ruby>を<ruby>落<rt>お</rt></ruby>としてしまったり、だれかに<ruby>見<rt>み</rt></ruby>られてしまったら<ruby>一大事<rt>いちだいじ</rt></ruby>…！</p>
<p><ruby>特<rt>とく</rt></ruby>に<ruby>好<rt>す</rt></ruby>きな<ruby>人<rt>ひと</rt></ruby>のことや、なやみなんか、<ruby>絶対<rt>ぜったい</rt></ruby>に<ruby>見<rt>み</rt></ruby>られたくないですよね。</p>
<p>そこで、この<ruby>記事<rt>きじ</rt></ruby>では Scratchを<ruby>使<rt>つか</rt></ruby>って「<b><ruby>暗号<rt>あんごう</rt></ruby><ruby>文<rt>ぶん</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ったり もどしたりする プログラム</b>」の<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>このプログラムがあれば、<ruby>手紙<rt>てがみ</rt></ruby>の<ruby>内容<rt>ないよう</rt></ruby>をだれにも<ruby>読<rt>よ</rt></ruby>めない ヒミツの<ruby>言葉<rt>ことば</rt></ruby>に<ruby>変<rt>か</rt></ruby>えることができます。</p>
<p>ヒミツの<ruby>言葉<rt>ことば</rt></ruby>で<ruby>手紙<rt>てがみ</rt></ruby>を<ruby>書<rt>か</rt></ruby>けば、<ruby>安心<rt>あんしん</rt></ruby>して<ruby>大切<rt>たいせつ</rt></ruby>な<ruby>話<rt>はなし</rt></ruby>もできますね！</p>
<p>&nbsp;</p>
<div class="blank-box bb-tab bb-ng bb-red">
<p>このプログラムを<ruby>使<rt>つか</rt></ruby>って、<ruby>人<rt>ひと</rt></ruby>の<ruby>悪口<rt>わるくち</rt></ruby>を<ruby>書<rt>か</rt></ruby>いたり、いじめをしたりするのは<ruby>絶対<rt>ぜったい</rt></ruby>にダメ！<br />
<ruby>約束<rt>やくそく</rt></ruby>してくださいね。</p>
</div>
<p>&nbsp;</p>
<p>Scratchはインターネットにつながるパソコンから<ruby>無料<rt>むりょう</rt></ruby>で<ruby>利用<rt>りよう</rt></ruby>できます。</p>
<p>Scratch<ruby>公式<rt>こうしき</rt></ruby>サイト: <a rel="noopener" target="_blank" href="https://scratch.mit.edu/">https://scratch.mit.edu/<span class="fa fa-external-link external-icon anchor-icon"></span></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">Scratchのアカウントの<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby>と<ruby>基本的<rt>きほんてき</rt></ruby>な<ruby>使<rt>つか</rt></ruby>い<ruby>方<rt>かた</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、<ruby>下<rt>した</rt></ruby>の<ruby>記事<rt>きじ</rt></ruby>で<ruby>紹介<rt>しょうかい</rt></ruby>しています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/" title="Scratch（スクラッチ）の使い方・始め方｜小学生向けプログラミング入門" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">Scratch（スクラッチ）の使い方・始め方｜小学生向けプログラミング入門</div><div class="blogcard-snippet internal-blogcard-snippet">子供向けプログラミング言語Scratch（スクラッチ）。プログラミング教育の教材として多くの小学校で使われています。【リビングの魔王】では、おうちでもスクラッチを使いたい方のために、アカウントの作成方法と基本的な使い方を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2><span id="toc1">2つのリストを使って暗号文を作る</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6656" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07.png" alt="2つのリストを使って暗号文を作る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>暗号<rt>あんごう</rt></ruby><ruby>文<rt>ぶん</rt></ruby>を<ruby>作<rt>つく</rt></ruby>る<ruby>方法<rt>ほうほう</rt></ruby>は いろいろありますが、<ruby>今回<rt>こんかい</rt></ruby>は<b>2つのリストを<ruby>使<rt>つか</rt></ruby>った<ruby>方法<rt>ほうほう</rt></ruby></b>を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>あいうえお<ruby>順<rt>じゅん</rt></ruby>にならんだ「かなリスト」と、<ruby>順番<rt>じゅんばん</rt></ruby>がバラバラな「カナリスト」を<ruby>作<rt>つく</rt></ruby>り、<ruby>対応<rt>たいおう</rt></ruby>する<ruby>文字<rt>もじ</rt></ruby>に<ruby>変<rt>か</rt></ruby>える<ruby>仕組<rt>しく</rt></ruby>みです。</p>
<p>&nbsp;</p>
<h2><span id="toc2">完成プログラム</span></h2>
<p><ruby>完成<rt>かんせい</rt></ruby>したプログラムは<ruby>下<rt>した</rt></ruby>の<ruby>通<rt>とお</rt></ruby>りです。</p>
<h3><span id="toc3">暗号にするプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6657" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01.png" alt="暗号にするプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ひらがなで<ruby>文字列<rt>もじれつ</rt></ruby>（ならんだ<ruby>文字<rt>もじ</rt></ruby>の<ruby>集<rt>あつ</rt></ruby>まり）を<ruby>入力<rt>にゅうりょく</rt></ruby>すると、<ruby>暗号<rt>あんごう</rt></ruby>にしてくれるプログラムです。</p>
<p>ひらがな<ruby>以外<rt>いがい</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby>はそのまま<ruby>出力<rt>しゅつりょく</rt></ruby>されます。</p>
<p>&nbsp;</p>
<h3><span id="toc4">暗号をもどすプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6658" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02.png" alt="暗号をもどすプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>暗号<rt>あんごう</rt></ruby><ruby>文<rt>ぶん</rt></ruby>を<ruby>元<rt>もと</rt></ruby>にもどせないと <ruby>意味<rt>いみ</rt></ruby>がありませんね。</p>
<p>カタカナで<ruby>暗号<rt>あんごう</rt></ruby><ruby>文<rt>ぶん</rt></ruby>を<ruby>入力<rt>にゅうりょく</rt></ruby>すると、もとの<ruby>文字列<rt>もじれつ</rt></ruby>にもどしてくれる プログラムも<ruby>作<rt>つく</rt></ruby>ります。</p>
<p>&nbsp;</p>
<h3><span id="toc5">リストから文字を探すプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6659" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03.png" alt="リスト検索（ブロック定義）" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>リストから<ruby>文字<rt>もじ</rt></ruby>を<ruby>探<rt>さが</rt></ruby>すプログラム。ブロック<ruby>定義<rt>ていぎ</rt></ruby>にしなくてもOKです。</p>
<p>&nbsp;</p>
<div class="ad-area no-icon ad-shortcode ad-rectangle ad-label-visible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-9126458450711382"
  data-ad-slot="2965068638"
  data-ad-format="rectangle"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc6">プログラム解説</span></h2>
<p>このプログラムは、<b><ruby>変数<rt>へんすう</rt></ruby></b>・<b>リスト</b>・<b>ブロック<ruby>定義<rt>ていぎ</rt></ruby></b>を<ruby>使<rt>つか</rt></ruby>います。</p>
<div class="blank-box bb-blue">
<ul>
<li><span style="color: #ff6600;"><b><ruby>変<rt>へん</rt></ruby>　<ruby>数<rt>すう</rt></ruby></b></span>：データを<ruby>一時的<rt>いちじてき</rt></ruby>に<ruby>覚<rt>おぼ</rt></ruby>えておくための<ruby>入<rt>い</rt></ruby>れ<ruby>物<rt>もの</rt></ruby></li>
<li><span style="color: #ff6600;"><b>リスト</b></span>：たくさんのデータを<ruby>順番<rt>じゅんばん</rt></ruby>にならべ<ruby>管理<rt>かんり</rt></ruby>できるようにしたもの</li>
<li><span style="color: #ff6600;"><b>ブロック<ruby>定義<rt>ていぎ</rt></ruby></b></span>：ある<ruby>処理<rt>しょり</rt></ruby>をまとめたもの</li>
</ul>
</div>
<p>&nbsp;</p>
<p><ruby>下<rt>した</rt></ruby>の<ruby>記事<rt>きじ</rt></ruby>でくわしく<ruby>解説<rt>かいせつ</rt></ruby>しています。<ruby>使<rt>つか</rt></ruby>い<ruby>方<rt>かた</rt></ruby>がよく<ruby>分<rt>わ</rt></ruby>からない<ruby>人<rt>ひと</rt></ruby>は<ruby>読<rt>よ</rt></ruby>んでみてくださいね。</p>
<div class="blank-box bb-blue">
<ul>
<li><a rel="noopener" target="_self" href="https://living-maou.com/scratch-variable/"><ruby>変数<rt>へんすう</rt></ruby>とは？スクラッチ（Scratch）を<ruby>使<rt>つか</rt></ruby>ってわかりやすく<ruby>解説<rt>かいせつ</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
<li><a rel="noopener" target="_self" href="https://living-maou.com/scratch-list/"><ruby>配列<rt>はいれつ</rt></ruby>・リストとは？スクラッチ（Scratch）を<ruby>使<rt>つか</rt></ruby>ってわかりやすく<ruby>解説<rt>かいせつ</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
<li><a rel="noopener" target="_self" href="https://living-maou.com/scratch-function/"><ruby>関数<rt>かんすう</rt></ruby>とは？スクラッチ(Scratch)を<ruby>使<rt>つか</rt></ruby>ってわかりやすく<ruby>解説<rt>かいせつ</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
</ul>
</div>
<p>&nbsp;</p>
<h3><span id="toc7">スプライトを準備する</span></h3>
<p>スプライトをひとつ<ruby>準備<rt>じゅんび</rt></ruby>します。</p>
<p><ruby>暗号<rt>あんごう</rt></ruby>をもどすプログラムは、<ruby>暗号<rt>あんごう</rt></ruby>にするプログラムを<ruby>作<rt>つく</rt></ruby>ってから スプライトをコピーして<ruby>作<rt>つく</rt></ruby>るので、<ruby>最初<rt>さいしょ</rt></ruby>はひとつでOKです。</p>
<p>スプライトの<ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>や<ruby>背景<rt>はいけい</rt></ruby>は <ruby>好<rt>す</rt></ruby>きなモノを<ruby>選<rt>えら</rt></ruby>んでください。</p>
<p>&nbsp;</p>
<h3><span id="toc8">変数・リスト・ブロック定義を作成</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6660" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04.png" alt="変数・リスト・ブロック定義" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>必要<rt>ひつよう</rt></ruby>な<ruby>変数<rt>へんすう</rt></ruby>・リスト・ブロック<ruby>定義<rt>ていぎ</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ります。</p>
<p>&nbsp;</p>
<h4>変数</h4>
<p><ruby>変数<rt>へんすう</rt></ruby>カテゴリ→「<ruby>変数<rt>へんすう</rt></ruby>を<ruby>作<rt>つく</rt></ruby>る」から、<ruby>変数<rt>へんすう</rt></ruby>を4つ<ruby>作<rt>つく</rt></ruby>ります。</p>
<div class="blank-box bb-blue">
<ul>
<li><ruby>入力<rt>にゅうりょく</rt></ruby>：<ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>文字列<rt>もじれつ</rt></ruby></li>
<li><ruby>出力<rt>しゅつりょく</rt></ruby>：<ruby>出力<rt>しゅつりょく</rt></ruby>する<ruby>文字列<rt>もじれつ</rt></ruby></li>
<li>in：<ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>文字列<rt>もじれつ</rt></ruby>の<ruby>何番目<rt>なんばんめ</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby>か</li>
<li>list：リストの<ruby>何番目<rt>なんばんめ</rt></ruby>か</li>
</ul>
</div>
<p>&nbsp;</p>
<h4>リスト</h4>
<p><ruby>変数<rt>へんすう</rt></ruby>カテゴリ→「リストを<ruby>作<rt>つく</rt></ruby>る」から、リスト2つを<ruby>作<rt>つく</rt></ruby>ります。</p>
<div class="blank-box bb-blue">
<ul>
<li>かなリスト：あいうえお<ruby>順<rt>じゅん</rt></ruby>にならんでいる</li>
<li>カナリスト：<ruby>順番<rt>じゅんばん</rt></ruby>がバラバラになっている</li>
</ul>
</div>
<p>メモ<ruby>帳<rt>ちょう</rt></ruby>などに データを<ruby>作<rt>つく</rt></ruby>ってから <ruby>読<rt>よ</rt></ruby>み<ruby>込<rt>こ</rt></ruby>むと、<ruby>楽<rt>らく</rt></ruby>ですよ。</p>
<p>&nbsp;</p>
<h4>ブロック定義</h4>
<p>ブロック<ruby>定義<rt>ていぎ</rt></ruby>も2つ<ruby>用意<rt>ようい</rt></ruby>します。</p>
<p>ブロック<ruby>定義<rt>ていぎ</rt></ruby>カテゴリ→「ブロックを<ruby>作<rt>つく</rt></ruby>る」で<ruby>作<rt>つく</rt></ruby>れます。</p>
<div class="blank-box bb-blue">
<ul>
<li>かなリスト<ruby>検索<rt>けんさく</rt></ruby></li>
<li>カナリスト<ruby>検索<rt>けんさく</rt></ruby></li>
</ul>
</div>
<p><ruby>中<rt>なか</rt></ruby>の<ruby>処理<rt>しょり</rt></ruby>は、<ruby>後<rt>あと</rt></ruby>で<ruby>解説<rt>かいせつ</rt></ruby>します。</p>
<p>&nbsp;</p>
<h3><span id="toc9">暗号にするプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6661" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05.png" alt="暗号にするプログラム解説" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>スプライトをクリックした<ruby>時<rt>とき</rt></ruby>に、<ruby>実行<rt>じっこう</rt></ruby>します。<span style="color: #ffd500;"><b>「このスプライトが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>を<ruby>出<rt>だ</rt></ruby>しましょう。</p>
<p><span style="color: #ff8c1a;"><b>「（<ruby>出力<rt>しゅつりょく</rt></ruby>）を（　）にする」</b></span>で、<ruby>変数<rt>へんすう</rt></ruby>「<ruby>出力<rt>しゅつりょく</rt></ruby>」を<ruby>初期<rt>しょき</rt></ruby><ruby>化<rt>か</rt></ruby>します。</p>
<p><span style="color: #4cbfe6;"><b>「（<ruby>暗号<rt>あんごう</rt></ruby>に<ruby>変換<rt>へんかん</rt></ruby>したい<ruby>文字列<rt>もじれつ</rt></ruby>を<ruby>入力<rt>にゅうりょく</rt></ruby>してください）と<ruby>聞<rt>き</rt></ruby>いて<ruby>待<rt>ま</rt></ruby>つ」</b></span>と<span style="color: #ff8c1a;"><b>「（<ruby>入力<rt>にゅうりょく</rt></ruby>）を（<ruby>答<rt>こた</rt></ruby>え）にする」</b></span>で、<ruby>入力<rt>にゅうりょく</rt></ruby>された<ruby>文字列<rt>もじれつ</rt></ruby>を<ruby>変数<rt>へんすう</rt></ruby>「<ruby>入力<rt>にゅうりょく</rt></ruby>」に<ruby>入<rt>い</rt></ruby>れます。</p>
<p><ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>文字列<rt>もじれつ</rt></ruby>を1<ruby>文字<rt>もじ</rt></ruby>ずつ<ruby>取<rt>と</rt></ruby>り<ruby>出<rt>だ</rt></ruby>して、かなリストにあるか<ruby>検索<rt>けんさく</rt></ruby>します。</p>
<p><span style="color: #ff8c1a;"><b>「（in）を（1）にする」</b></span>で、<ruby>変数<rt>へんすう</rt></ruby>「in」の<ruby>初期<rt>しょき</rt></ruby><ruby>値<rt>ち</rt></ruby>を<ruby>設定<rt>せってい</rt></ruby>します。1<ruby>文字<rt>もじ</rt></ruby><ruby>目<rt>め</rt></ruby>から<ruby>順番<rt>じゅんばん</rt></ruby>にみるので、<ruby>初期<rt>しょき</rt></ruby><ruby>値<rt>ち</rt></ruby>は1です。</p>
<p><span style="color: #ffab19;"><b>「（<ruby>入力<rt>にゅうりょく</rt></ruby>の<ruby>長<rt>なが</rt></ruby>さ）<ruby>回<rt>かい</rt></ruby><ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>す」</b></span>で、<ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>文字<rt>もじ</rt></ruby><ruby>数分<rt>すうぶん</rt></ruby>くり<ruby>返<rt>かえ</rt></ruby>しましょう。</p>
<p>ブロック<ruby>定義<rt>ていぎ</rt></ruby><span style="color: #ff6680;"><b>「かなリスト<ruby>検索<rt>けんさく</rt></ruby>」</b></span>で、かなリストの<ruby>何番目<rt>なんばんめ</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby>か<ruby>検索<rt>けんさく</rt></ruby>します。<ruby>変数<rt>へんすう</rt></ruby>「list」には、かなリストの<ruby>何番目<rt>なんばんめ</rt></ruby>か<ruby>入<rt>はい</rt></ruby>ります。</p>
<p>&nbsp;</p>
<p>かなリストにあった<ruby>場合<rt>ばあい</rt></ruby>と、なかった<ruby>場合<rt>ばあい</rt></ruby>で<ruby>処理<rt>しょり</rt></ruby>を<ruby>分<rt>わ</rt></ruby>けます。</p>
<p><span style="color: #ffab19;"><b>「もし （list） &gt; かなの<ruby>長<rt>なが</rt></ruby>さ なら」</b></span>の<ruby>中<rt>なか</rt></ruby>には、<b>リストになかった<ruby>場合<rt>ばあい</rt></ruby></b>の<ruby>処理<rt>しょり</rt></ruby>を<ruby>入<rt>い</rt></ruby>れます。</p>
<p><span style="color: #ff8c1a;"><b>「（<ruby>出力<rt>しゅつりょく</rt></ruby>）を（<ruby>出力<rt>しゅつりょく</rt></ruby>と<ruby>入力<rt>にゅうりょく</rt></ruby>のin<ruby>番目<rt>ばんめ</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby>）にする」</b></span>で<ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>文字<rt>もじ</rt></ruby>を そのまま<ruby>出力<rt>しゅつりょく</rt></ruby>しましょう。</p>
<p><span style="color: #ffab19;"><b>「でなければ」</b></span>の<ruby>中<rt>なか</rt></ruby>には、<b>リストにあった<ruby>場合<rt>ばあい</rt></ruby></b>の<ruby>処理<rt>しょり</rt></ruby>を<ruby>入<rt>い</rt></ruby>れます。</p>
<p><span style="color: #ff8c1a;"><b>「（<ruby>出力<rt>しゅつりょく</rt></ruby>）を（<ruby>出力<rt>しゅつりょく</rt></ruby>とカナのlist<ruby>番目<rt>ばんめ</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby>）にする」</b></span>で、カナリストの<ruby>対応<rt>たいおう</rt></ruby>する<ruby>文字<rt>もじ</rt></ruby>を <ruby>出力<rt>しゅつりょく</rt></ruby>しましょう。</p>
<p><span style="color: #ff8c1a;"><b>「（in）を（1）ずつ<ruby>変<rt>か</rt></ruby>える」</b></span>で、<ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>文字列<rt>もじれつ</rt></ruby>の<ruby>次<rt>つぎ</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby>をみるようにし、くり<ruby>返<rt>かえ</rt></ruby>しの<ruby>最初<rt>さいしょ</rt></ruby>の<ruby>処理<rt>しょり</rt></ruby>へもどります。</p>
<p>&nbsp;</p>
<p>くり<ruby>返<rt>かえ</rt></ruby>しをぬけたら<span style="color: #9966ff;"><b>「（<ruby>出力<rt>しゅつりょく</rt></ruby>）と（5）<ruby>秒<rt>びょう</rt></ruby><ruby>言<rt>い</rt></ruby>う」</b></span>で <ruby>変換<rt>へんかん</rt></ruby><ruby>後<rt>ご</rt></ruby>の<ruby>文字列<rt>もじれつ</rt></ruby>を<ruby>表示<rt>ひょうじ</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h3><span id="toc10">かなリスト検索</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6662" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06.png" alt="かなリスト検索解説" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>文字<rt>もじ</rt></ruby>が、かなリストの<ruby>何番目<rt>なんばんめ</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby>か<ruby>検索<rt>けんさく</rt></ruby>する ブロック<ruby>定義<rt>ていぎ</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ります。</p>
<p><span style="color: #ff8c1a;"><b>「（list）を（1）にする」</b></span>で <ruby>変数<rt>へんすう</rt></ruby>「list」の<ruby>初期<rt>しょき</rt></ruby><ruby>値<rt>ち</rt></ruby>を<ruby>設定<rt>せってい</rt></ruby>します。1<ruby>番目<rt>ばんめ</rt></ruby>の<ruby>要素<rt>ようそ</rt></ruby>から<ruby>順番<rt>じゅんばん</rt></ruby>にみるので、<ruby>初期<rt>しょき</rt></ruby><ruby>値<rt>ち</rt></ruby>は1です。</p>
<p><ruby>以下<rt>いか</rt></ruby>の<ruby>条件<rt>じょうけん</rt></ruby>を どちらか<ruby>満<rt>み</rt></ruby>たすまで<span style="color: #ff8c1a;"><b>「（list）を（1）ずつ<ruby>変<rt>か</rt></ruby>える」</b></span>を<ruby>実行<rt>じっこう</rt></ruby>します。</p>
<ul>
<li><b><ruby>入力<rt>にゅうりょく</rt></ruby>のin<ruby>番目<rt>ばんめ</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby> = かなのlist<ruby>番目<rt>ばｎめ</rt></ruby></b> → リストにあった</li>
<li><b>list &gt; かなの<ruby>長<rt>なが</rt></ruby>さ</b> → <ruby>最後<rt>さいご</rt></ruby>までみたけれどリストになかった</li>
</ul>
<p>&nbsp;</p>
<h3><span id="toc11">暗号をもどすプログラム</span></h3>
<p><ruby>暗号<rt>あんごう</rt></ruby>にするプログラムでは、<ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>文字<rt>もじ</rt></ruby>が かなリストの<ruby>何番目<rt>なんばんめ</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby>か<ruby>探<rt>さが</rt></ruby>し、<ruby>対応<rt>たいおう</rt></ruby>するカナリストの<ruby>文字<rt>もじ</rt></ruby>に<ruby>変換<rt>へんかん</rt></ruby>しました。</p>
<p><ruby>暗号<rt>あんごう</rt></ruby>をもどすプログラムでは その<ruby>逆<rt>ぎゃく</rt></ruby>を<ruby>行<rt>おこな</rt></ruby>います。</p>
<div class="blank-box bb-blue">
<ul>
<li><ruby>暗号<rt>あんごう</rt></ruby>にする　：かな → カナ</li>
<li><ruby>暗号<rt>あんごう</rt></ruby>をもどす：カナ → かな</li>
</ul>
</div>
<p><ruby>暗号<rt>あんごう</rt></ruby>にするプログラムの スプライトをコピーして、どこを<ruby>直<rt>なお</rt></ruby>せばいいか <ruby>自分<rt>じぶん</rt></ruby>で<ruby>考<rt>かんが</rt></ruby>えてみてくださいね。</p>
<p>&nbsp;</p>
<h2><span id="toc12">まとめ</span></h2>
<p>「<ruby>暗号<rt>あんごう</rt></ruby><ruby>文<rt>ぶん</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ったり もどしたりする プログラム」の<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby>を <ruby>紹介<rt>しょうかい</rt></ruby>しました。</p>
<p><ruby>約束<rt>やくそく</rt></ruby>を<ruby>守<rt>まも</rt></ruby>って、みんなと<ruby>仲良<rt>なかよ</rt></ruby>く <ruby>楽<rt>たの</rt></ruby>しい <ruby>手紙<rt>てがみ</rt></ruby>の<ruby>交換<rt>こうかん</rt></ruby>を <ruby>楽<rt>たの</rt></ruby>しんでくださいね！</p>
<p>&nbsp;</p>
<div class="blogcard-type bct-related">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-braille/" title="【スクラッチ(Scratch)】点字のしくみの調べ学習にプログラミングをプラス！小学生向け自由研究" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【スクラッチ(Scratch)】点字のしくみの調べ学習にプログラミングをプラス！小学生向け自由研究</div><div class="blogcard-snippet internal-blogcard-snippet">自由研究におすすめ！Scratch（スクラッチ）を使って、アルファベットを点字に変換するプログラムの作り方を紹介。点字をテーマに調べ学習をしたときにチャレンジしてみてください！【リビングの魔王】ではプログラムの作り方を分かりやすく解説します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/scratch-secret-letter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【エラーで学ぶScratch】バグを自分で解決！デバッグの基礎を学ぼう</title>
		<link>https://living-maou.com/scratch-err/</link>
					<comments>https://living-maou.com/scratch-err/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Wed, 20 Mar 2024 04:49:52 +0000</pubDate>
				<category><![CDATA[Scratch]]></category>
		<category><![CDATA[本]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6561</guid>

					<description><![CDATA[本などを見ながらプログラミングを勉強している時、エラーをお手本とのまちがい探しで修正していませんか？ エラーの原因を見つけて修正する力は、プログラミングで不可欠な要素です。 本記事では『エラーで学ぶScratch まちが [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6562" src="https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error.jpg 800w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="information-box common-icon-box"><span class="fz-14px">このページにはアフィリエイトリンクが含まれています。</span></div>
<p><!-- リンクを介して商品を購入した場合、当ブログに報酬が支払われることがあります。またリンクから購入しても読者様のご負担はございません。 --></p>

<p>本などを見ながらプログラミングを勉強している時、エラーをお手本とのまちがい探しで修正していませんか？</p>
<p><span class="marker-under-red"><b>エラーの原因を見つけて修正する力</b>は、プログラミングで不可欠な要素</span>です。</p>
<p>本記事では『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4296070436">エラーで学ぶScratch まちがいを見つけてプログラミング初心者から抜け出そう<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』という本を紹介します。</p>
<p>この本は、Scratchでよくあるエラーを見つけて修正することで、プログラミング力を高めるための問題集です。</p>
<p>問題を解くことで、以下の力が身につきます。</p>
<div class="blank-box bb-blue">
<ul>
<li>エラーを見つける力</li>
<li>エラーを修正する力</li>
<li>プログラムを読む力</li>
<li>論理的思考力</li>
<li>問題解決能力</li>
</ul>
</div>
<p>Scratch経験のある小学校高学年以上の子や、プログラミング初心者の大人の方におすすめの一冊です。</p>
<p>&nbsp;</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/scratch-bookmatome/">Scratchがはじめての子向けの本<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、以下の記事で紹介しています。</p>
<div class="blogcard-type bct-related">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-bookmatome/" title="初心者向けおすすめ Scratch（スクラッチ）本3選 小学生のはじめてのプログラミング学習に" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">初心者向けおすすめ Scratch（スクラッチ）本3選 小学生のはじめてのプログラミング学習に</div><div class="blogcard-snippet internal-blogcard-snippet">子どもとScratchに挑戦したいけれど、どんな本を選んでいいか分からないと困っていませんか？この記事では小学生のはじめてのプログラミング学習にオススメのScratch本を紹介します。お子さんの興味や目的にあった本が見つかりますよ。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<h2><span id="toc1">エラーを見つけて解決することで思考力を鍛えられる</span></h2>
<p>今回紹介するのは、</p>
<div class="blank-box bb-blue">『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4296070436">エラーで学ぶScratch まちがいを見つけてプログラミング初心者から抜け出そう<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』<br />
（著者：中野 博幸　解説：堀田 龍也　監修：阿部 和広）</div>
<p>という本です。<br />
<!-- START MoshimoAffiliateEasyLink --><br />
<script type="text/javascript">
(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;
b[a]=b[a]||function(){arguments.currentScript=c.currentScript
||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};
c.getElementById(a)||(d=c.createElement(f),d.src=g,
d.id=a,e=c.getElementsByTagName("body")[0],e.appendChild(d))})
(window,document,"script","//dn.msmstatic.com/site/cardlink/bundle.js?20220329","msmaflink");
msmaflink({"n":"エラーで学ぶScratch まちがいを見つけてプログラミング初心者から抜け出そう","b":"日経BP","t":"","d":"https:\/\/m.media-amazon.com","c_p":"","p":["\/images\/I\/51xNiyYGXDL._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/4296070436","t":"amazon","r_v":""},"v":"2.1","b_l":[{"id":1,"u_tx":"Amazonで見る","u_bc":"#f79256","u_url":"https:\/\/www.amazon.co.jp\/dp\/4296070436","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":29,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%A7%E5%AD%A6%E3%81%B6Scratch%20%E3%81%BE%E3%81%A1%E3%81%8C%E3%81%84%E3%82%92%E8%A6%8B%E3%81%A4%E3%81%91%E3%81%A6%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E5%88%9D%E5%BF%83%E8%80%85%E3%81%8B%E3%82%89%E6%8A%9C%E3%81%91%E5%87%BA%E3%81%9D%E3%81%86\/","a_id":1820957,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":30,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%A7%E5%AD%A6%E3%81%B6Scratch%20%E3%81%BE%E3%81%A1%E3%81%8C%E3%81%84%E3%82%92%E8%A6%8B%E3%81%A4%E3%81%91%E3%81%A6%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E5%88%9D%E5%BF%83%E8%80%85%E3%81%8B%E3%82%89%E6%8A%9C%E3%81%91%E5%87%BA%E3%81%9D%E3%81%86","a_id":1832853,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"p5t2f","s":"s"});
</script></p>
<div id="msmaflink-p5t2f">リンク</div>
<p><span class="marker-under-red">エラーをわざと入れたプログラムを解読し、なぜエラーが発生したのか、そしてどのように修正すればよいのかを考えることで、より深くプログラミングを学ぶ</span>ことができます。</p>
<p>また、エラーを見つけて修正方法を考える過程は、プログラミング学習だけでなく、<span class="marker-under-red"><b>論理的思考力</b>と<b>問題解決能力</b>を鍛える絶好の機会</span>です。</p>
<p>課題や問題に直面した時に、冷静に分析して解決策を見つけ出す力は、プログラミングだけでなく、日常生活や仕事など様々な場面で役立ちます。</p>
<p>&nbsp;</p>
<h2><span id="toc2">Scratchだから論理エラーの解決に集中できる</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6563" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error01.png" alt="構文エラーと論理エラー" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error01.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>プログラミングのエラーには、大きく分けて2種類あります。</p>
<div class="blank-box bb-blue">
<ul>
<li>構文エラー：プログラミング言語のルールが守られていない</li>
<li>論理エラー：ルールは守っているのに、思った通りに動かない</li>
</ul>
</div>
<p>プログラミング言語にはルールがあり、そのルールを守らないと、コンピュータは理解できません。</p>
<p><span style="color: #ff6600;"><b>構文エラー</b></span>は、スペルミスや文法的な間違いなど、<span class="marker-under-red">プログラミング言語のルールを守っていない</span>コードがあると発生します。</p>
<p><span style="color: #ff6600;"><b>論理エラー</b></span>は、コード自体は<span class="marker-under-red">文法的に正しく書かれているのに、思った通りに動かない</span>場合に発生します。例えば、計算式や条件分岐が間違っている時に発生します。</p>
<p>論理エラーを特定するには、コードをていねいに読み解き、ロジックに誤りがないかを検証する必要があるため、よく考える練習にピッタリです。</p>
<p>ビジュアルプログラミング言語の<b>Scratch（スクラッチ）</b>は、ブロックを組み合わせてプログラムを作成するので、構文エラーが発生しにくいのが特徴。</p>
<p>そのため、<span class="marker-under-red">論理エラーの解決に集中できる</span>のがとてもいいと思いました。</p>
<p>&nbsp;</p>
<p><span class="badge badge-blue">関連記事</span> <a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">子ども向けプログラミング言語「スクラッチ(Scratch)」の始め方<span class="fa fa-external-link internal-icon anchor-icon"></span></a></p>
<h2><span id="toc3">Scratch経験のある小学校高学年以上の人におすすめ</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error02.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6564" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error02.jpg" alt="エラーで学ぶScratch" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error02.jpg 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error02-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4296070436">エラーで学ぶScratch<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』では、変数の初期化や条件のまちがいなど、プログラミングでよくあるエラーが出題されます。</p>
<p>5つのパートに分かれており、少しずつ難易度が上がっていきます。</p>
<div class="blank-box bb-blue">
<ul>
<li>パート1：変数と演算（7問）</li>
<li>パート2：繰り返し（15問）</li>
<li>パート3：条件分岐（15問）</li>
<li>パート4：ペン・リスト（9問）</li>
<li>パート5：難問に挑戦しよう（4問）</li>
</ul>
</div>
<p>パート1～4では基本的な問題を扱っており、小学生にもおすすめです。</p>
<p>パート5のチャレンジ問題は、複数のエラーがあるなど、難しい問題に挑戦できます。</p>
<p>しかし、ふりがなが振られていないため、小学校低学年の子どもには読みづらいと感じました。</p>
<p>さらに、Scratchのブロックの仕様をある程度理解している必要があります。文字列や<a rel="noopener" target="_self" href="https://living-maou.com/scratch-variable/">変数<span class="fa fa-external-link internal-icon anchor-icon"></span></a>、<a rel="noopener" target="_self" href="https://living-maou.com/scratch-list/">リスト<span class="fa fa-external-link internal-icon anchor-icon"></span></a>などの用語や概念にも理解が必要です。</p>
<p>そのため、この問題集は<span class="marker-under-red">Scratch経験のある小学校高学年以上の子や、プログラミング初心者の大人の方におすすめ</span>します。</p>
<p>&nbsp;</p>
<h2><span id="toc4">問題を解く手順</span></h2>
<p>『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4296070436">エラーで学ぶScratch<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』の問題を解く手順を紹介します。</p>
<div class="blank-box bb-blue">
<ol>
<li><a href="#step1">正しい結果を確認する</a></li>
<li><a href="#step2">問題のプログラムを動かして結果を見る</a></li>
<li><a href="#step3">問題のプログラムを見て、間違っている場所を特定する</a></li>
<li><a href="#step4">解決案を考える</a></li>
<li><a href="#step5">プログラムを直して動かしてみる</a></li>
</ol>
</div>
<p>&nbsp;</p>
<h3 id="step1"><span id="toc5">1. 正しい結果を確認する</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6565" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error03.png" alt="正しい結果を確認する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error03.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>問題文に記載されている正しい結果を確認しましょう。</p>
<p><span class="marker-under-red">どのような動きをするプログラムなのかを理解する</span>ことが重要です。</p>
<p>&nbsp;</p>
<h3 id="step2"><span id="toc6">2. 問題のプログラムを動かして結果を見る</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6566" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error04.png" alt="プログラムを動かして結果を見る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error04.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>問題ページの下にあるScratchのサイトURLまたはQRコードからプロジェクトにアクセスし、プログラムを動かしてみましょう。</p>
<p>実際に動かしてみることで、問題がある場所を見つけやすくなります。</p>
<p>&nbsp;</p>
<h3 id="step3"><span id="toc7">3. 問題のプログラムを見て間違っている場所を特定する</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6567" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error05.png" alt="間違っている場所を特定する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error05.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>正しい結果と実際の結果を比べて、プログラムのどこが間違っているのかを特定しましょう。</p>
<p>ブロックの順番や、判定条件、変数がどう変わるのかなどを確認します。</p>
<p>&nbsp;</p>
<h3 id="step4"><span id="toc8">4. 解決案を考える</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6568" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error06.png" alt="解決案を考える" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error06.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>間違っている場所を特定したら、どのように修正すれば正しい結果になるのか考えましょう。</p>
<p>解決策がひとつとは限りません。いくつか方法を考えてみてください。</p>
<p>&nbsp;</p>
<h3 id="step5"><span id="toc9">5. プログラムを直して動かしてみる</span></h3>
<p>考えた解決策を、プログラムに反映させます。</p>
<p>解決策が複数ある場合は、分かりやすさや修正のしやすさなどを考えて選んでみてください。</p>
<p>修正後プログラムを動かして、正しい結果になるかどうかを確認しましょう。</p>
<p>&nbsp;</p>
<h3><span id="toc10">さらにチャレンジ</span></h3>
<p>自信のある人は、本に掲載されている<span class="marker-under-red">プログラムだけを見て、間違っている場所を見つけてみる</span>のもおすすめです。</p>
<p>コードを一文ずつていねいに読み解く必要があるので、より思考力を鍛えられます。</p>
<p>&nbsp;</p>
<h2><span id="toc11">エラーを特定するコツ</span></h2>
<p>プログラムでエラーが発生したとき、初心者にとって原因を特定するのは難しい場合があります。</p>
<p>『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4296070436">エラーで学ぶScratch<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』では、エラーを特定するためのいくつかのコツが紹介されています。</p>
<div class="blank-box bb-blue">
<ul>
<li>思い込みを疑う</li>
<li>変数を表示する</li>
<li>長いプログラムは分割する</li>
<li>条件分岐は境目の値で確認する</li>
<li>乱数を使う場合には範囲を狭めて確認する</li>
</ul>
</div>
<p>&nbsp;</p>
<p>上記のポイントに加えて、以下の2つの方法を紹介します。</p>
<div class="blank-box bb-blue">
<ul>
<li><a href="#point1">ルートを確認する</a></li>
<li><a href="#point2">コメントを入れる</a></li>
</ul>
</div>
<p>&nbsp;</p>
<h3 id="point1"><span id="toc12">ルートの確認</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6569" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error07.png" alt="ルートを確認する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error07.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>分岐の多いプログラムでは、どのルートを通っているのか分かりにくいことがあります。</p>
<p><span class="marker-under-red">「〇〇と言う」ブロックを追加する</span>ことで、どのルートを通っているのか確認しやすくなります。</p>
<p>&nbsp;</p>
<h3 id="point2"><span id="toc13">コメントを入れる</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6570" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error08.png" alt="コメントを入れる" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error08.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>長いプログラムを読んでいると、どこで何が起こっているか分かりにくくなります。</p>
<p><span class="marker-under-red">処理のまとまりごとにコメントを追加する</span>ことで、プログラムの流れを理解しやすくなり、問題を見つけやすくなります。</p>
<p>原因特定には時間がかかる場合もあります。諦めずに粘り強く調査を続けましょう。</p>
<p>&nbsp;</p>
<h2><span id="toc14">まとめ</span></h2>
<p>『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4296070436">エラーで学ぶScratch まちがいを見つけてプログラミング初心者から抜け出そう<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』を紹介しました。</p>
<p><span class="marker-under-red">プログラムのまちがいを見つけて修正する作業</span>を<span style="color: #ff6600;"><b>デバッグ</b></span>といいます。</p>
<p><span class="marker-under-red">プログラムのまちがい</span>のことを<span style="color: #ff6600;"><b>バグ(bug)</b></span>といいます。それを取り除く作業（de）なので、デバッグ(debug)と呼ばれています。</p>
<p>デバッグは、プログラミング学習で不可欠な要素です。</p>
<p>デバッグを通して、プログラミングの理解を深め、論理的思考力と問題解決能力を鍛えましょう！</p>
<p>&nbsp;</p>
<p>下の記事では、<a rel="noopener" target="_self" href="https://living-maou.com/scratch-test/">プログラムのテスト方法<span class="fa fa-external-link internal-icon anchor-icon"></span></a>を簡単な形に小学生向けにアレンジして紹介しています。テストをすることで、プログラムの間違いを見つけることができます。ぜひ参考にしてみてください。</p>
<div class="blogcard-type bct-together">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-test/" title="【子ども向け】プログラムもテストするって本当？バグを見つけよう！" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【子ども向け】プログラムもテストするって本当？バグを見つけよう！</div><div class="blogcard-snippet internal-blogcard-snippet">プログラムが正しく動くか確認するためのテスト方法をわかりやすく解説。【リビングの魔王】では小学生向けにテストの準備から実行、結果の評価まで丁寧に紹介します。プログラミング学習だけでなく、論理的思考力と問題解決能力を鍛えられます。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p><!-- START MoshimoAffiliateEasyLink --><br />
<script type="text/javascript">
(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;
b[a]=b[a]||function(){arguments.currentScript=c.currentScript
||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};
c.getElementById(a)||(d=c.createElement(f),d.src=g,
d.id=a,e=c.getElementsByTagName("body")[0],e.appendChild(d))})
(window,document,"script","//dn.msmstatic.com/site/cardlink/bundle.js?20220329","msmaflink");
msmaflink({"n":"エラーで学ぶScratch まちがいを見つけてプログラミング初心者から抜け出そう","b":"日経BP","t":"","d":"https:\/\/m.media-amazon.com","c_p":"","p":["\/images\/I\/51xNiyYGXDL._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/4296070436","t":"amazon","r_v":""},"v":"2.1","b_l":[{"id":1,"u_tx":"Amazonで見る","u_bc":"#f79256","u_url":"https:\/\/www.amazon.co.jp\/dp\/4296070436","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":29,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%A7%E5%AD%A6%E3%81%B6Scratch%20%E3%81%BE%E3%81%A1%E3%81%8C%E3%81%84%E3%82%92%E8%A6%8B%E3%81%A4%E3%81%91%E3%81%A6%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E5%88%9D%E5%BF%83%E8%80%85%E3%81%8B%E3%82%89%E6%8A%9C%E3%81%91%E5%87%BA%E3%81%9D%E3%81%86\/","a_id":1820957,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":30,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%A7%E5%AD%A6%E3%81%B6Scratch%20%E3%81%BE%E3%81%A1%E3%81%8C%E3%81%84%E3%82%92%E8%A6%8B%E3%81%A4%E3%81%91%E3%81%A6%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E5%88%9D%E5%BF%83%E8%80%85%E3%81%8B%E3%82%89%E6%8A%9C%E3%81%91%E5%87%BA%E3%81%9D%E3%81%86","a_id":1832853,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"p5t2f","s":"s"});
</script></p>
<div id="msmaflink-p5t2f">リンク</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/scratch-err/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ビジュアルプログラミングで楽しく学ぶ！おすすめ小学生向け教材9選</title>
		<link>https://living-maou.com/teaching-material-visual/</link>
					<comments>https://living-maou.com/teaching-material-visual/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Tue, 06 Feb 2024 01:28:24 +0000</pubDate>
				<category><![CDATA[ビジュアルプログラミング]]></category>
		<category><![CDATA[CodeMonkey]]></category>
		<category><![CDATA[GLICODE]]></category>
		<category><![CDATA[Minecraft]]></category>
		<category><![CDATA[Scratch]]></category>
		<category><![CDATA[Springin]]></category>
		<category><![CDATA[Viscuit]]></category>
		<category><![CDATA[はじめてゲームプログラミング]]></category>
		<category><![CDATA[アルゴロジック]]></category>
		<category><![CDATA[アワーオブコード]]></category>
		<category><![CDATA[ゲーム]]></category>
		<category><![CDATA[プログラミング教材]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6434</guid>

					<description><![CDATA[ビジュアルプログラミングは、ブロックやタイルの形をした命令を組み合わせてプログラミングを行う方法です。 文字や記号を覚える必要がなく、直感的にプログラミングを学べるのが特徴。 無料で利用できる教材も多いので、家庭のパソコ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6435" src="https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual.png" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual.png 800w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><b>ビジュアルプログラミング</b>は、<span class="marker-under-red">ブロックやタイルの形をした命令を組み合わせてプログラミングを行う方法</span>です。</p>
<p>文字や記号を覚える必要がなく、直感的にプログラミングを学べるのが特徴。</p>
<p>無料で利用できる教材も多いので、家庭のパソコンやタブレットで気軽に始められますよ。</p>
<p>一方、種類が多いので、子どもの年齢や興味に合った教材を選びたいけれど、<b>どれを選べばいいか分からない</b>と悩みませんか？</p>
<p>この記事では、おすすめのビジュアルプログラミング教材を紹介します。</p>
<p>ビジュアルプログラミングの教材を<a href="#type1">プログラミングツール</a>、<a href="#type2">ドリル型教材</a>、<a href="#type3">ゲーム</a>、3つのタイプに分け、各タイプの特徴とメリット・デメリットを紹介します。</p>
<p>ぜひ、お子さんのプログラミング学習の参考にしてみてください。</p>
<div class="blogcard-type bct-related">

<a rel="noopener" target="_self" href="https://living-maou.com/teaching-material/" title="学び好きな子に育つ！考えて作る楽しさを味わえるプログラミング玩具7選" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">学び好きな子に育つ！考えて作る楽しさを味わえるプログラミング玩具7選</div><div class="blogcard-snippet internal-blogcard-snippet">子ども向けのプログラミング教材やおもちゃは種類や難易度がさまざま。どれを選べばいいのか迷ってしまいませんか？【リビングの魔王】では年齢や興味関心に合わせて選ぶポイントや、おすすめの教材・おもちゃを紹介。プログラミング学習の参考にしてみてください。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<h2><span id="toc1">ビジュアルプログラミングの教材3つのタイプ</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6436" src="https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual.png" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual.png 800w, https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ビジュアルプログラミングの教材は、大きく3つのタイプに分けられます。</p>
<div class="blank-box bb-blue">
<ul>
<li>自由に作品を作れる<a href="#type1">プログラミングツール</a></li>
<li>問題を解く<a href="#type2">ドリル型の教材</a></li>
<li>プログラミングを学べる<a href="#type3">ゲーム</a></li>
</ul>
</div>
<p>各タイプの特徴とメリット・デメリットを紹介します。</p>
<p>&nbsp;</p>
<h3 id="type1"><span id="toc2">プログラミングツール</span></h3>
<p><b>プログラミングツール</b>は、命令ブロックをなど組み合わせて、<span class="marker-under-red">自由にゲームやアニメーション、音楽などを作って楽しめる教材</span>です。</p>
<p>プログラミング初心者でも直感的に理解しやすいため、自由な発想でプログラミングを学ぶことができます。</p>
<p>また、子どもの創造性や表現力を育むことにも期待できます。ただし、作品を作りあげるためには、ある程度の集中力が必要です。</p>
<p><a href="#tool">↓おすすめのプログラミングツールをみる</a></p>
<p>&nbsp;</p>
<h3 id="type2"><span id="toc3">ドリル型の教材</span></h3>
<p><b>ドリル型の教材</b>は、<span class="marker-under-red">問題を解きながら、順を追ってプログラミングの基礎を学ぶ</span>ことができます。</p>
<p>問題解決力や論理的思考力を向上させ、手順やアルゴリズムの理解を強化できます。</p>
<p>また、短時間で効率的に学べる反面、創造性や表現力を育むのに向いていません。</p>
<p><a href="#drill">↓おすすめのドリル型教材をみる</a></p>
<p>&nbsp;</p>
<h3 id="type3"><span id="toc4">プログラミングを学べるゲーム</span></h3>
<p>プログラミングの基礎を学べる<b>ゲーム</b>も数多くあります。</p>
<p>ゲームにハマれば、プログラミングへの興味や関心が高まりますが、ゲームの難易度によっては、挫折してしまう場合も。</p>
<p>子どものレベルに合った難易度のゲームを選ぶとよいでしょう。</p>
<p><a href="#game">↓おすすめのプログラミングゲームをみる</a></p>
<p>&nbsp;</p>
<h2 id="tool"><span id="toc5">おすすめプログラミングツール</span></h2>
<p>おすすめのプログラミングツールを3つ紹介します。</p>
<div class="scrollable-table"><table>
<tbody>
<tr>
<th>プログラミング教材</th>
<th>対象年齢</th>
<th>特徴</th>
</tr>
<tr>
<td><a href="#viscuit">Viscuit</a></td>
<td align="center">4歳～</td>
<td>メガネというしくみで絵を動かす</td>
</tr>
<tr>
<td><a href="#springin">Springin&#8217;</a></td>
<td align="center">6歳～</td>
<td>属性を組み合わせ絵に動きをつける</td>
</tr>
<tr>
<td><a href="#scratch">Scratch</a></td>
<td align="center">8歳～</td>
<td>ブロックを組み合わせてプログラミング</td>
</tr>
</tbody>
</table></div>
<p>&nbsp;</p>
<h3 id="viscuit"><span id="toc6">Viscuit（ビスケット）</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01.png" alt="あたらしいビスケット" width="800" height="450" class="aligncenter size-full wp-image-7259" srcset="https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01.png 800w, https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a><br />
<a rel="noopener" target="_blank" href="https://www.viscuit.com/">Viscuit（ビスケット）<span class="fa fa-external-link external-icon anchor-icon"></span></a>は、「<b>めがね</b>」というしくみを使って、自分で描いた絵を動かすプログラミング言語です。パソコンやタブレットから無料で利用できます。</p>
<p>プログラミングは、絵を描いて左右のメガネに入れるだけ。<span class="marker-under-red">覚えることが少ないので、字が読めない小さな子でも使いこなせます。</span></p>
<p>小さな子どもでも使えるレベルだと、大したことができないように思われるかもしれません。</p>
<p>しかし、組み合わせしだいでアニメーションから複雑なゲームまで、さまざまな作品を作ることができます。とても奥が深いプログラミング言語です。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/viscuit2025-matome/" title="【最新版】あたらしいビスケットの使い方まとめ！プログラミングで遊ぼう" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-160x90.png" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-320x180.png 320w, https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01.png 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【最新版】あたらしいビスケットの使い方まとめ！プログラミングで遊ぼう</div><div class="blogcard-snippet internal-blogcard-snippet">ビスケット（Viscuit）は かんたんにプログラミングができる楽しいアプリです。「めがね」のしくみを使って絵を動かしたりゲームを作ったりできます。この記事では基本の使い方から便利なテクニックまでをわかりやすくまとめました。最新アップデートにも対応！</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3 id="springin"><span id="toc7">Springin’（スプリンギン）</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-2539" src="https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01.jpg" alt="Springin'" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01.jpg 800w, https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/springin-start/">Springin’（スプリンギン）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、<b>属性アイコン</b>を組み合わせてゲームや絵本を作るプログラミングアプリです。スマホ・タブレットから利用できます。</p>
<p>かんたんな操作で、さまざまな仕組みを作ることができます。</p>
<p><span class="marker-under-red">絵を描いたり、ピタゴラ装置を作ったりすることが好きな子におすすめ</span>です。</p>
<p>また、企業や団体とコラボレーションしたコンテストをよく開催しています。作った作品を披露することで、プログラミングへの熱意を高めることができます。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/springin-start/" title="【基本無料】プログラミングアプリ「Springin&#039;（スプリンギン）」の使い方" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start.jpg 800w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-320x180.jpg 320w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【基本無料】プログラミングアプリ「Springin'（スプリンギン）」の使い方</div><div class="blogcard-snippet internal-blogcard-snippet">Springin&#039;（スプリンギン）は絵や写真に音や動きをつけられる属性を組み合わせるだけでゲームや絵本を作ることができるプログラミングアプリ。【リビングの魔王】では初めてのSpringin&#039;を使う人に向けて基本的な使い方を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3 id="scratch"><span id="toc8">Scratch（スクラッチ）</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-527" src="https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01.png" alt="スクラッチで正五角形を描く" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01.png 800w, https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">Scratch（スクラッチ）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、アメリカのマサチューセッツ工科大学（MIT）メディアラボが、8～16歳の子ども向けに開発したプログラミング言語です。</p>
<p>命令ブロックを組み合わせてアニメーションやゲームを作ることができます。</p>
<p><span class="marker-under-red">小学生のプログラミングの教材に迷ったら、Scratchから始めれば間違いありません。</span></p>
<p>理由は3つあります。</p>
<div class="blank-box bb-blue">
<ul>
<li>多くの小学校の授業で利用されている</li>
<li>情報が多い（本、インターネット）</li>
<li>学んだことをほかの教材でも活かせる</li>
</ul>
</div>
<p>分からないことがあったらすぐ調べられることと、Scratchが分かれば他の教材もすぐに使いこなすことができることが強みです。</p>
<p>下の記事では<a rel="noopener" target="_self" href="https://living-maou.com/scratch-bookmatome/">おすすめのScratch本<span class="fa fa-external-link internal-icon anchor-icon"></span></a>を紹介しています。よかったら参考にしてみてください。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-bookmatome/" title="初心者向けおすすめ Scratch（スクラッチ）本3選 小学生のはじめてのプログラミング学習に" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">初心者向けおすすめ Scratch（スクラッチ）本3選 小学生のはじめてのプログラミング学習に</div><div class="blogcard-snippet internal-blogcard-snippet">子どもとScratchに挑戦したいけれど、どんな本を選んでいいか分からないと困っていませんか？この記事では小学生のはじめてのプログラミング学習にオススメのScratch本を紹介します。お子さんの興味や目的にあった本が見つかりますよ。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2 id="drill"><span id="toc9">おすすめのドリル型教材</span></h2>
<p>おすすめのドリル型教材を3つ紹介します。</p>
<div class="scrollable-table"><table>
<tbody>
<tr>
<th>プログラミング教材</th>
<th>対象年齢</th>
<th>特徴</th>
</tr>
<tr>
<td><a href="#cmjr">コードモンキーJr.</a></td>
<td align="center">4歳～</td>
<td>おサルさんをバナナや宝箱まで行けるようにお手伝い</td>
</tr>
<tr>
<td><a href="#hoc">Hour of Code</a></td>
<td align="center">6歳～</td>
<td>1時間でプログラミングを体験できるアクティビティ</td>
</tr>
<tr>
<td><a href="#algo">アルゴロジック</a></td>
<td align="center">6歳～</td>
<td>全部のハタを取るようにロボットへ指示を出す</td>
</tr>
</tbody>
</table></div>
<p>&nbsp;</p>
<h3 id="cmjr"><span id="toc10">コードモンキーJr.</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1862" src="https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01.png" alt="コードモンキーJr." width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01.png 800w, https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>コードモンキー（CodeMonkey）は、イスラエル生まれのプログラミング学習教材。</p>
<p>「<a rel="noopener" target="_self" href="https://living-maou.com/codemonkey-jr/">コードモンキーJr.<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」は未就学児～小学校低学年向けのコースで、一部を無料体験できます。</p>
<p>矢じるしのアイコンブロックをならべるだけでプログラミングできるので、<span class="marker-under-red">読み書きができない子でも感覚的に理解できます</span>。</p>
<p>子どもが自習形式で学ぶことができるので、親にプログラミングの知識がなくても大丈夫です。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/codemonkey-jr/" title="【コードモンキー無料体験】4～6歳の子ども向けプログラミング教材「コードモンキーJr.」" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr.jpg 800w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-320x180.jpg 320w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【コードモンキー無料体験】4～6歳の子ども向けプログラミング教材「コードモンキーJr.」</div><div class="blogcard-snippet internal-blogcard-snippet">コードモンキーはイスラエル生まれのプログラミング教材。世界中で様々な年齢の方に利用されています。「コードモンキーJr.」は小学校就学前から学べるコース。【リビングの魔王】ではコードモンキーJr.を無料体験する方法や基本的な使い方を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3 id="hoc"><span id="toc11">Hour of Code（アワーオブコード）</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6033" src="https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01.png" alt="アワーオブコード（アナ雪）lesson1" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01.png 800w, https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/hourofcode-howto/">Hour of Code（アワーオブコード）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、段階的にプログラミングの基本を学べる学習サイトです。</p>
<p>ディズニーやマインクラフトなどの人気キャラクターと楽しみながら学べます。</p>
<p>また、<span class="marker-under-red">ひとつのコースにつき約1時間で終わるように設計</span>されています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/hourofcode-howto/" title="マイクラやアナ雪のキャラとプログラミング「アワーオブコード」の使い方" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">マイクラやアナ雪のキャラとプログラミング「アワーオブコード」の使い方</div><div class="blogcard-snippet internal-blogcard-snippet">「アワーオブコード(Hour of Code)」は、1時間のプログラミング学習を目的にしたサイトです。アナ雪やマイクラなどの人気キャラクターとプログラミングを学ぶことができます。【リビングの魔王】では、アワーオブコードの使い方を分かりやすく紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3 id="algo"><span id="toc12">アルゴロジック</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/03/algoLogic01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1794" src="https://living-maou.com/wp-content/uploads/2021/03/algoLogic01.png" alt="アルゴロジック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/03/algoLogic01.png 800w, https://living-maou.com/wp-content/uploads/2021/03/algoLogic01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2021/03/algoLogic01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/03/algoLogic01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2021/03/algoLogic01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/03/algoLogic01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/03/algoLogic01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/algologic/">アルゴロジック<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、課題解決型のゲームを通して、プログラミングの基本的な考え方を学ぶ教材です。</p>
<p>コマンドブロックを組み合わせてロボットに指示を出し、全部のハタを取るまたは線をなぞることができたらクリアです。</p>
<p><span class="marker-under-red">パズルゲームで遊ぶ感覚で、プログラミングを学べます</span>。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/algologic/" title="【無料】ゲーム感覚でプログラミングを体験できる「アルゴロジック」" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-160x90.png" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-500x281.png 500w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-768x432.png 768w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-320x180.png 320w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1.png 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【無料】ゲーム感覚でプログラミングを体験できる「アルゴロジック」</div><div class="blogcard-snippet internal-blogcard-snippet">「アルゴロジック」は子どもから大人まで楽しめるプログラミング体験ゲーム。プログラミングの基本的な考え方である順次処理、くり返し処理、分岐処理を学ぶことができます。【リビングの魔王】ではアルゴロジックの遊び方やルールなどを紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2 id="game"><span id="toc13">おすすめのプログラミングゲーム</span></h2>
<p>おすすめのプログラミングゲームを3つ紹介します。</p>
<div class="scrollable-table"><table>
<tbody>
<tr>
<th>ゲーム</th>
<th>PF</th>
<th>対象年齢</th>
<th>特徴</th>
</tr>
<tr>
<td><a href="#glicode">GLICODE</a></td>
<td align="center">iOS/Android/<br />
ChromeOS</td>
<td align="center">3歳～</td>
<td>ポッキーをならべてプログラミング</td>
</tr>
<tr>
<td><a href="#navituku">ナビつき！つくってわかるはじめてゲームプログラミング</a></td>
<td align="center">Switch</td>
<td align="center">6歳～</td>
<td>任天堂から生まれたゲームづくりを体験できるソフト</td>
</tr>
<tr>
<td><a href="#minecraft">Minecraft</a></td>
<td align="center">PC、Switch<br />
など</td>
<td align="center">全年齢</td>
<td>建築したり冒険したりできるサンドボックスゲーム</td>
</tr>
</tbody>
</table></div>
<p>&nbsp;</p>
<h3 id="glicode"><span id="toc14">GLICODE（グリコ―ド）</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/04/glicode04.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1890" src="https://living-maou.com/wp-content/uploads/2021/04/glicode04.jpg" alt="グリコ―ド　プレイをおす" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/04/glicode04.jpg 800w, https://living-maou.com/wp-content/uploads/2021/04/glicode04-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/04/glicode04-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/04/glicode04-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/04/glicode04-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/04/glicode04-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/04/glicode04-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/glicode/">GLICODE(グリコ―ド)<span class="fa fa-external-link internal-icon anchor-icon"></span></a>とは、お菓子メーカーのグリコが開発した子ども向けのプログラミング学習アプリ。無料で利用できます。</p>
<p>オリジナルキャラクターのハグハグを泣いている子どものところまでプログラミングでつれていき、ハグで笑顔にするゲームです。</p>
<p><span class="marker-under-red">プログラミングの方法は、なんとポッキーをならべてカメラで撮るだけ！</span></p>
<p>おやつタイムをプログラミングの時間にしてみませんか？</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/glicode/" title="【無料】ポッキーでプログラミングを学べるアプリ「グリコ―ド(GLICODE)」" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【無料】ポッキーでプログラミングを学べるアプリ「グリコ―ド(GLICODE)」</div><div class="blogcard-snippet internal-blogcard-snippet">グリコ―ド（GLICODE）はお菓子メーカーのグリコが開発した子ども向けのプログラミング学習アプリ。ポッキーを使って誰でも楽しくプログラミングを学べます。【リビングの魔王】ではグリコ―ドの遊び方や考え方のポイントを紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3 id="navituku"><span id="toc15">ナビつき！つくってわかるはじめてゲームプログラミング</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-2144" src="https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03.jpg" alt="ナビつきレッスン　プログラミング画面" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03.jpg 800w, https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/hajipro-review/">ナビつき！つくってわかるはじめてゲームプログラミング<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、<span class="marker-under-red">任天堂の開発室から生まれたプログラミングソフト</span>です。</p>
<p>Nintendo Switchの中に暮らす不思議な生き物ノードンを組み合わせて、ゲームづくりを体験できます。</p>
<p>自分で作った料理が不思議と美味しく感じるように、ゲームも自分で作ったものだとより面白く感じます。</p>
<p>ぜひ、親子でゲームを作って一緒に遊んでみてください。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/hajipro-review/" title="【Switch】小学生でもできる？カードは必要？「ナビつき！つくってわかるはじめてゲームプログラミング」レビュー" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【Switch】小学生でもできる？カードは必要？「ナビつき！つくってわかるはじめてゲームプログラミング」レビュー</div><div class="blogcard-snippet internal-blogcard-snippet">この記事では、Nintendo Switch用ソフト「ナビつき！つくってわかるはじめてゲームプログラミング」について紹介します。「小学生にもできるの？」「カードつきの方を買った方がいい？」と気になっている方の参考になればと嬉しいです。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3 id="minecraft"><span id="toc16">Minecraft（マインクラフト）</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-2118" src="https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05.jpg" alt="マイクラ　Agent（エージェント）" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05.jpg 800w, https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/minecraft-tutorial_matome/">Minecraft（マインクラフト）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、立方体のブロックで建物を作ったり、冒険へ出かけたりするサンドボックスゲームです。</p>
<p>最近では、子どもがプログラミングを学ぶための教材としても注目されています。</p>
<p>コマンドブロックで色々な仕掛けを作ったり、プログラミングをしたりすることができるので、<span class="marker-under-red">ゲームで遊びながら創造性や問題解決力、論理的思考力を養うことができます</span>。</p>
<p>マイクラが好きな子であれば、最初からモチベーションが高い状態で学習をはじめられるのが強み。</p>
<p>マイクラは、ゲーム機やPCなどさまざまなプラットフォームでプレイできますが、プログラミングの学習をするのであれば、PC版がおすすめです（<a rel="noopener" target="_self" href="https://living-maou.com/minecraft-howtobuy/">PC版の購入方法はこちら<span class="fa fa-external-link internal-icon anchor-icon"></span></a>）</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/minecraft-tutorial_matome/" title="【統合版／Java版】マインクラフトでプログラミングする方法まとめ" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【統合版／Java版】マインクラフトでプログラミングする方法まとめ</div><div class="blogcard-snippet internal-blogcard-snippet">大人気ゲーム「マインクラフト」は、子供がプログラミングを学ぶための教材としても注目されています。挑戦してみたいけれどやり方が分からない…という人のために、この記事ではマインクラフトでプログラミングを始める方法を分かりやすくまとめました。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2><span id="toc17">まとめ</span></h2>
<p>小学生におすすめのビジュアルプログラミング教材を紹介しました。</p>
<p>タイピングができない子でも、かんたんにプログラミングを行うことができます。スペルミスによるエラーがないので、プログラミングの楽しさや可能性を体験しやすいのがメリット。</p>
<p>ただし、複雑な処理を行うにはコードが長くなってしまい、検索や修正がやりにくいことがあります。</p>
<p>ビジュアルプログラミングに慣れてきて、やりにくさを感じてきたら、テキストプログラミングにもチャレンジしてみるとよいでしょう。</p>
<p>ぜひお子さんと一緒に遊ぶことからはじめて、プログラミングの楽しさや面白さを実感してみてくださいね。</p>
<p>&nbsp;</p>
<p>……と言っても、</p>
<div class="blank-box bb-blue">
<ul>
<li>子どもと一緒にプログラミングをする時間がない</li>
<li>パソコンが苦手で子どもをフォローできない</li>
</ul>
</div>
<p>こんなことで悩みませんか？</p>
<p>しかも、2025年から<span style="color: #ff6600;"><b>大学入学共通テストの教科に「情報」</b></span>が新設されます。</p>
<p>早くから子どもにプログラミングを経験させた方がいいのではないか…と不安になりますよね。</p>
<p>そんな方は、プログラミング教室を検討してみてはいかがでしょうか。</p>
<p>こちらの記事では<a rel="noopener" target="_self" href="https://living-maou.com/programming-school/">プログラミング教室の選び方とおすすめの教室<span class="fa fa-external-link internal-icon anchor-icon"></span></a>を紹介しています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/programming-school/" title="動画ばかりで集中できない子に。「見る」から「創る」へ変える小学生向けプログラミング教室4選" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">動画ばかりで集中できない子に。「見る」から「創る」へ変える小学生向けプログラミング教室4選</div><div class="blogcard-snippet internal-blogcard-snippet">「子どもにプログラミングを学ばせたいけれど教えてあげられない…」と悩みませんか？教室に通わせてもすぐやめたいと言われたら困りますし、時間もお金もかかるからこそ慎重に選びたいですよね。この記事では「教室を選ぶポイント」と「おすすめの教室」を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>ほとんどの教室で<b>無料体験授業</b>を開催しています。</p>
<p>まずは体験授業で雰囲気を確認して、お子さんにあった教室を探してみてくださいね。</p>

]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/teaching-material-visual/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【子ども向け】プログラミングの基本構造とは？順次、分岐、反復について学ぼう！</title>
		<link>https://living-maou.com/control-structure/</link>
					<comments>https://living-maou.com/control-structure/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Fri, 19 Jan 2024 23:16:01 +0000</pubDate>
				<category><![CDATA[用語解説]]></category>
		<category><![CDATA[Scratch]]></category>
		<category><![CDATA[用語]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6318</guid>

					<description><![CDATA[プログラミングの基本きほん構造こうぞうとは、プログラミングの流ながれを決きめる3つの考かんがえ方かたです。 順次じゅんじ：順番じゅんばんに命令めいれいを実行じっこうすること 分岐ぶんき：条件じょうけんによって処理しょりを [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6319" src="https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure.jpg 800w, https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><span style="color: #ff6600;"><b>プログラミングの<ruby>基本<rt>きほん</rt></ruby><ruby>構造<rt>こうぞう</rt></ruby></b></span>とは、プログラミングの<ruby>流<rt>なが</rt></ruby>れを<ruby>決<rt>き</rt></ruby>める3つの<ruby>考<rt>かんが</rt></ruby>え<ruby>方<rt>かた</rt></ruby>です。</p>
<div class="blank-box bb-blue">
<ul>
<li><a href="#sequential"><ruby>順次<rt>じゅんじ</rt></ruby>：<ruby>順番<rt>じゅんばん</rt></ruby>に<ruby>命令<rt>めいれい</rt></ruby>を<ruby>実行<rt>じっこう</rt></ruby>すること</a></li>
<li><a href="#conditional"><ruby>分岐<rt>ぶんき</rt></ruby>：<ruby>条件<rt>じょうけん</rt></ruby>によって<ruby>処理<rt>しょり</rt></ruby>を<ruby>変<rt>か</rt></ruby>えること</a></li>
<li><a href="#iterative"><ruby>反復<rt>はんぷく</rt></ruby>：<ruby>同<rt>おな</rt></ruby>じ<ruby>処理<rt>しょり</rt></ruby>をくり<ruby>返<rt>かえ</rt></ruby>すこと</a></li>
</ul>
</div>
<p>これらの<ruby>基本<rt>きほん</rt></ruby><ruby>構造<rt>こうぞう</rt></ruby>を<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせることで、さまざまなプログラムを<ruby>作<rt>つく</rt></ruby>ることができます。</p>
<p>この<ruby>記事<rt>きじ</rt></ruby>では、<ruby>順次<rt>じゅんじ</rt></ruby>・<ruby>分岐<rt>ぶんき</rt></ruby>・<ruby>反復<rt>はんぷく</rt></ruby>の3つの<ruby>構造<rt>こうぞう</rt></ruby>について、<ruby>子<rt>こ</rt></ruby>ども<ruby>向<rt>む</rt></ruby>けに<ruby>身近<rt>みぢか</rt></ruby>な<ruby>例<rt>れい</rt></ruby>を<ruby>交<rt>まじ</rt></ruby>えて<ruby>解説<rt>かいせつ</rt></ruby>します。</p>
<p>&nbsp;</p>
<h2><span id="toc1">プログラミングとは</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6320" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01.png" alt="プログラミングとは" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><span style="color: #ff6600;"><b>プログラミング</b></span>とは、<span class="marker-under-red">コンピュータに「<ruby>何<rt>なに</rt></ruby>をすればいいのか」を<ruby>教<rt>おし</rt></ruby>えるための<ruby>手順<rt>てじゅん</rt></ruby>を<ruby>作<rt>つく</rt></ruby>る</span>ことです。</p>
<p><span>スマホ</span><span>や</span><span>パソコン</span><span>、</span><ruby>多<rt>おお</rt></ruby><span>く</span><span>の</span><ruby>家電<rt>かでん</rt></ruby><ruby>製品<rt>せいひん</rt></ruby><span>など</span><span>は</span><span>、</span><ruby>人間<rt>にんげん</rt></ruby><span>が</span><ruby>書<rt>か</rt></ruby><span>い</span><span>た</span><span>プログラム</span><ruby>通<rt>どお</rt></ruby><span>り</span><span>に</span><ruby>動<rt>うご</rt></ruby><span>い</span><span>て</span><span>い</span><span>ます</span><span>。</span></p>
<p>たとえば、パソコンでゲームをすると、ゲーム<ruby>画面<rt>がめん</rt></ruby>が<ruby>動<rt>うご</rt></ruby>いたり、<ruby>音<rt>おと</rt></ruby>が<ruby>鳴<rt>な</rt></ruby>ったりしますね。</p>
<p>これは、ゲームのプログラムがパソコンに<ruby>命令<rt>めいれい</rt></ruby>を<ruby>送<rt>おく</rt></ruby>っているからです。</p>
<p>&nbsp;</p>
<h2><span id="toc2">プログラミングの基本構造とは</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6321" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02.png" alt="プログラミングの基本構造" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>プログラミングにはプログラムの<ruby>流<rt>なが</rt></ruby>れを<ruby>決<rt>き</rt></ruby>める3つの<ruby>考<rt>かんが</rt></ruby>え<ruby>方<rt>かた</rt></ruby>（<ruby>基本<rt>きほん</rt></ruby><ruby>構造<rt>こうぞう</rt></ruby>）があります。</p>
<div class="blank-box bb-blue">
<ul>
<li><a href="#sequential"><ruby>順次<rt>じゅんじ</rt></ruby>：<ruby>順番<rt>じゅんばん</rt></ruby>に<ruby>命令<rt>めいれい</rt></ruby>を<ruby>実行<rt>じっこう</rt></ruby>すること</a></li>
<li><a href="#conditional"><ruby>分岐<rt>ぶんき</rt></ruby>：<ruby>条件<rt>じょうけん</rt></ruby>によって<ruby>処理<rt>しょり</rt></ruby>を<ruby>変<rt>か</rt></ruby>えること</a></li>
<li><a href="#iterative"><ruby>反復<rt>はんぷく</rt></ruby>：<ruby>同<rt>おな</rt></ruby>じ<ruby>処理<rt>しょり</rt></ruby>をくり<ruby>返<rt>かえ</rt></ruby>すこと</a></li>
</ul>
</div>
<p>どんなに<ruby>複雑<rt>ふくざつ</rt></ruby>なプログラムも、<span class="marker-under-red"><ruby>基本的<rt>きほんてき</rt></ruby>に<ruby>順次<rt>じゅんじ</rt></ruby>・<ruby>分岐<rt>ぶんき</rt></ruby>・<ruby>反復<rt>はんぷく</rt></ruby>の<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせで<ruby>作<rt>つく</rt></ruby>られています</span>。</p>
<p>これらをうまく<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせて、コンピュータにさまざまな<ruby>動<rt>うご</rt></ruby>きや<ruby>作業<rt>さぎょう</rt></ruby>をさせているのです。</p>
<p>これらの3つの<ruby>考<rt>かんが</rt></ruby>え<ruby>方<rt>かた</rt></ruby>を<ruby>理解<rt>りかい</rt></ruby>することは、プログラミングの<ruby>基本<rt>きほん</rt></ruby>を<ruby>学<rt>まな</rt></ruby>ぶうえでとても<ruby>大切<rt>たいせつ</rt></ruby>です。</p>
<p>&nbsp;</p>
<h2 id="sequential"><span id="toc3">順次</span></h2>
<h3><span id="toc4">順次とは順番に命令を実行すること</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6322" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03.png" alt="順次" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><span style="color: #ff6600;"><b><ruby>順次<rt>じゅんじ</rt></ruby></b></span>とは、コンピュータが<ruby>受<rt>う</rt></ruby>けた<ruby>指示<rt>しじ</rt></ruby>や<ruby>命令<rt>めいれい</rt></ruby>を、<span class="marker-under-red">書かれた<ruby>順番<rt>じゅんばん</rt></ruby>どおりに<ruby>一<rt>ひと</rt></ruby>つずつ<ruby>実行<rt>じっこう</rt></ruby>する</span>ことです。</p>
<p>たとえば、カップラーメンを<ruby>作<rt>つく</rt></ruby>る<ruby>手順<rt>てじゅん</rt></ruby>をプログラムするなら、</p>
<div class="blank-box bb-blue">
<ol>
<li>お<ruby>湯<rt>ゆ</rt></ruby>をわかす</li>
<li>カップラーメンにお<ruby>湯<rt>ゆ</rt></ruby>を<ruby>注<rt>そそ</rt></ruby>ぐ</li>
<li>3<ruby>分<rt>ぷん</rt></ruby><ruby>待<rt>ま</rt></ruby>つ</li>
</ol>
</div>
<p>というように、<ruby>順番<rt>じゅんばん</rt></ruby>に<ruby>命令<rt>めいれい</rt></ruby>を<ruby>実行<rt>じっこう</rt></ruby>します。</p>
<p>&nbsp;</p>
<h3><span id="toc5">順次のプログラムを作ってみよう！</span></h3>
<p><ruby>順次<rt>じゅんじ</rt></ruby>のプログラムを<ruby>作<rt>つく</rt></ruby>ってみましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6323" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06.png" alt="順次のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ol>
<li>ハタが<ruby>押<rt>お</rt></ruby>されたとき</li>
<li>50<ruby>歩<rt>ぽ</rt></ruby><ruby>動<rt>うご</rt></ruby>かす</li>
<li>1<ruby>秒<rt>びょう</rt></ruby><ruby>待<rt>ま</rt></ruby>つ</li>
<li>こんにちは! と2<ruby>秒<rt>びょう</rt></ruby><ruby>言<rt>い</rt></ruby>う</li>
<li>1<ruby>秒<rt>びょう</rt></ruby><ruby>待<rt>ま</rt></ruby>つ</li>
<li>ニャーの<ruby>音<rt>おと</rt></ruby>を<ruby>鳴<rt>な</rt></ruby>らす</li>
</ol>
</div>
<p>ハタをおして<ruby>実行<rt>じっこう</rt></ruby>したとき、ネコが<ruby>右<rt>みぎ</rt></ruby>に<ruby>動<rt>うご</rt></ruby>いた<ruby>後<rt>あと</rt></ruby>、こんにちは!と<ruby>言<rt>い</rt></ruby>って、ニャーと<ruby>音<rt>おと</rt></ruby>が<ruby>鳴<rt>な</rt></ruby>るはずです。</p>
<p>このように、プログラムは<ruby>上<rt>うえ</rt></ruby>から<ruby>順番<rt>じゅんばん</rt></ruby>に<ruby>命令<rt>めいれい</rt></ruby>を<ruby>実行<rt>じっこう</rt></ruby>していることが<ruby>分<rt>わ</rt></ruby>かります。</p>
<p>&nbsp;</p>
<h2 id="conditional"><span id="toc6">分岐</span></h2>
<h3><span id="toc7">分岐とは条件によって処理を変えること</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6324" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04.png" alt="分岐" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><span style="color: #ff6600;"><b><ruby>分岐<rt>ぶんき</rt></ruby></b></span>とは、<span class="marker-under-red"><ruby>条件<rt>じょうけん</rt></ruby>によって、<ruby>実行<rt>じっこう</rt></ruby>する<ruby>処理<rt>しょり</rt></ruby>を<ruby>変<rt>か</rt></ruby>えること</span>です。</p>
<p>たとえば、<ruby>天気<rt>てんき</rt></ruby>によって、ぼうしをかぶるか、カサをさすかを<ruby>決<rt>き</rt></ruby>めるプログラムなら、</p>
<div class="blank-box bb-blue">
<ol>
<li><ruby>天気<rt>てんき</rt></ruby>をみる</li>
<li><ruby>雨<rt>あめ</rt></ruby>なら、カサをさす</li>
<li><ruby>雨<rt>あめ</rt></ruby>でなければ、ぼうしをかぶる</li>
</ol>
</div>
<p>というように、<ruby>条件<rt>じょうけん</rt></ruby>に<ruby>応<rt>おう</rt></ruby>じて、<ruby>実行<rt>じっこう</rt></ruby>する<ruby>処理<rt>しょり</rt></ruby>を<ruby>変<rt>か</rt></ruby>えます。</p>
<p>&nbsp;</p>
<h3><span id="toc8">分岐のプログラムを作ってみよう！</span></h3>
<p><ruby>分岐<rt>ぶんき</rt></ruby>のプログラムを<ruby>作<rt>つく</rt></ruby>ってみましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6325" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07.png" alt="分岐のプログラム1" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ol>
<li>ハタが<ruby>押<rt>お</rt></ruby>されたとき</li>
<li><ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>と<ruby>言<rt>い</rt></ruby>う</li>
<li>もし<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby> &gt; 30なら<br />
<em>　</em><ruby>色<rt>いろ</rt></ruby>の<ruby>効果<rt>こうか</rt></ruby>を25ずつ<ruby>変<rt>か</rt></ruby>える</li>
</ol>
</div>
<p><span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>」</b></span>ブロックは<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>を<ruby>調<rt>しら</rt></ruby>べるブロックです。<ruby>調<rt>しら</rt></ruby>べるカテゴリにある<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の<ruby>年<rt>とし</rt></ruby>」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>し、<ruby>年<rt>とし</rt></ruby>の<ruby>部分<rt>ぶぶん</rt></ruby>をクリックして、<ruby>秒<rt>びょう</rt></ruby>に<ruby>変<rt>か</rt></ruby>えましょう。</p>
<p><span style="color: #ffab19;"><b>「もし〇〇なら」</b></span>ブロックは、〇〇で<ruby>指定<rt>してい</rt></ruby>した<ruby>条件<rt>じょうけん</rt></ruby>を<ruby>満<rt>み</rt></ruby>たしている<ruby>場合<rt>ばあい</rt></ruby>に<ruby>中<rt>なか</rt></ruby>の<ruby>処理<rt>しょり</rt></ruby>を<ruby>実行<rt>じっこう</rt></ruby>します。</p>
<p>もし<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>が30より<ruby>大<rt>おお</rt></ruby>きかった<ruby>場合<rt>ばあい</rt></ruby>、ネコの<ruby>色<rt>いろ</rt></ruby>が<ruby>変<rt>か</rt></ruby>わります。<br />
そうでない<ruby>場合<rt>ばあい</rt></ruby>（<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>が30<ruby>以下<rt>いか</rt></ruby>）は<ruby>何<rt>なに</rt></ruby>もしません。</p>
<p>&nbsp;</p>
<p>もうひとつ<ruby>作<rt>つく</rt></ruby>ってみましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6326" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08.png" alt="分岐のプログラム2" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ol>
<li>ハタが<ruby>押<rt>お</rt></ruby>されたとき</li>
<li><ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>と<ruby>言<rt>い</rt></ruby>う</li>
<li>もし<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby> &gt; 30なら<br />
<em>　</em><ruby>色<rt>いろ</rt></ruby>の<ruby>効果<rt>こうか</rt></ruby>を25ずつ<ruby>変<rt>か</rt></ruby>える</li>
<li>でなければ<br />
<em>　</em><ruby>右<rt>みぎ</rt></ruby>に90<ruby>度<rt>ど</rt></ruby><ruby>回<rt>まわ</rt></ruby>す</li>
</ol>
</div>
<p><span style="color: #ffab19;"><b>「もし〇〇なら／でなければ」</b></span>ブロックは、<ruby>条件<rt>じょうけん</rt></ruby>を<ruby>満<rt>み</rt></ruby>たしている<ruby>場合<rt>ばあい</rt></ruby>とそれ<ruby>以外<rt>いがい</rt></ruby>の<ruby>場合<rt>ばあい</rt></ruby>で、<ruby>処理<rt>しょり</rt></ruby>を<ruby>分<rt>わ</rt></ruby>ける<ruby>時<rt>とき</rt></ruby>に<ruby>使<rt>つか</rt></ruby>います。</p>
<p>もし<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>が30より<ruby>大<rt>おお</rt></ruby>きかった<ruby>場合<rt>ばあい</rt></ruby>、ネコの<ruby>色<rt>いろ</rt></ruby>が<ruby>変<rt>か</rt></ruby>わります。<br />
そうでない<ruby>場合<rt>ばあい</rt></ruby>（<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>が30<ruby>以下<rt>いか</rt></ruby>）はネコが90<ruby>度<rt>ど</rt></ruby><ruby>回転<rt>かいてん</rt></ruby>します。</p>
<p>このように、<ruby>条件<rt>じょうけん</rt></ruby>によって<ruby>処理<rt>しょり</rt></ruby>を<ruby>変<rt>か</rt></ruby>えることができます。</p>
<p>&nbsp;</p>
<h2 id="iterative"><span id="toc9">反復（ループ）</span></h2>
<h3><span id="toc10">反復とは同じ処理をくり返すこと</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6327" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05.png" alt="反復（ループ）" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><span style="color: #ff6600;"><b><ruby>反復<rt>はんぷく</rt></ruby></b></span>とは、<span class="marker-under-red">同じ<ruby>処理<rt>しょり</rt></ruby>をくり<ruby>返<rt>かえ</rt></ruby>す</span>ことです。<span style="color: #ff6600;"><b>ループ</b></span>とも<ruby>言<rt>い</rt></ruby>います。</p>
<p>たとえば、1<ruby>時間<rt>じかん</rt></ruby>ゲームした<ruby>後<rt>あと</rt></ruby>、<ruby>勉強<rt>べんきょう</rt></ruby>をする<ruby>行動<rt>こうどう</rt></ruby>をプログラムするなら、</p>
<div class="blank-box bb-blue">
<ol>
<li>ゲームをする</li>
<li>プレイした<ruby>時間<rt>じかん</rt></ruby>をみる</li>
<li>プレイ<ruby>時間<rt>じかん</rt></ruby>が1<ruby>時間<rt>じかん</rt></ruby><ruby>以上<rt>いじょう</rt></ruby>なら、ループをぬけて4へ<br />
プレイ<ruby>時間<rt>じかん</rt></ruby>が1<ruby>時間<rt>じかん</rt></ruby><ruby>未満<rt>みまん</rt></ruby>なら、1にもどる</li>
<li><ruby>勉強<rt>べんきょう</rt></ruby>をする</li>
</ol>
</div>
<p><ruby>同<rt>おな</rt></ruby>じ<ruby>行動<rt>こうどう</rt></ruby>（ゲームをする）を、<ruby>条件<rt>じょうけん</rt></ruby>（プレイ<ruby>時間<rt>じかん</rt></ruby>が1<ruby>時間<rt>じかん</rt></ruby><ruby>以上<rt>いじょう</rt></ruby>なら）を<ruby>満<rt>み</rt></ruby>たすまでくり<ruby>返<rt>かえ</rt></ruby>します。</p>
<p>&nbsp;</p>
<h3><span id="toc11">反復のプログラムを作ってみよう！</span></h3>
<p><ruby>反復<rt>はんぷく</rt></ruby>のプログラムを<ruby>作<rt>つく</rt></ruby>ってみましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6328" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09.png" alt="反復のプログラム1" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ul>
<li>ハタが<ruby>押<rt>お</rt></ruby>されたとき</li>
<li>10<ruby>回<rt>かい</rt></ruby><ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>す</li>
<li><em>　</em>10<ruby>歩<rt>ぽ</rt></ruby><ruby>動<rt>うご</rt></ruby>かす</li>
<li><em>　</em>36<ruby>度<rt>ど</rt></ruby><ruby>回<rt>まわ</rt></ruby>す</li>
</ul>
</div>
<p>プログラムを<ruby>実行<rt>じっこう</rt></ruby>すると、「10<ruby>歩<rt>ぽ</rt></ruby><ruby>動<rt>うご</rt></ruby>かす」と「36<ruby>度<rt>ど</rt></ruby><ruby>回<rt>まわ</rt></ruby>す」<ruby>命令<rt>めいれい</rt></ruby>を10<ruby>回<rt>かい</rt></ruby>くり<ruby>返<rt>かえ</rt></ruby>して、ネコを1<ruby>回転<rt>かいてん</rt></ruby>させます。</p>
<p><span style="color: #ffab19;"><b>「10<ruby>回<rt>かい</rt></ruby><ruby>繰<rt>くり</rt></ruby>くり<ruby>返<rt>かえ</rt></ruby>かえす」</b></span>ブロックは、<ruby>中<rt>なか</rt></ruby>の<ruby>処理<rt>しょり</rt></ruby>を<ruby>指定<rt>してい</rt></ruby>した<ruby>回数<rt>かいすう</rt></ruby>くり<ruby>返<rt>かえ</rt></ruby>します。</p>
<p>&nbsp;</p>
<p>「10<ruby>歩<rt>ぽ</rt></ruby><ruby>動<rt>うご</rt></ruby>かす」と「36<ruby>度<rt>ど</rt></ruby><ruby>回<rt>まわ</rt></ruby>す」<ruby>命令<rt>めいれい</rt></ruby>を10<ruby>回<rt>かい</rt></ruby>つなげると、<ruby>下<rt>した</rt></ruby>の<ruby>画像<rt>がぞう</rt></ruby>（<ruby>右<rt>みぎ</rt></ruby>）のようになります。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6329" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10.png" alt="ループを使わないと…" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>しブロックを<ruby>使<rt>つか</rt></ruby>った<ruby>方<rt>ほう</rt></ruby>が、<span class="marker-under-red"><ruby>同<rt>おな</rt></ruby>じブロックをたくさん<ruby>出<rt>だ</rt></ruby>す<ruby>手間<rt>てま</rt></ruby>が<ruby>省<rt>はぶ</rt></ruby>けます</span>し、<span class="marker-under-red"><ruby>内容<rt>ないよう</rt></ruby>が<ruby>分<rt>わ</rt></ruby>かりやすい</span>です。</p>
<p>また、10<ruby>歩<rt>ほ</rt></ruby><ruby>動<rt>うご</rt></ruby>かすを20<ruby>歩<rt>ほ</rt></ruby><ruby>動<rt>うご</rt></ruby>かすに<ruby>変<rt>か</rt></ruby>えたくなった<ruby>時<rt>とき</rt></ruby>、<ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>しブロックを<ruby>使<rt>つか</rt></ruby>わないプログラムは10か<ruby>所<rt>しょ</rt></ruby><ruby>変<rt>か</rt></ruby>える<ruby>必要<rt>ひつよう</rt></ruby>がありますが、<ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>しブロックを<ruby>使<rt>つか</rt></ruby>ったプログラムは1か<ruby>所<rt>しょ</rt></ruby>の<ruby>変更<rt>へんこう</rt></ruby>ですみます。</p>
<p>このように<ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>しブロックを<ruby>使<rt>つか</rt></ruby>うと、<span class="marker-under-red"><ruby>修正<rt>しゅうせい</rt></ruby>がかんたんになります</span>。</p>
<p>&nbsp;</p>
<p>もうひとつ<ruby>作<rt>つく</rt></ruby>ってみましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6330" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11.png" alt="反復のプログラム2" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ul>
<li>ハタが<ruby>押<rt>お</rt></ruby>されたとき</li>
<li>ずっと<br />
<em>　</em><ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>とき</rt></ruby>と<ruby>現在<rt>げんざい</rt></ruby>の<ruby>分<rt>ぶん</rt></ruby>と<ruby>言<rt>い</rt></ruby>う</li>
</ul>
</div>
<p><span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックは、<ruby>中<rt>なか</rt></ruby>の<ruby>処理<rt>しょり</rt></ruby>をずっとくり<ruby>返<rt>かえ</rt></ruby>します。</p>
<p>ずーっとくり<ruby>返<rt>かえ</rt></ruby>しているので、<ruby>時刻<rt>じこく</rt></ruby>が<ruby>変<rt>か</rt></ruby>わると<ruby>自動的<rt>じどうてき</rt></ruby>にネコのセリフが<ruby>変<rt>か</rt></ruby>わります。</p>
<p>&nbsp;</p>
<h2><span id="toc12">順次、分岐、反復を組み合わせてみよう！</span></h2>
<p><ruby>順次<rt>じゅんじ</rt></ruby>、<ruby>分岐<rt>ぶんき</rt></ruby>、<ruby>反復<rt>はんぷく</rt></ruby>を<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせると、さらに<ruby>複雑<rt>ふくざつ</rt></ruby>なプログラムを<ruby>作<rt>つく</rt></ruby>れます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6331" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12.png" alt="順次・分岐・反復 組み合わせ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ul>
<li>ハタが<ruby>押<rt>お</rt></ruby>されたとき</li>
<li>ずっと<br />
<em>　</em><ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>とき</rt></ruby>と<ruby>現在<rt>げんざい</rt></ruby>の<ruby>分<rt>ぶん</rt></ruby>と<ruby>言<rt>い</rt></ruby>う</li>
<li><em>　</em>もし<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby> = 0 なら<br />
<em>　　</em><ruby>終<rt>お</rt></ruby>わるまでニャーの<ruby>音<rt>おと</rt></ruby>を<ruby>鳴<rt>な</rt></ruby>らす</li>
</ul>
</div>
<p>このプログラムは、ずっとネコが<ruby>何時<rt>なんじ</rt></ruby><ruby>何分<rt>なんぷん</rt></ruby>か<ruby>言<rt>い</rt></ruby>って、1<ruby>分<rt>ふん</rt></ruby>たつごとに（<ruby>秒<rt>びょう</rt></ruby>が0の<ruby>時<rt>とき</rt></ruby>）ニャーと<ruby>音<rt>おと</rt></ruby>を<ruby>鳴<rt>な</rt></ruby>らします。</p>
<p>ぜひ<ruby>処理<rt>しょり</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>して、もっと<ruby>便利<rt>べんり</rt></ruby>で<ruby>楽<rt>たの</rt></ruby>しいプログラムにしてみてくださいね。</p>
<p>&nbsp;</p>
<h2><span id="toc13">まとめ</span></h2>
<p><ruby>今回<rt>こんかい</rt></ruby>はプログラミングの<ruby>基本<rt>きほん</rt></ruby>である<ruby>順次<rt>じゅんじ</rt></ruby>、<ruby>分岐<rt>ぶんき</rt></ruby>、<ruby>反復<rt>はんぷく</rt></ruby>について<ruby>解説<rt>かいせつ</rt></ruby>しました。</p>
<div class="blank-box bb-blue">
<ul>
<li><a href="#sequential"><ruby>順次<rt>じゅんじ</rt></ruby>：<ruby>順番<rt>じゅんばん</rt></ruby>に<ruby>命令<rt>めいれい</rt></ruby>を<ruby>実行<rt>じっこう</rt></ruby>すること</a></li>
<li><a href="#conditional"><ruby>分岐<rt>ぶんき</rt></ruby>：<ruby>条件<rt>じょうけん</rt></ruby>によって<ruby>処理<rt>しょり</rt></ruby>を<ruby>変<rt>か</rt></ruby>えること</a></li>
<li><a href="#iterative"><ruby>反復<rt>はんぷく</rt></ruby>：<ruby>同<rt>おな</rt></ruby>じ<ruby>処理<rt>しょり</rt></ruby>をくり<ruby>返<rt>かえ</rt></ruby>すこと</a></li>
</ul>
</div>
<p>これらの<ruby>基本<rt>きほん</rt></ruby>を<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせれば、さまざまなプログラムが<ruby>作<rt>つく</rt></ruby>れます。</p>
<p>プログラミングは<ruby>最初<rt>さいしょ</rt></ruby>は<ruby>難<rt>むずか</rt></ruby>しそうに<ruby>見<rt>み</rt></ruby>えるかもしれませんが、<ruby>子<rt>こ</rt></ruby>ども<ruby>向<rt>む</rt></ruby>けのプログラミング<ruby>言語<rt>げんご</rt></ruby>や<ruby>学習<rt>がくしゅう</rt></ruby>プラットフォームがたくさんあります。</p>
<p><ruby>下<rt>した</rt></ruby>の<ruby>記事<rt>きじ</rt></ruby>では、<ruby>小学生<rt>しょうがくせい</rt></ruby>の<a rel="noopener" target="_self" href="https://living-maou.com/teaching-material/">プログラミング<ruby>教材<rt>きょうざい</rt></ruby>を<ruby>選<rt>えら</rt></ruby>ぶポイントと、オススメの<ruby>教材<rt>きょうざい</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a>を<ruby>紹介<rt>しょうかい</rt></ruby>しています。<br />
ぜひあわせて<ruby>読<rt>よ</rt></ruby>んでみてください。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/teaching-material/" title="学び好きな子に育つ！考えて作る楽しさを味わえるプログラミング玩具7選" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">学び好きな子に育つ！考えて作る楽しさを味わえるプログラミング玩具7選</div><div class="blogcard-snippet internal-blogcard-snippet">子ども向けのプログラミング教材やおもちゃは種類や難易度がさまざま。どれを選べばいいのか迷ってしまいませんか？【リビングの魔王】では年齢や興味関心に合わせて選ぶポイントや、おすすめの教材・おもちゃを紹介。プログラミング学習の参考にしてみてください。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/control-structure/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【スクラッチ(Scratch)】点字のしくみの調べ学習にプログラミングをプラス！小学生向け自由研究</title>
		<link>https://living-maou.com/scratch-braille/</link>
					<comments>https://living-maou.com/scratch-braille/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Sun, 20 Aug 2023 01:59:44 +0000</pubDate>
				<category><![CDATA[Scratch]]></category>
		<category><![CDATA[作品例]]></category>
		<category><![CDATA[自由研究]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=5724</guid>

					<description><![CDATA[この記事きじでは、Scratch（スクラッチ）を使つかった「アルファベットを点字てんじに変換へんかんするプログラム」の作つくり方かたを紹介しょうかいします。 アルファベットを点字てんじに変換へんかんするプログラムを作つく [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5725" src="https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille.jpg 800w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>この<ruby>記事<rt>きじ</rt></ruby>では、Scratch（スクラッチ）を<ruby>使<rt>つか</rt></ruby>った「<b>アルファベットを<ruby>点字<rt>てんじ</rt></ruby>に<ruby>変換<rt>へんかん</rt></ruby>するプログラム</b>」の<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>アルファベットを<ruby>点字<rt>てんじ</rt></ruby>に<ruby>変換<rt>へんかん</rt></ruby>するプログラムを<ruby>作<rt>つく</rt></ruby>ることで、<ruby>以下<rt>いか</rt></ruby>のことが<ruby>学<rt>まな</rt></ruby>べます。</p>
<div class="blank-box bb-blue">
<ul>
<li>プログラミングの<ruby>基礎<rt>きそ</rt></ruby>「<ruby>変数<rt>へんすう</rt></ruby>」と「リスト」を<ruby>学<rt>まな</rt></ruby>べる</li>
<li><ruby>点字<rt>てんじ</rt></ruby>のしくみについて<ruby>理解<rt>りかい</rt></ruby>が<ruby>深<rt>ふか</rt></ruby>まる</li>
<li><ruby>視覚<rt>しかく</rt></ruby><ruby>障害者<rt>しょうがいしゃ</rt></ruby>への<ruby>理解<rt>りかい</rt></ruby>が<ruby>深<rt>ふか</rt></ruby>まる</li>
</ul>
</div>
<p><ruby>夏休<rt>なつやす</rt></ruby>みの<ruby>自由<rt>じゆう</rt></ruby><ruby>研究<rt>けんきゅう</rt></ruby>におすすめ。<br />
<ruby>点字<rt>てんじ</rt></ruby>をテーマにした<ruby>調<rt>しら</rt></ruby>べ<ruby>学習<rt>がくしゅう</rt></ruby>に<ruby>追加<rt>ついか</rt></ruby>して、みんなと<ruby>差<rt>さ</rt></ruby>をつけちゃいましょう！</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">Scratch（スクラッチ）の<ruby>基本的<rt>きほんてき</rt></ruby>な<ruby>使<rt>つか</rt></ruby>い<ruby>方<rt>かた</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、<ruby>下<rt>した</rt></ruby>の<ruby>記事<rt>きじ</rt></ruby>で<ruby>紹介<rt>しょうかい</rt></ruby>しています。</p>
<div class="blogcard-type bct-related">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/" title="Scratch（スクラッチ）の使い方・始め方｜小学生向けプログラミング入門" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-scratch-start2026.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">Scratch（スクラッチ）の使い方・始め方｜小学生向けプログラミング入門</div><div class="blogcard-snippet internal-blogcard-snippet">子供向けプログラミング言語Scratch（スクラッチ）。プログラミング教育の教材として多くの小学校で使われています。【リビングの魔王】では、おうちでもスクラッチを使いたい方のために、アカウントの作成方法と基本的な使い方を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<h2><span id="toc1">点字とは視覚障害者のための文字</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5726" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01.jpg" alt="点字とは" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01.jpg 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><b><ruby>点字<rt>てんじ</rt></ruby></b>とは、<ruby>視覚<rt>しかく</rt></ruby><ruby>障害者<rt>しょうがいしゃ</rt></ruby>のための<ruby>文字<rt>もじ</rt></ruby>です。</p>
<p><ruby>小<rt>ちい</rt></ruby>さな<ruby>点<rt>てん</rt></ruby>を<ruby>使<rt>つか</rt></ruby>って<ruby>文字<rt>もじ</rt></ruby>や<ruby>記号<rt>きごう</rt></ruby>を<ruby>表現<rt>ひょうげん</rt></ruby>し、<ruby>指<rt>ゆび</rt></ruby>で<ruby>触<rt>さわ</rt></ruby>って<ruby>読<rt>よ</rt></ruby>むことができます。</p>
<p>フランスのルイ・ブライユによって<ruby>発明<rt>はつめい</rt></ruby>されました。</p>
<p><ruby>点字<rt>てんじ</rt></ruby>は、<ruby>現在<rt>げんざい</rt></ruby><ruby>世界<rt>せかい</rt></ruby><ruby>中<rt>ちゅう</rt></ruby>で<ruby>広<rt>ひろ</rt></ruby>く<ruby>使<rt>つか</rt></ruby>われており、<ruby>視覚<rt>しかく</rt></ruby><ruby>障害者<rt>しょうがいしゃ</rt></ruby>にとって、<ruby>文字<rt>もじ</rt></ruby>を<ruby>読<rt>よ</rt></ruby>むための<ruby>重要<rt>じゅうよう</rt></ruby>な<ruby>手段<rt>しゅだん</rt></ruby>です。</p>
<p><ruby>本<rt>ほん</rt></ruby>、<ruby>新聞<rt>しんぶん</rt></ruby>、<ruby>雑誌<rt>ざっし</rt></ruby>、<ruby>手紙<rt>てがみ</rt></ruby>、<ruby>標識<rt>ひょうしき</rt></ruby>など、さまざまなものが<ruby>点字<rt>てんじ</rt></ruby>で<ruby>書<rt>か</rt></ruby>かれています。</p>
<p>&nbsp;</p>
<h2><span id="toc2">点字のしくみ</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5727" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02.jpg" alt="点字のしくみ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02.jpg 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>点字<rt>てんじ</rt></ruby>は、<span class="marker-under-red">6つの<ruby>点<rt>てん</rt></ruby>を<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせて<ruby>文字<rt>もじ</rt></ruby>や<ruby>記号<rt>きごう</rt></ruby>を<ruby>表現<rt>ひょうげん</rt></ruby></span>します。</p>
<p>アルファベットの<ruby>文字<rt>もじ</rt></ruby>や<ruby>記号<rt>きごう</rt></ruby>ごとに<ruby>異<rt>こと</rt></ruby>なる<ruby>点<rt>てん</rt></ruby>の<ruby>配置<rt>はいち</rt></ruby>があり、それを<ruby>覚<rt>おぼ</rt></ruby>えることで<ruby>点字<rt>てんじ</rt></ruby>が<ruby>読<rt>よ</rt></ruby>めるようになります。</p>
<div class="ad-area no-icon ad-shortcode ad-rectangle ad-label-visible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-9126458450711382"
  data-ad-slot="2965068638"
  data-ad-format="rectangle"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc3">点字変換プログラムを作ろう</span></h2>
<p>Scratchでアルファベットを<ruby>点字<rt>てんじ</rt></ruby>に<ruby>変換<rt>へんかん</rt></ruby>するプログラムを<ruby>作<rt>つく</rt></ruby>ってみましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5728" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03.png" alt="点字変換プログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>下<rt>した</rt></ruby>は<ruby>完成<rt>かんせい</rt></ruby>したプログラムです。</p>
<p><iframe loading="lazy" width="485" height="402" src="https://scratch.mit.edu/projects/879919584/embed" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></p>
<p>アルファベットを<ruby>左右<rt>さゆう</rt></ruby>の<ruby>三角<rt>さんかく</rt></ruby>ボタンで<ruby>選択<rt>せんたく</rt></ruby>すると、それに<ruby>対応<rt>たいおう</rt></ruby>する<ruby>点字<rt>てんじ</rt></ruby>が<ruby>表示<rt>ひょうじ</rt></ruby>されます。<br />
（<ruby>点<rt>てん</rt></ruby>のある<ruby>場所<rt>ばしょ</rt></ruby>：●　ない<ruby>場所<rt>ばしょ</rt></ruby>：○）</p>
<p>&nbsp;</p>
<p>このプログラムは<b><ruby>変数<rt>へんすう</rt></ruby></b>と<b>リスト</b>を<ruby>使<rt>つか</rt></ruby>います。</p>
<ul>
<li><ruby>変<rt>へん</rt></ruby>　<ruby>数<rt>すう</rt></ruby>：プログラムで<ruby>使<rt>つか</rt></ruby>うデータを<ruby>一時的<rt>いちじてき</rt></ruby>に<ruby>保存<rt>ほぞん</rt></ruby>するための<ruby>場所<rt>ばしょ</rt></ruby></li>
<li>リスト：<ruby>複数<rt>ふくすう</rt></ruby>のデータをまとめて<ruby>管理<rt>かんり</rt></ruby>するためのしくみ</li>
</ul>
<p><ruby>下<rt>か</rt></ruby>の<ruby>記事<rt>きじ</rt></ruby>でくわしく<ruby>解説<rt>かいせつ</rt></ruby>しています。よく<ruby>分<rt>わ</rt></ruby>からない<ruby>人<rt>ひと</rt></ruby>は、あわせて<ruby>読<rt>よ</rt></ruby>んでみてください。</p>
<div class="blank-box bb-blue">
<ul>
<li><a rel="noopener" target="_self" href="https://living-maou.com/scratch-variable/"><ruby>変数<rt>へんすう</rt></ruby>とは？スクラッチ（Scratch）を<ruby>使<rt>つか</rt></ruby>ってわかりやすく<ruby>解説<rt>かいせつ</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
<li><a rel="noopener" target="_self" href="https://living-maou.com/scratch-list/"><ruby>配列<rt>はいれつ</rt></ruby>・リストとは？スクラッチ（Scratch）を<ruby>使<rt>つか</rt></ruby>ってわかりやすく<ruby>解説<rt>かいせつ</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
</ul>
</div>
<p>&nbsp;</p>
<h3><span id="toc4">スプライトを準備する</span></h3>
<p><ruby>今回<rt>こんかい</rt></ruby><ruby>使<rt>つか</rt></ruby>うプログラムのスプライトを<ruby>準備<rt>じゅんび</rt></ruby>しましょう。</p>
<p>ネコのスプライト（スプライト1）は<ruby>使<rt>つか</rt></ruby>わないので<ruby>消<rt>け</rt></ruby>してください。</p>
<h4>アルファベット</h4>
<p>アルファベットのスプライトを<ruby>追加<rt>ついか</rt></ruby>します。</p>
<ol>
<li>「スプライトを<ruby>追加<rt>ついか</rt></ruby>」→「スプライトを<ruby>選<rt>えら</rt></ruby>ぶ」を<ruby>選択<rt>せんたく</rt></ruby></li>
<li>Aのスプライトを<ruby>選<rt>えら</rt></ruby>ぶ</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5729" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04.png" alt="アルファベットのスプライト" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>AのスプライトにB～Zのコスチュームを<ruby>追加<rt>ついか</rt></ruby>します。</p>
<ol>
<li>コスチュームタブ→「コスチュームを<ruby>追加<rt>ついか</rt></ruby>」→「コスチュームを<ruby>選<rt>えら</rt></ruby>ぶ」を<ruby>選択<rt>せんたく</rt></ruby></li>
<li>Bのコスチュームを<ruby>選<rt>えら</rt></ruby>ぶ</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5730" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05.png" alt="B～Zのコスチュームを追加" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>同<rt>おな</rt></ruby>じ<ruby>手順<rt>てじゅん</rt></ruby>で、C<ruby>以降<rt>いこう</rt></ruby>のコスチュームも<ruby>追加<rt>ついか</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h4>すすむボタン</h4>
<p>すすむボタンを<ruby>作<rt>つく</rt></ruby>りましょう。</p>
<p>「スプライトを<ruby>追加<rt>ついか</rt></ruby>」→「<ruby>描<rt>えが</rt></ruby>く」を<ruby>選<rt>えら</rt></ruby>んで、<ruby>三角形<rt>さんかくけい</rt></ruby>をかきます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5731" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06.png" alt="Scratchで三角形を描く" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>四角形<rt>しかくけい</rt></ruby>をかいて、<ruby>頂点<rt>ちょうてん</rt></ruby>をひとつ<ruby>消<rt>け</rt></ruby>すと<ruby>三角形<rt>さんかくけい</rt></ruby>になります。</p>
<p>ペイントエディターのくわしい<ruby>使<rt>つか</rt></ruby>い<ruby>方<rt>かた</rt></ruby>は「<a rel="noopener" target="_self" href="https://living-maou.com/scratch-paint-vector/">【スクラッチ（Scratch）】<ruby>絵<rt>え</rt></ruby>を<ruby>描<rt>か</rt></ruby>いてスプライトや<ruby>背景<rt>はいけい</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ろう（ベクター<ruby>編<rt>へん</rt></ruby>）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」で<ruby>解説<rt>かいせつ</rt></ruby>しています。</p>
<p>&nbsp;</p>
<h4>1の点</h4>
<p>1の<ruby>点<rt>てん</rt></ruby>のスプライトを<ruby>作<rt>つく</rt></ruby>りましょう。</p>
<ol>
<li>「スプライトを<ruby>追加<rt>ついか</rt></ruby>」→「<ruby>描<rt>えが</rt></ruby>く」を<ruby>選択<rt>せんたく</rt></ruby></li>
<li>〇をかく</li>
<li>〇を<ruby>複製<rt>ふくせい</rt></ruby>する（コスチューム1を<ruby>右<rt>みぎ</rt></ruby>クリック→<ruby>複製<rt>ふくせい</rt></ruby>)</li>
<li>コスチューム2の<ruby>塗<rt>ぬ</rt></ruby>りつぶしの<ruby>色<rt>いろ</rt></ruby>を<ruby>黒<rt>くろ</rt></ruby>にして、●を<ruby>作<rt>つく</rt></ruby>る</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5732" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07.png" alt="点のスプライト" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-tab bb-point bb-blue"><ruby>点<rt>てん</rt></ruby>のスプライトは1つでOKです。ほかの<ruby>点<rt>てん</rt></ruby>は、プログラムを<ruby>作<rt>つく</rt></ruby>ってからコピーして<ruby>作<rt>つく</rt></ruby>ります。</div>
<p>&nbsp;</p>
<h3><span id="toc5">アルファベットのプログラム</span></h3>
<p>すすむボタンをおすと、<ruby>次<rt>つぎ</rt></ruby>のアルファベットが<ruby>表示<rt>ひょうじ</rt></ruby>されるプログラムを<ruby>作<rt>つく</rt></ruby>りましょう。</p>
<h4>アルファベット</h4>
<p><ruby>何番目<rt>なんばんめ</rt></ruby>のアルファベットかを<ruby>表<rt>あらわ</rt></ruby>す<ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>」</b></span>を<ruby>作<rt>つく</rt></ruby>ります。</p>
<p><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「<ruby>変数<rt>へんすう</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>する」</b></span>をクリックし、「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>」という<ruby>名前<rt>なまえ</rt></ruby>の<ruby>変数<rt>へんすう</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ります。すべてのスプライト<ruby>用<rt>よう</rt></ruby>で<ruby>作<rt>つく</rt></ruby>ってください。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5733" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08.png" alt="変数を追加する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>」</b></span>に<ruby>対応<rt>たいおう</rt></ruby>するコスチュームを<ruby>表示<rt>ひょうじ</rt></ruby>するプログラムを<ruby>作<rt>つく</rt></ruby>ります。</p>
<ol>
<li>イベントカテゴリから<span style="color: #ffd500;"><b>「<ruby>緑<rt>みどり</rt></ruby>のハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>をコードエリアに<ruby>出<rt>だ</rt></ruby>す。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>を(0)にする」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ffd500;"><b>「<ruby>緑<rt>みどり</rt></ruby>のハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の<ruby>下<rt>した</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>を(0)にする」</b></span>の0を1に<ruby>変更<rt>へんこう</rt></ruby>する（<ruby>初期<rt>しょき</rt></ruby><ruby>値<rt>ち</rt></ruby>を<ruby>設定<rt>せってい</rt></ruby>）</li>
<li><ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「ずっと」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>を1にする」</b></span>の<ruby>下<rt>した</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>カテゴリから<span style="color: #9966ff;"><b>「コスチュームを(Block-z)にする」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ffab19;"><b>「ずっと」</b></span>の<ruby>中<rt>なか</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #9966ff;"><b>「コスチュームを(Block-z)にする」</b></span>のBlock-zの<ruby>部分<rt>ぶぶん</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5734" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09.png" alt="アルファベットのプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>これで<span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>」</b></span>に<ruby>対応<rt>たいおう</rt></ruby>したコスチュームが<ruby>表示<rt>ひょうじ</rt></ruby>されるようになりました。</p>
<div class="blank-box bb-tab bb-memo bb-blue"><span style="color: #9966ff;"><b>「コスチュームを()にする」</b></span>ブロックで<ruby>指定<rt>してい</rt></ruby>した<ruby>値<rt>あたい</rt></ruby>と<ruby>同<rt>おな</rt></ruby>じコスチューム<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>のコスチュームが<ruby>表示<rt>ひょうじ</rt></ruby>されます。</div>
<p>&nbsp;</p>
<h4>すすむボタン</h4>
<p>すすむボタンをおすと、<ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>」</b></span>が1<ruby>増<rt>ふ</rt></ruby>えるプログラムを<ruby>作<rt>つく</rt></ruby>ります。</p>
<ol>
<li>イベントカテゴリから<span style="color: #ffd500;"><b>「このスプライトが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>をコードエリアに<ruby>出<rt>だ</rt></ruby>す。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>を(1)ずつ<ruby>変<rt>か</rt></ruby>える」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ffd500;"><b>「このスプライトが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の<ruby>下<rt>した</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
</ol>
<p><ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>」</b></span>が26(Z)を<ruby>超<rt>こ</rt></ruby>えた<ruby>時<rt>とき</rt></ruby>、1(A)にもどる<ruby>処理<rt>しょり</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>します。</p>
<ol>
<li><ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「もし なら」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>を(1)ずつ<ruby>変<rt>か</rt></ruby>える」</b></span>の<ruby>下<rt>した</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「()&gt;(50)」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ffab19;"><b>「もし なら」</b></span>の<ruby>中<rt>なか</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><span style="color: #40bf4a;"><b>「()&gt;(50)」</b></span>を<span style="color: #40bf4a;"><b>「(アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>) &gt; (26)」</b></span>に<ruby>変更<rt>へんこう</rt></ruby>する。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>を(0)にする」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ffab19;"><b>「もし アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby> &gt; 26なら」</b></span>の<ruby>下<rt>した</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>を(0)にする」</b></span>の0を1に<ruby>変更<rt>へんこう</rt></ruby>する。</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5735" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10.png" alt="すすむボタンのプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>すすむボタンをおしてテストしてみましょう。</p>
<p>アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>が<ruby>増<rt>ふ</rt></ruby>えて、アルファベットのスプライトが<ruby>次<rt>つぎ</rt></ruby>のアルファベットに<ruby>変<rt>か</rt></ruby>わるはずです。</p>
<p><ruby>正<rt>ただ</rt></ruby>しく<ruby>動<rt>うご</rt></ruby>くことが<ruby>確認<rt>かくにん</rt></ruby>できたら、すすむボタンのスプライトを<ruby>複製<rt>ふくせい</rt></ruby>して、もどるボタンを<ruby>作<rt>つく</rt></ruby>ってみましょう。</p>
<p>どこを<ruby>変更<rt>へんこう</rt></ruby>すればいいか、<ruby>自分<rt>じぶん</rt></ruby>で<ruby>考<rt>かんが</rt></ruby>えてみてください。</p>
<p>&nbsp;</p>
<h3><span id="toc6">点のプログラム</span></h3>
<p>アルファベットに<ruby>対応<rt>たいおう</rt></ruby>する<ruby>点字<rt>てんじ</rt></ruby>が<ruby>表示<rt>ひょうじ</rt></ruby>されるプログラムを<ruby>作<rt>つく</rt></ruby>りましょう。</p>
<p>6つの<ruby>点<rt>てん</rt></ruby>のありなしを<ruby>管理<rt>かんり</rt></ruby>するしくみを<ruby>考<rt>かんが</rt></ruby>えます。</p>
<p><ruby>左側<rt>ひだりがわ</rt></ruby>を<ruby>上<rt>うえ</rt></ruby>から1の<ruby>点<rt>てん</rt></ruby>、2の<ruby>点<rt>てん</rt></ruby>、3の<ruby>点<rt>てん</rt></ruby>、<ruby>右側<rt>みぎがわ</rt></ruby>を<ruby>上<rt>うえ</rt></ruby>から4の<ruby>点<rt>てん</rt></ruby>、5の<ruby>点<rt>てん</rt></ruby>、6の<ruby>点<rt>てん</rt></ruby>、として<ruby>点<rt>てん</rt></ruby>に<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>をつけ、<ruby>点<rt>てん</rt></ruby>のある<ruby>場所<rt>ばしょ</rt></ruby>を●、ない<ruby>場所<rt>ばしょ</rt></ruby>を○とします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5736" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11.png" alt="1の点～2の点" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>点<rt>てん</rt></ruby>のありなしを6けたの<ruby>数字<rt>すうじ</rt></ruby>で<ruby>表現<rt>ひょうげん</rt></ruby>してみました。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5737" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12.jpg" alt="点字リスト" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12.jpg 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>1<ruby>文字<rt>もじ</rt></ruby><ruby>目<rt>め</rt></ruby>は1の<ruby>点<rt>てん</rt></ruby>、2<ruby>文字<rt>もじ</rt></ruby><ruby>目<rt>め</rt></ruby>は2の<ruby>点<rt>てん</rt></ruby>…といったふうにわりあて、<ruby>点<rt>てん</rt></ruby>のある<ruby>場所<rt>ばしょ</rt></ruby>は1、ない<ruby>場所<rt>ばしょ</rt></ruby>を0にします。</p>
<p>Aは1の<ruby>点<rt>てん</rt></ruby>だけなので「100000」になります。</p>
<p>&nbsp;</p>
<h4>点字リストを作る</h4>
<p>A～Zまでの6けたの<ruby>数字<rt>すうじ</rt></ruby>が<ruby>入<rt>はい</rt></ruby>ったリストを<ruby>作<rt>つく</rt></ruby>ります。</p>
<p><ruby>変数<rt>へんすう</rt></ruby>カテゴリを<ruby>選<rt>えら</rt></ruby>んで<span style="color: #ff661a;"><b>「リストを<ruby>作<rt>つく</rt></ruby>る」</b></span>をクリックし、「<ruby>点字<rt>てんじ</rt></ruby>リスト」という<ruby>名前<rt>なまえ</rt></ruby>のリストを<ruby>作<rt>つく</rt></ruby>ります。すべてのスプライト<ruby>用<rt>よう</rt></ruby>で<ruby>作<rt>つく</rt></ruby>ってください。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5738" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13.png" alt="点字リストを作る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>ABC<ruby>順<rt>じゅん</rt></ruby>に26<ruby>個<rt>こ</rt></ruby>のデータを<ruby>作<rt>つく</rt></ruby>りましょう。メモ<ruby>帳<rt>ちょう</rt></ruby>などに<ruby>打<rt>う</rt></ruby>ち<ruby>込<rt>こ</rt></ruby>んで、<ruby>読<rt>よ</rt></ruby>み<ruby>込<rt>こ</rt></ruby>むと<ruby>楽<rt>らく</rt></ruby>です。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5739" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14.png" alt="リストにデータを読み込む" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>、アルファベット、<ruby>点字<rt>てんじ</rt></ruby>リストをまとめると<ruby>以下<rt>いか</rt></ruby>のとおりになります。</p>
<div class="scrollable-table"><table>
<tbody>
<tr>
<th>番号</th>
<th>アルファベット</th>
<th>点字テーブル</th>
</tr>
<tr>
<td align="center">1</td>
<td align="center">A</td>
<td align="center">100000</td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">B</td>
<td align="center">110000</td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">C</td>
<td align="center">100100</td>
</tr>
<tr>
<td align="center">4</td>
<td align="center">D</td>
<td align="center">100110</td>
</tr>
<tr>
<td align="center">5</td>
<td align="center">E</td>
<td align="center">100010</td>
</tr>
<tr>
<td align="center">6</td>
<td align="center">F</td>
<td align="center">110100</td>
</tr>
<tr>
<td align="center">7</td>
<td align="center">G</td>
<td align="center">110110</td>
</tr>
<tr>
<td align="center">8</td>
<td align="center">H</td>
<td align="center">110010</td>
</tr>
<tr>
<td align="center">9</td>
<td align="center">I</td>
<td align="center">010100</td>
</tr>
<tr>
<td align="center">10</td>
<td align="center">J</td>
<td align="center">101000</td>
</tr>
<tr>
<td align="center">11</td>
<td align="center">K</td>
<td align="center">111000</td>
</tr>
<tr>
<td align="center">12</td>
<td align="center">L</td>
<td align="center">101100</td>
</tr>
<tr>
<td align="center">13</td>
<td align="center">M</td>
<td align="center">101110</td>
</tr>
<tr>
<td align="center">14</td>
<td align="center">N</td>
<td align="center">101010</td>
</tr>
<tr>
<td align="center">15</td>
<td align="center">O</td>
<td align="center">111100</td>
</tr>
<tr>
<td align="center">16</td>
<td align="center">P</td>
<td align="center">111100</td>
</tr>
<tr>
<td align="center">17</td>
<td align="center">Q</td>
<td align="center">111110</td>
</tr>
<tr>
<td align="center">18</td>
<td align="center">R</td>
<td align="center">111010</td>
</tr>
<tr>
<td align="center">19</td>
<td align="center">S</td>
<td align="center">011100</td>
</tr>
<tr>
<td align="center">20</td>
<td align="center">T</td>
<td align="center">011110</td>
</tr>
<tr>
<td align="center">21</td>
<td align="center">U</td>
<td align="center">101001</td>
</tr>
<tr>
<td align="center">22</td>
<td align="center">V</td>
<td align="center">111001</td>
</tr>
<tr>
<td align="center">23</td>
<td align="center">W</td>
<td align="center">010111</td>
</tr>
<tr>
<td align="center">24</td>
<td align="center">X</td>
<td align="center">101101</td>
</tr>
<tr>
<td align="center">25</td>
<td align="center">Y</td>
<td align="center">101111</td>
</tr>
<tr>
<td align="center">26</td>
<td align="center">Z</td>
<td align="center">101011</td>
</tr>
</tbody>
</table></div>
<p><span class="marker-under-red">アルファベットのコスチュームと<ruby>点字<rt>てんじ</rt></ruby>リストのならびは、ABC<ruby>順<rt>じゅん</rt></ruby>になるようにしてください。</span></p>
<p>&nbsp;</p>
<h4>1の点のプログラム</h4>
<p><ruby>点字<rt>てんじ</rt></ruby>リストの<span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>」</b></span><ruby>番目<rt>ばんめ</rt></ruby>のデータをみて、1<ruby>番目<rt>ばんめ</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby>が1だったら●、0だったら0を<ruby>表示<rt>ひょうじ</rt></ruby>するプログラムを<ruby>作<rt>つく</rt></ruby>ります。</p>
<ol>
<li>イベントカテゴリから<span style="color: #ffd500;"><b>「<ruby>緑<rt>みどり</rt></ruby>のハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>をコードエリアに<ruby>出<rt>だ</rt></ruby>す。</li>
<li><ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「ずっと」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ffd500;"><b>「<ruby>緑<rt>みどり</rt></ruby>のハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の<ruby>下<rt>した</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「もし なら／でなければ」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ffab19;"><b>「ずっと」</b></span>の<ruby>中<rt>なか</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「( )=(50)」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #ffab19;"><b>「もし なら」</b></span>の<ruby>中<rt>なか</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「(りんご)の(1)<ruby>番目<rt>ばんめ</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby>」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #40bf4a;"><b>「( )=(50)」</b></span>の<ruby>左側<rt>ひだりがわ</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「<ruby>点字<rt>てんじ</rt></ruby>テーブルの(1)<ruby>番目<rt>ばんめ</rt></ruby>」</b></span>を<ruby>出<rt>だ</rt></ruby>し、<span style="color: #40bf4a;"><b>「(りんご)の(1)<ruby>番目<rt>ばんめ</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby>」</b></span>のりんごの<ruby>部分<rt>ぶぶん</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><span style="color: #ff8c1a;"><b>「<ruby>点字<rt>てんじ</rt></ruby>テーブルの(1)<ruby>番目<rt>ばんめ</rt></ruby>」</b></span>の1を<ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>」</b></span>に<ruby>変更<rt>へんこう</rt></ruby>する。</li>
<li>1の<ruby>点<rt>てん</rt></ruby>なので<span style="color: #40bf4a;"><b>「<ruby>点字<rt>てんじ</rt></ruby>テーブル（アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>）<ruby>番目<rt>ばんめ</rt></ruby>の(1)<ruby>番目<rt>ばんめ</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby>」</b></span>の1の<ruby>部分<rt>ぶぶん</rt></ruby>はそのまま。</li>
<li><span style="color: #ffab19;"><b>「もし<ruby>点字<rt>てんじ</rt></ruby>テーブルの(アルファベット<ruby>番<rt>ばん</rt></ruby><ruby>号<rt>ごう</rt></ruby>)<ruby>番目<rt>ばんめ</rt></ruby>の(1)<ruby>番目<rt>ばんめ</rt></ruby>の<ruby>文字<rt>もじ</rt></ruby>=(50)なら」</b></span>の50を1に<ruby>変更<rt>へんこう</rt></ruby>する。</li>
<li><ruby>見<rt>み</rt></ruby>た<ruby>目<rt>め</rt></ruby>カテゴリから<span style="color: #9966ff;"><b>「コスチュームを(コスチューム2)にする」</b></span>を<ruby>出<rt>だ</rt></ruby>し、もしの<ruby>下<rt>した</rt></ruby>とでなければの<ruby>下<rt>した</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li>1だった<ruby>場合<rt>ばあい</rt></ruby>、<ruby>点<rt>てん</rt></ruby>がある<ruby>場所<rt>ばしょ</rt></ruby>なので<span style="color: #9966ff;"><b>「コスチュームを(コスチューム2)にする」</b></span>にする。</li>
<li>1でない<ruby>場合<rt>ばあい</rt></ruby>は、<ruby>点<rt>てん</rt></ruby>がない<ruby>場所<rt>ばしょ</rt></ruby>なので<span style="color: #9966ff;"><b>「コスチュームを(コスチューム1)にする」</b></span>にする。</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5740" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15.png" alt="1の点のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>1の<ruby>点<rt>てん</rt></ruby>のスプライトをコピーして、2の<ruby>点<rt>てん</rt></ruby>～6の<ruby>点<rt>てん</rt></ruby>も<ruby>作<rt>つく</rt></ruby>りましょう。</p>
<p>どこを<ruby>変<rt>か</rt></ruby>えればいいか<ruby>自分<rt>じぶん</rt></ruby>で<ruby>考<rt>かんが</rt></ruby>えてみてください。</p>
<p>&nbsp;</p>
<h2><span id="toc7">まとめ</span></h2>
<p>アルファベットを<ruby>点字<rt>てんじ</rt></ruby>に<ruby>変換<rt>へんかん</rt></ruby>するプログラムの<ruby>作<rt>つく</rt></ruby>り<ruby>方<rt>かた</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>しました。</p>
<p>リストまわりは<ruby>少<rt>すこ</rt></ruby>し<ruby>複雑<rt>ふくざつ</rt></ruby>ですが、プログラムはなるべく<ruby>短<rt>みじか</rt></ruby>くなるようにしています。</p>
<p><ruby>変数<rt>へんすう</rt></ruby>「アルファベット」を<ruby>使<rt>つか</rt></ruby>って、<ruby>何番目<rt>なんばんめ</rt></ruby>のコスチュームを<ruby>出<rt>だ</rt></ruby>すのかと、<ruby>点字<rt>てんじ</rt></ruby>リストの<ruby>何番目<rt>なんばんめ</rt></ruby>をみるのかを<ruby>管理<rt>かんり</rt></ruby>していることをおさえておきましょう。</p>
<p><ruby>余裕<rt>よゆう</rt></ruby>があったら、かなを<ruby>点字<rt>てんじ</rt></ruby>に<ruby>変換<rt>へんかん</rt></ruby>するプログラミングも<ruby>考<rt>かんが</rt></ruby>えてみてください。</p>
<div class="blogcard-type bct-related">

<a rel="noopener" target="_self" href="https://living-maou.com/freestudy-theme/" title="【かんたん・すごい】小学生の自由研究に役立つプログラミング作品例19選" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【かんたん・すごい】小学生の自由研究に役立つプログラミング作品例19選</div><div class="blogcard-snippet internal-blogcard-snippet">夏休みの宿題で一番やっかいな自由研究。テーマ選びに困りますよね。今年はプログラミングに挑戦してみてはいかがでしょうか。この記事では【リビングの魔王】で紹介しているプログラミング作品と参考になる本を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/scratch-braille/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
