<?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>作品例 &#8211; リビングの魔王</title>
	<atom:link href="https://living-maou.com/tag/%E4%BD%9C%E5%93%81%E4%BE%8B/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>作品例 &#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>【スクラッチ(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>【スクラッチ(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>【マイクロビット×メイクコード】プログラミングでカウント100ゲームをおもしろくしよう！</title>
		<link>https://living-maou.com/microbit-count100/</link>
					<comments>https://living-maou.com/microbit-count100/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Fri, 05 Apr 2024 00:20:32 +0000</pubDate>
				<category><![CDATA[micro:bit]]></category>
		<category><![CDATA[MakeCode]]></category>
		<category><![CDATA[作品例]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6529</guid>

					<description><![CDATA[この記事では、マイクロビットでカウント100ゲームのプログラムの作り方を紹介しょうかいします。 マイクロビットの基本的きほんてきな使い方や機能きのうは分かったけれど 次に何を作っていいのか分からない 複雑ふくざつなゲーム [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6530" src="https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100.jpg 800w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>この記事では、マイクロビットで<b>カウント100ゲーム</b>のプログラムの作り方を<ruby>紹介<rt>しょうかい</rt></ruby>します。</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>
</ul>
</div>
<p>という人におすすめの作品です。</p>
<p>定番の遊びをプログラミングの力で、さらにおもしろくしましょう！</p>
<p>プログラムはとても<ruby>簡単<rt>かんたん</rt></ruby>！<ruby>初心者<rt>しょしんしゃ</rt></ruby>さんでも分かりやすいように<ruby>解説<rt>かいせつ</rt></ruby>しますよ。</p>
<p>Makecodeの<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/02/microbit-count100-01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6531" src="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-01.png" alt="カウント100ルール" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-01.png 800w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>カウント100は、2人<ruby>以上<rt>いじょう</rt></ruby>で行うゲームです。</p>
<p>「NOT100」や「100を言ってはいけないゲーム」とも言われています。</p>
<p>ルールは、下のとおりです。</p>
<div class="blank-box bb-blue">
<ol>
<li>プレイヤーは<ruby>順番<rt>じゅんばん</rt></ruby>に1から100まで数える</li>
<li>1度に数えられるのは3つまで</li>
<li><ruby>最後<rt>さいご</rt></ruby>に100と言ったプレイヤーが負け！</li>
</ol>
</div>
<p>&nbsp;</p>
<h2><span id="toc2">用意するもの</span></h2>
<ul>
<li>マイクロビット本体</li>
<li>電池ボックス</li>
</ul>
<p>1コずつあればOKです。</p>
<p>&nbsp;</p>
<p>プログラミングは、MakeCodeエディターを使います。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/microbit-makecode/">MakeCodeエディター<ruby>基本的<rt>きほんてき</rt></ruby>な使い方<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/microbit-makecode/" title="【マイクロビット】MakeCode（メイクコード）エディターの使い方" 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/06/eyecatch_microbit_makecode-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode.jpg 800w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-320x180.jpg 320w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【マイクロビット】MakeCode（メイクコード）エディターの使い方</div><div class="blogcard-snippet internal-blogcard-snippet">MakeCode（メイクコード）エディターはブラウザベースで利用できるmicro:bitの開発環境のひとつ。【リビングの魔王】ではMakeCodeエディターの使い方を初心者にも分かりやすくていねいに紹介します。</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="toc3">一番シンプルなプログラム</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6532" src="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-02.png" alt="一番シンプルなプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-02.png 800w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>Aボタンをおしたとき、<ruby>現在<rt>げんざい</rt></ruby>の数をカウントして、100<ruby>以上<rt>いじょう</rt></ruby>になったらゲームオーバーになるプログラムです。</p>
<p>Bボタンをおしたときに、<ruby>現在<rt>げんざい</rt></ruby>の数を<ruby>確認<rt>かくにん</rt></ruby>できるようにしました。</p>
<p>&nbsp;</p>
<h3><span id="toc4">最初だけ</span></h3>
<p><ruby>現在<rt>げんざい</rt></ruby>の数を<ruby>覚<rt>おぼ</rt></ruby>えておく<ruby>変数<rt>へんすう</rt></ruby>「count」を作り、<ruby>最初<rt>さいしょ</rt></ruby>に0を<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>んで、<ruby>変数<rt>へんすう</rt></ruby><span style="color: #dc143c;"><b>「count」</b></span>を作る<br />
2.<span style="color: #1e90ff;"><b>「<ruby>最初<rt>さいしょ</rt></ruby>だけ」</b></span>の中に<span style="color: #dc143c;"><b>「<ruby>変数<rt>へんすう</rt></ruby>（count）を 0 にする」</b></span>を入れる</p>
<p>&nbsp;</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>です。下の記事でくわしく<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-variable/" 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/10/eyechatch_scratch_variable2-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/10/eyechatch_scratch_variable2-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/10/eyechatch_scratch_variable2-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/10/eyechatch_scratch_variable2-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/10/eyechatch_scratch_variable2-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/10/eyechatch_scratch_variable2-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/10/eyechatch_scratch_variable2-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/10/eyechatch_scratch_variable2.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>
<h3><span id="toc5">ボタンAが押されたとき</span></h3>
<p>Aボタンをおしたとき、<ruby>現在<rt>げんざい</rt></ruby>の数(count)を1<ruby>増<rt>ふ</rt></ruby>やします。また、ボタンをおしたことが分かるように音を鳴らしましょう。</p>
<p>1.<span style="color: #d400d4;"><b>「ボタンAが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の中に<span style="color: #dc143c;"><b>「<ruby>変数<rt>へんすう</rt></ruby>（count）を 1 だけ<ruby>増<rt>ふ</rt></ruby>やす」</b></span>を入れる<br />
2.<span style="color: #e63022;"><b>「鳴らす 音を鳴らす 高さ(Hz)（上のファ）長さ（1/2<ruby>拍<rt>はく</rt></ruby>） 終わるまで」</b></span>を入れる</p>
<p>&nbsp;</p>
<p><ruby>現在<rt>げんざい</rt></ruby>の数(count)が100<ruby>以上<rt>いじょう</rt></ruby>だったら負けにします。</p>
<p>3.<span style="color: #00a4a6;"><b>「もし&lt;真&gt;なら」</b></span>を出し、真の部分に<ruby>条件<rt>じょうけん</rt></ruby><span style="color: #00a4a6;"><b>「<span style="color: #dc143c;">（count）</span>（≧）（100）」</b></span>を入れる<br />
4.<span style="color: #00a4a6;"><b>「もし count ≧ 100 なら」</b></span>の中に、ゲームオーバーになった時の<ruby>処理<rt>しょり</rt></ruby>を入れる</p>
<p>ゲームオーバーになった時の<ruby>処理<rt>しょり</rt></ruby>の<ruby>例<rt>れい</rt></ruby>：</p>
<p><span style="color: #1e90ff;"><b>「アイコンを<ruby>表示<rt>ひょうじ</rt></ruby>（がいこつ）」</b></span><br />
<span style="color: #e63022;"><b>「鳴らす（パワーダウン） バックグラウンドで一度だけ」</b></span></p>
<p>&nbsp;</p>
<div class="blank-box bb-tab bb-comment bb-blue">ゲームオーバーになった時の<ruby>処理<rt>しょり</rt></ruby>は、自由にアレンジしてみてくださいね！</div>
<p>&nbsp;</p>
<h3><span id="toc6">ボタンBが押されたとき</span></h3>
<p>Bボタンをおしたときに、<ruby>現在<rt>げんざい</rt></ruby>の数(count)を<ruby>表示<rt>ひょうじ</rt></ruby>します。</p>
<p>1.<span style="color: #d400d4;"><b>「ボタンBが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の中に<span style="color: #1e90ff;"><b>「数を<ruby>表示<rt>ひょうじ</rt></ruby><span style="color: #dc143c;">（count）</span>」</b></span>を入れる<br />
2.<span style="color: #1e90ff;"><b>「<ruby>表示<rt>ひょうじ</rt></ruby>を消す」</b></span>を下に<ruby>追加<rt>ついか</rt></ruby>する</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="toc7">もっとよくしよう！</span></h2>
<p>一番シンプルなプログラムだけで十分遊べますが、もっとゲームを<ruby>面白<rt>おもしろ</rt></ruby>くしたり、ズルやまちがいがおこらないような<ruby>工夫<rt>くふう</rt></ruby>を考えてみましょう！</p>
<p><ruby>例<rt>れい</rt></ruby>を3つ<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<div class="blank-box bb-blue">
<ul>
<li><a href="#case1"><ruby>現在<rt>げんざい</rt></ruby>の数が分からないようにする</a></li>
<li><a href="#case2">1度に3回までしかカウントできないようにする</a></li>
<li><a href="#case3">おじゃまキャラが<ruby>出現<rt>しゅつげん</rt></ruby></a></li>
</ul>
</div>
<p>&nbsp;</p>
<h3 id="case1"><span id="toc8">現在の数が分からないようにする</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-03.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-6533 size-full" src="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-03.png" alt="現在の数を分からないようにするプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-03.png 800w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>本来はボタンを3回おしたら「1、2、3」とおした回数だけ数を数えますが、<b>ウソをつくことができるルール</b>を足してみました。</p>
<p>たとえば、ボタンを1回しかおしていないのに「4、5」と2つ数えたり、ボタンを3回おしたのに「6」と1つしか数えなかったり、ウソがつけます。</p>
<p>いつ100を<ruby>超<rt>こ</rt></ruby>えるのか分からないハラハラと、ウソをつく・つかないのかけひきが生まれますよ。</p>
<p>プログラムは下の<ruby>画像<rt>がぞう</rt></ruby>のとおりです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6534" src="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-04.png" alt="現在の数を分からないようにするプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-04.png 800w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>Bボタンがおされたときの<ruby>処理<rt>しょり</rt></ruby>を消して、<ruby>現在<rt>げんざい</rt></ruby>の数を<ruby>確認<rt>かくにん</rt></ruby>できないようにします。</p>
<p>また、Aボタンをおしたときの音を消して、何回ボタンをおしたか相手に分からないようにしましょう。</p>
<p>だいたいの数が分かるように、<ruby>棒<rt>ぼう</rt></ruby>グラフを<ruby>表示<rt>ひょうじ</rt></ruby>しました。</p>
<ol>
<li><span style="color: #00a4a6;"><b>「もし count ≧ 100 なら」</b></span>の＋をクリックして<span style="color: #00a4a6;"><b>「でなければ」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する</li>
<li><span style="color: #00a4a6;"><b>「でなければ」</b></span>の下に<span style="color: #5c2d91;"><b>「<ruby>棒<rt>ぼう</rt></ruby>グラフを<ruby>表示<rt>ひょうじ</rt></ruby>する <ruby>値<rt>あたい</rt></ruby>：<span style="color: #dc143c;">count</span> <ruby>最大<rt>さいだい</rt></ruby><ruby>値<rt>ち</rt></ruby>：100」</b></span>を入れる</li>
</ol>
<div class="blank-box bb-blue"><span style="color: #5c2d91;"><b>「<ruby>棒<rt>ぼう</rt></ruby><ruby></ruby>グラフを<ruby>表示<rt>ひょうじ</rt></ruby>する」</b></span>は、のLEDのカテゴリにあります。グラフにする<b>「<ruby>値<rt>あたい</rt></ruby>」</b>と<b>「<ruby>最大<rt>さいだい</rt></ruby><ruby>値<rt>ち</rt></ruby>」</b>を<ruby>設定<rt>せってい</rt></ruby>し、25<ruby>個<rt>こ</rt></ruby>のLEDを<ruby>目盛<rt>めも</rt></ruby>りに見立てて<ruby>表示<rt>ひょうじ</rt></ruby>します。</div>
<p>&nbsp;</p>
<h3 id="case2"><span id="toc9">一度に3回までしかカウントできないようにする</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6535" src="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-05.png" alt="一度に3回までしかカウントできないようにする" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-05.png 800w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>まちがえて<b>Aボタンを4回<ruby>以上<rt>いじょう</rt></ruby>おせない</b>ようにしてみました。</p>
<p>自分のターンになったときにBボタンをおしてから、Aボタンをおすようにします。</p>
<p>プログラムは下の<ruby>画像<rt>がぞう</rt></ruby>のとおりです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6536" src="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-06.png" alt="一度に3回までしかカウントできないようにするプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-06.png 800w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h4>最初だけ</h4>
<p>Aボタンをおした回数を<ruby>覚<rt>おぼ</rt></ruby>えておく<ruby>変数<rt>へんすう</rt></ruby>「count3」を作り、<ruby>最初<rt>さいしょ</rt></ruby>に0を<ruby>設定<rt>せってい</rt></ruby>（<ruby>初期<rt>しょき</rt></ruby>化）します。</p>
<ol>
<li><ruby>変数<rt>へんすう</rt></ruby>→<ruby>変数<rt>へんすう</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>するを<ruby>選<rt>えら</rt></ruby>んで、<ruby>変数<rt>へんすう</rt></ruby><span style="color: #dc143c;"><b>「count3」</b></span>を作る</li>
<li><span style="color: #1e90ff;"><b>「<ruby>最初<rt>さいしょ</rt></ruby>だけ」</b></span>の中に<span style="color: #dc143c;"><b>「<ruby>変数<rt>へんすう</rt></ruby>（count3）を 0 にする」</b></span>を入れる</li>
</ol>
<p>&nbsp;</p>
<h4>ボタンAが押されたとき</h4>
<p>Aボタンをおした回数(count3)が3<ruby>以上<rt>いじょう</rt></ruby>だったら、<ruby>現在<rt>げんざい</rt></ruby>の数(count)を<ruby>増<rt>ふ</rt></ruby>やせないようにします。</p>
<ol>
<li><span style="color: #00a4a6;"><b>「もし&lt;真&gt;なら／でなければ」</b></span>を出し、真の部分に<ruby>条件<rt>じょうけん</rt></ruby><span style="color: #00a4a6;"><b>「<span style="color: #dc143c;">（count3）</span>（&lt;）（3）」</b></span>を入れる</li>
<li><span style="color: #00a4a6;"><b>「もし count3 &lt; 3 なら」</b></span>の中に、今までの<ruby>処理<rt>しょり</rt></ruby>を入れる</li>
<li><span style="color: #dc143c;"><b>「<ruby>変数<rt>へんすう</rt></ruby>（count）を 1 だけ<ruby>増<rt>ふ</rt></ruby>やす」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する</li>
<li><span style="color: #00a4a6;"><b>「でなければ」</b></span>の中に<span style="color: #e63022;"><b>「鳴らす 音を鳴らす 高さ(Hz)（下のド）長さ（1/2<ruby>拍<rt>はく</rt></ruby>） 終わるまで」</b></span>を入れる</li>
</ol>
<p>&nbsp;</p>
<h4>ボタンBが押されたとき</h4>
<p>Bボタンをおしたときに、Aボタンをおした回数（count3）をリセットします。</p>
<ol>
<li><span style="color: #e63022;"><b>「<ruby>変数<rt>へんすう</rt></ruby>（count3）を 0 にする」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する</li>
<li><span style="color: #e63022;"><b>「鳴らす（ハッピー）終わるまで」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する</li>
</ol>
<p>&nbsp;</p>
<h3 id="case3"><span id="toc10">おじゃまキャラが出現</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6537" src="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-07.png" alt="おじゃまキャラが出現" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-07.png 800w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>実はこのゲームには<ruby>必勝法<rt>ひっしょうほう</rt></ruby>があります（<ruby>興味<rt>きょうみ</rt></ruby>がある人は調べてみてくださいね）</p>
<p>いつも勝ててしまうのは<ruby>面白<rt>おもしろ</rt></ruby>くないので、<b>時々おじゃまキャラが<ruby>出現<rt>しゅつげん</rt></ruby>して<ruby>現在<rt>げんざい</rt></ruby>の数を勝手に<ruby>増<rt>ふ</rt></ruby>やしてしまう</b>ようにしました。</p>
<p><a href="#case2">一度に3回までしかカウントできないようにするプログラム</a>に<ruby>処理<rt>しょり</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>します。</p>
<p>プログラムは下の<ruby>画像<rt>がぞう</rt></ruby>の通りです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6538" src="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-08.png" alt="おじゃまキャラが出現するプログラム1" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-08.png 800w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-09.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6539" src="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-09.png" alt="おじゃまキャラが出現するプログラム2" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-09.png 800w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-09-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-09-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-09-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-09-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-09-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/02/microbit-count100-09-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h4>ボタンBが押されたとき</h4>
<p>ランダムなタイミングでおじゃまキャラが<ruby>出現<rt>しゅつげん</rt></ruby>させます。</p>
<ol>
<li><span style="color: #00a4a6;"><b>「もし&lt;真&gt;なら／でなければ」</b></span>を出し、真の部分に<ruby>条件<rt>じょうけん</rt></ruby><span style="color: #00a4a6;"><b>「<span style="color: #9400d3;">（ 0 から 4 までの<ruby>乱数<rt>らんすう</rt></ruby></span>）（=）（4）」</b></span>を入れる</li>
<li><span style="color: #00a4a6;"><b>「でなければ」</b></span>の中に<span style="color: #1e90ff;"><b>「数を<ruby>表示<rt>ひょうじ</rt></ruby><span style="color: #dc143c;">（count）</span>」</b></span>と<span style="color: #1e90ff;"><b>「<ruby>表示<rt>ひょうじ</rt></ruby>を消す」</b></span>を入れる</li>
<li><span style="color: #dc143c;"><b>「<ruby>変数<rt>へんすう</rt></ruby>（count3）を 0 にする」</b></span>と<span style="color: #e63022;"><b>「鳴らす（ハッピー）終わるまで」</b></span>を<span style="color: #00a4a6;"><b>「もし 0から4までの<ruby>乱数<rt>らんすう</rt></ruby> = 4 なら」</b></span>の下に<ruby>配置<rt>はいち</rt></ruby>する</li>
</ol>
<p><span style="color: #9400d3;"><b>「0～4までの<ruby>乱数<rt>らんすう</rt></ruby>」</b></span>の結果が4だった場合、おじゃまキャラを<ruby>出現<rt>しゅつげん</rt></ruby>させます。4<ruby>以外<rt>いがい</rt></ruby>だった場合は、<ruby>現在<rt>げんざい</rt></ruby>の数を<ruby>表示<rt>ひょうじ</rt></ruby>します。</p>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><b><ruby>乱数<rt>らんすう</rt></ruby></b></span>とは、ある<ruby>範囲<rt>はんい</rt></ruby>の<ruby>数値<rt>すうち</rt></ruby>から、<span class="marker-under-red">ランダムに取り出した<ruby>数値<rt>すうち</rt></ruby></span>のこと。ランダムは、きまりがなくデタラメということです。</p>
<div class="blank-box bb-blue"><span style="color: #9400d3;"><b>「1～10までの<ruby>乱数<rt>らんすう</rt></ruby>」</b></span>ブロックは、1～10の部分に一番小さな数と一番大きな数を入れ、その中からランダムな<ruby>数値<rt>すうち</rt></ruby>を作り出します。</div>
<p><ruby>条件<rt>じょうけん</rt></ruby>が<span style="color: #00a4a6;"><b>「<span style="color: #9400d3;">0から4までの<ruby>乱数<rt>らんすう</rt></ruby></span> = 4」</b></span>場合、5<ruby>種類<rt>しゅるい</rt></ruby>の数字（0、1、2、3、4）のうちのひとつが当てはまるので、<ruby>確率<rt>かくりつ</rt></ruby>は5分の1です。</p>
<p>今回は5分の1の<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>にしました。</p>
<p><span style="color: #ff6600;"><b><ruby>関数<rt>かんすう</rt></ruby></b></span>とは、<span class="marker-under-red">命令のまとまり</span>のこと。何度も使う<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="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-function/" 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/10/eyecatch_scratch_function-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_function-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function.jpg 800w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function-320x180.jpg 320w" 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>
<p><ruby>関数<rt>かんすう</rt></ruby>「Nuisance（やっかいもの）」を作り、ボタンBが<ruby>押<rt>お</rt></ruby>されたときの処理の中で呼び出します。</p>
<p>1.高度なブロック → <ruby>関数<rt>かんすう</rt></ruby> → <ruby>関数<rt>かんすう</rt></ruby>を<ruby>作成<rt>さくせい</rt></ruby>する を<ruby>選<rt>えら</rt></ruby>んで<span style="color: #3455db;"><b><ruby>関数<rt>かんすう</rt></ruby>「Nuisance」</b></span>を<ruby>作成<rt>さくせい</rt></ruby>する<br />
2.ボタンBが<ruby>押<rt>お</rt></ruby>されたときの<span style="color: #00a4a6;"><b>「もし 0から4までの<ruby>乱数<rt>らんすう</rt></ruby> = 4 なら」</b></span>の中に<span style="color: #3455db;"><b>「<ruby>呼<rt>よ</rt></ruby>び<ruby>出<rt>だ</rt></ruby>し Nuisance」</b></span>を入れる</p>
<p>&nbsp;</p>
<p>おじゃまキャラの<ruby>出現<rt>しゅつげん</rt></ruby>で100を<ruby>超<rt>こ</rt></ruby>えてしまわないように、95<ruby>以上<rt>いじょう</rt></ruby>になったら出てこないようにします。</p>
<p>3.<span style="color: #00a4a6;"><b>「もし&lt;真&gt;なら」</b></span>を出し、真の部分に<ruby>条件<rt>じょうけん</rt></ruby><span style="color: #00a4a6;"><b>「（<span style="color: #dc143c;">count</span>）（&lt;）（95）」</b></span>を入れる</p>
<p>4.<span style="color: #1e90ff;"><b>「アイコンを<ruby>表示<rt>ひょうじ</rt></ruby>（すばらしい）」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する<br />
5.<span style="color: #e63022;"><b>「鳴らす（くすくす<ruby>笑<rt>わら</rt></ruby>う）終わるまで」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する</p>
<p>&nbsp;</p>
<p><ruby>変数<rt>へんすう</rt></ruby>「random」を作って1～3のランダムな数を<ruby>保存<rt>ほぞん</rt></ruby>します。</p>
<p>6.<ruby>変数<rt>へんすう</rt></ruby>→<ruby>変数<rt>へんすう</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>するを<ruby>選<rt>えら</rt></ruby>んで<span style="color: #dc143c;"><b><ruby>変数<rt>へんすう</rt></ruby>「random」</b></span>を作る<br />
7.<span style="color: #dc143c;"><b>「<ruby>変数<rt>へんすう</rt></ruby>（random）を<span style="color: #5c2d91;">（ 1 から 3 までの<ruby>乱数<rt>らんすう</rt></ruby>）</span>にする」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する</p>
<p>&nbsp;</p>
<p><ruby>現在<rt>げんざい</rt></ruby>の数 + 変数random = 足した後の数 を<ruby>表示<rt>ひょうじ</rt></ruby>します。</p>
<p>8.<span style="color: #1e90ff;"><b>「数を<ruby>表示<rt>ひょうじ</rt></ruby><span style="color: #dc143c;">(count)</span>」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する<br />
9.<span style="color: #1e90ff;"><b>「文字列を<ruby>表示<rt>ひょうじ</rt></ruby>(&#8220;+&#8221;)」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する<br />
10.<span style="color: #1e90ff;"><b>「数を<ruby>表示<rt>ひょうじ</rt></ruby><span style="color: #dc143c;">(random)</span>」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する<br />
11.<span style="color: #1e90ff;"><b>「文字列を<ruby>表示<rt>ひょうじ</rt></ruby>(&#8220;=&#8221;)」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する<br />
12.<span style="color: #dc143c;"><b>「<ruby>変数<rt>へんすう</rt></ruby>（count）を (random) だけ<ruby>増<rt>ふ</rt></ruby>やす」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する<br />
13.<span style="color: #1e90ff;"><b>「数を<ruby>表示<rt>ひょうじ</rt></ruby><span style="color: #dc143c;">(count)</span>」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する<br />
14.<span style="color: #1e90ff;"><b>「<ruby>表示<rt>ひょうじ</rt></ruby>を消す」</b></span>を<ruby>追加<rt>ついか</rt></ruby>する</p>
<p>&nbsp;</p>
<h2><span id="toc11">まとめ</span></h2>
<p><ruby>以上<rt>いじょう</rt></ruby>、「カウント100ゲーム」のプログラムを<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-check">

<a rel="noopener" target="_self" href="https://living-maou.com/microbit-hideandseek/" 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/2020/12/eyecatch_microbit_hideandseek-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/12/eyecatch_microbit_hideandseek-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/12/eyecatch_microbit_hideandseek-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/12/eyecatch_microbit_hideandseek.jpg 800w, https://living-maou.com/wp-content/uploads/2020/12/eyecatch_microbit_hideandseek-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/12/eyecatch_microbit_hideandseek-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/12/eyecatch_microbit_hideandseek-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2020/12/eyecatch_microbit_hideandseek-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/12/eyecatch_microbit_hideandseek-320x180.jpg 320w" 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>
<div class="micro-top micro-center">＼【PR】身のまわりの物を使った32の作品を収録！／</div><!-- START MoshimoAffiliateEasyLink -->
<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":"【v2対応】改訂新版 micro:bitであそぼう! たのしい電子工作\u0026プログラミング","b":"","t":"","d":"https:\/\/m.media-amazon.com","c_p":"\/images\/I","p":["\/51XJjGz1DQL._SL500_.jpg","\/51H-GmDB+wL._SL500_.jpg","\/51UNvw6m8qL._SL500_.jpg","\/51bKTI1lUcL._SL500_.jpg","\/51j+sGSNs5L._SL500_.jpg","\/51rIBlOWC9L._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/4297126672","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\/4297126672","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"u_bc":"#f76956","u_tx":"楽天市場で見る","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/%E3%80%90v2%E5%AF%BE%E5%BF%9C%E3%80%91%E6%94%B9%E8%A8%82%E6%96%B0%E7%89%88%20micro%3Abit%E3%81%A7%E3%81%82%E3%81%9D%E3%81%BC%E3%81%86!%20%E3%81%9F%E3%81%AE%E3%81%97%E3%81%84%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%26%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0\/","s_n":"rakuten","u_so":2,"a_id":1820957,"p_id":54,"pc_id":54,"pl_id":27059,"id":21},{"u_bc":"#66a7ff","u_tx":"Yahoo!ショッピングで見る","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=%E3%80%90v2%E5%AF%BE%E5%BF%9C%E3%80%91%E6%94%B9%E8%A8%82%E6%96%B0%E7%89%88%20micro%3Abit%E3%81%A7%E3%81%82%E3%81%9D%E3%81%BC%E3%81%86!%20%E3%81%9F%E3%81%AE%E3%81%97%E3%81%84%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%26%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0","s_n":"yahoo","u_so":3,"a_id":1832853,"p_id":1225,"pc_id":1925,"pl_id":27061,"id":22}],"eid":"GM3uR","s":"s"});
</script>
<div id="msmaflink-GM3uR">リンク</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/microbit-count100/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>
		<item>
		<title>スプリンギンでデジタル絵本を作ろう！初心者向けのアイデア4選</title>
		<link>https://living-maou.com/springin-picturebook/</link>
					<comments>https://living-maou.com/springin-picturebook/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Sat, 05 Aug 2023 04:47:29 +0000</pubDate>
				<category><![CDATA[ビジュアルプログラミング]]></category>
		<category><![CDATA[Springin]]></category>
		<category><![CDATA[作品例]]></category>
		<category><![CDATA[自由研究]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=5682</guid>

					<description><![CDATA[プログラミングアプリスプリンギン(Springin&#8217;)を使つかえば、誰だれでも気軽きがるにデジタル絵本えほんを作成さくせいできます。 この記事きじでは、初心者しょしんしゃでもかんたんに取とり入いれられる4つの [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/07/eyecatch-springin-picturebook.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5683" src="https://living-maou.com/wp-content/uploads/2023/07/eyecatch-springin-picturebook.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/07/eyecatch-springin-picturebook.jpg 800w, https://living-maou.com/wp-content/uploads/2023/07/eyecatch-springin-picturebook-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/07/eyecatch-springin-picturebook-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/07/eyecatch-springin-picturebook-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/07/eyecatch-springin-picturebook-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/07/eyecatch-springin-picturebook-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/07/eyecatch-springin-picturebook-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>プログラミングアプリ<b>スプリンギン(Springin&#8217;)</b>を<ruby>使<rt>つか</rt></ruby>えば、<ruby>誰<rt>だれ</rt></ruby>でも<ruby>気軽<rt>きがる</rt></ruby>に<b>デジタル<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>れられる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>にはない<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>にもおすすめです。</p>
<h2><span id="toc1">属性をつけてプログラミング「スプリンギン(Springin&#8217;)」</span></h2>
<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="_blank" href="https://www.springin.org/">スプリンギン(Springin&#8217;)<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>きをつけられる<b><ruby>属性<rt>ぞくせい</rt></ruby>アイコン</b>を<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせるだけでゲームや<ruby>絵本<rt>えほん</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ることができるプログラミングアプリ。</p>
<p>スマホ・タブレット(iPadやiPhone)から、<ruby>基本<rt>きほん</rt></ruby><ruby>無料<rt>むりょう</rt></ruby>で<ruby>利用<rt>りよう</rt></ruby>することができます。</p>
<div id="appreach-box" style="text-align: left;">
<p><img decoding="async" id="appreach-image" style="float: left; margin: 10px; width: 25%; max-width: 120px; border-radius: 10%;" src="https://is1-ssl.mzstatic.com/image/thumb/Purple126/v4/b1/d1/c0/b1d1c0b2-ab74-06da-01fe-c1cee222ab15/AppIcon-1x_U007emarketing-0-7-0-85-220.png/512x512bb.jpg" alt="Springin'" /></p>
<div class="appreach-info" style="margin: 10px;">
<div id="appreach-appname">Springin&#8217;</div>
<div id="appreach-developer" style="font-size: 80%; display: inline-block;">開発元:<span id="appreach-developerurl">SHIKUMI DESIGN, Inc.</span></div>
<div id="appreach-price" style="font-size: 80%; display: inline-block;">無料</div>
<div class="appreach-powered" style="font-size: 80%; display: inline-block;">posted with<a rel="nofollow noopener" target="_blank" title="アプリーチ" href="https://mama-hack.com/app-reach/">アプリーチ<span class="fa fa-external-link external-icon anchor-icon"></span></a></div>
<div class="appreach-links" style="float: left;">
<div id="appreach-itunes-link" style="display: inline-block;"><a rel="nofollow noopener" target="_blank" id="appreach-itunes" href="https://apps.apple.com/jp/app/springin/id1184243692?uo=4"><img decoding="async" style="height: 40px; width: 135px;" src="https://nabettu.github.io/appreach/img/itune_ja.svg" /></a></div>
<div id="appreach-gplay-link" style="display: inline-block;"><a rel="nofollow noopener" target="_blank" id="appreach-gplay" href="https://play.google.com/store/apps/details?id=jp.co.shikumi.springin"><img decoding="async" style="height: 40px; width: 134.5px;" src="https://nabettu.github.io/appreach/img/gplay_ja.png" /></a></div>
</div>
</div>
<div class="appreach-footer" style="margin-bottom: 10px; clear: left;"></div>
</div>
<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></span>です。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/springin-start/">スプリンギンのはじめ<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/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>デジタル<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>れる</span>ので、<ruby>初心者<rt>しょしんしゃ</rt></ruby>さんにおすすめです。</p>
<p><ruby>今回<rt>こんかい</rt></ruby>は、<ruby>私<rt>わたし</rt></ruby>が<ruby>作<rt>つく</rt></ruby>った『<a rel="noopener" target="_blank" href="https://play.springin.org/share/work/088F7850-55A5-4723-A033-D3635AAB64F7">おむすびころりん<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>

<a rel="noopener" target="_blank" href="https://play.springin.org/share/work/088F7850-55A5-4723-A033-D3635AAB64F7" title="【デジタル絵本】おむすびころりん | Springin’" 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/983f6425bcc80e6f8230bdb717a299c7.jpg" 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">【デジタル絵本】おむすびころりん | Springin’</div><div class="blogcard-snippet external-blogcard-snippet"></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://play.springin.org/share/work/088F7850-55A5-4723-A033-D3635AAB64F7" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">play.springin.org</div></div></div></div></a>
<p>&nbsp;</p>
<h2><span id="toc2">ページ送り</span></h2>
<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/07/springin-picturebook01.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5684" src="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook01.jpg" alt="スプリンギン ページをすすめるボタン" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook01.jpg 800w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook01-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook01-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook01-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook01-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook01-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook01-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ol>
<li><ruby>複数<rt>ふくすう</rt></ruby>ページ<ruby>作<rt>つく</rt></ruby>る<br />
シーンメニューのシーン<ruby>追加<rt>ついか</rt></ruby>ボタンでページを<ruby>増<rt>ふ</rt></ruby>やせます。</li>
<li>ボタンになるアイテムを<ruby>描<rt>か</rt></ruby>く</li>
<li>アイテムを<ruby>配置<rt>はいち</rt></ruby>する</li>
<li><b>「シーンチェンジ」</b><ruby>属性<rt>ぞくせい</rt></ruby>をつける</li>
<li><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>びます。</li>
</ol>
</div>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook02.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5685" src="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook02.jpg" alt="ページ送りボタン 属性" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook02.jpg 800w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook02-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ページ<ruby>送<rt>おく</rt></ruby>りボタンは<b>「ピン」</b><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>ページを<ruby>進<rt>すす</rt></ruby>めたり、もどったりするボタンだけでも<ruby>絵本<rt>えほん</rt></ruby>になりますが、<b><ruby>動<rt>うご</rt></ruby>き</b>をつけるとより<ruby>楽<rt>たの</rt></ruby>しい<ruby>作品<rt>さくひん</rt></ruby>になります。</p>
<h3><span id="toc4">おにぎりがコロコロ転がるしかけ</span></h3>
<p>おにぎりがコロコロ<ruby>転<rt>ころ</rt></ruby>がるしかけは、<a rel="noopener" target="_blank" href="https://youtu.be/8nL3IwMSzao">コロコロゲーム<span class="fa fa-external-link external-icon anchor-icon"></span></a>の<ruby>応用<rt>おうよう</rt></ruby>で<ruby>作<rt>つく</rt></ruby>りました。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook03.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5686" src="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook03.jpg" alt="おにぎりが転がるしかけ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook03.jpg 800w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook03-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook03-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook03-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook03-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook03-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook03-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>がるしかけです。</p>
<p>シーン<ruby>属性<rt>ぞくせい</rt></ruby><b>「<ruby>重力<rt>じゅうりょく</rt></ruby>」</b>をつけるのを<ruby>忘<rt>わす</rt></ruby>れずに。</p>
<p>&nbsp;</p>
<h3><span id="toc5">ねずみがピョンピョンジャンプするしかけ</span></h3>
<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/2023/07/springin-picturebook04.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5687" src="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook04.jpg" alt="ねずみがピョンピョンするしかけ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook04.jpg 800w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook04-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook04-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook04-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook04-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook04-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook04-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ねずみに<b>「<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>さないようにしましょう。</p>
<p>&nbsp;</p>
<h2><span id="toc6">効果音をつける</span></h2>
<p><ruby>音<rt>おと</rt></ruby>が<ruby>出<rt>で</rt></ruby>せたらもっと<ruby>楽<rt>たの</rt></ruby>しいですね。</p>
<p><b>「<ruby>音<rt>おと</rt></ruby>」</b><ruby>属性<rt>ぞくせい</rt></ruby>をつけることで<ruby>効果音<rt>こうかおん</rt></ruby>やBGMをつけることができます。</p>
<h3><span id="toc7">ぶつかったら音を再生する</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook05.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5692" src="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook05.jpg" alt="ぶつかったら音を再生する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook05.jpg 800w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook05-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook05-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook05-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook05-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook05-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook05-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>わせることで、アイテムどうしがぶつかった<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/2023/07/springin-picturebook06.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5693" src="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook06.jpg" alt="自動的に音を再生する属性" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook06.jpg 800w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook06-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook06-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook06-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook06-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook06-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook06-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><b>「オート」</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>されます。</p>
<p>BGMに<ruby>使<rt>つか</rt></ruby>いたい<ruby>時<rt>とき</rt></ruby>は、となりの<b>「ループ」</b><ruby>属性<rt>ぞくせい</rt></ruby>もつけておきましょう。</p>
<p>&nbsp;</p>
<h3><span id="toc9">Springin&#8217; Sound Stockの音を使う方法</span></h3>
<p>「<a rel="noopener" target="_blank" href="https://www.springin.org/sound-stock/">Springin&#8217; Sound Stock（スプリンギンサウンドストック）<span class="fa fa-external-link external-icon anchor-icon"></span></a>」は、1,000<ruby>点<rt>てん</rt></ruby><ruby>以上<rt>いじょう</rt></ruby>のBGMや<ruby>効果音<rt>こうかおん</rt></ruby>を<ruby>収録<rt>しゅうろく</rt></ruby>するフリー<ruby>音源<rt>おんげん</rt></ruby>サイトです。</p>

<a rel="noopener" target="_blank" href="https://www.springin.org/sound-stock/" title="無料 BGM・効果音のフリー音源素材 | Springin’ Sound Stock" 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/ea23b5770212f445698f2f774fd1cd48.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">無料 BGM・効果音のフリー音源素材 | Springin’ Sound Stock</div><div class="blogcard-snippet external-blogcard-snippet">商用利用可能のBGM・効果音が1000点以上！動画やゲーム開発、イベントに使える音素材を無料公開しています。スプリンギンでのゲーム制作にも使用可能です。</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://www.springin.org/sound-stock/" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">www.springin.org</div></div></div></div></a>
<p>「Springin&#8217; Sound Stock」から<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>
<h4>Springin&#8217; Sound Stockから音をダウンロード</h4>
<p>Springin&#8217; Sound Stock<ruby>呼<rt>よ</rt></ruby>び<ruby>出<rt>だ</rt></ruby>しボタンから、Springin&#8217; Sound Stockを<ruby>開<rt>ひら</rt></ruby>きます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook09.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5688" src="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook09.jpg" alt="SSSから音源をダウンロード" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook09.jpg 800w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook09-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook09-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook09-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook09-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook09-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook09-320x180.jpg 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>アイテム<ruby>一覧<rt>いちらん</rt></ruby>に<ruby>切<rt>き</rt></ruby>り<ruby>替<rt>か</rt></ruby>える</li>
<li>Springin&#8217; Sound Stock<ruby>呼<rt>よ</rt></ruby>び<ruby>出<rt>だ</rt></ruby>しボタンをタップ</li>
<li>Springin&#8217; Sound Stockから<ruby>使<rt>つか</rt></ruby>いたい<ruby>音<rt>おと</rt></ruby>を<ruby>選<rt>えら</rt></ruby>ぶ<br />
<ruby>再生<rt>さいせい</rt></ruby>ボタンで<ruby>聞<rt>き</rt></ruby>くことができます。</li>
<li><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>ます。</li>
<li><ruby>素材<rt>そざい</rt></ruby>ストック<ruby>画面<rt>がめん</rt></ruby>の<ruby>音<rt>おと</rt></ruby>アイテム<ruby>一覧<rt>いちらん</rt></ruby><ruby>追加<rt>ついか</rt></ruby>される</li>
</ol>
</div>
<p><a rel="noopener" target="_blank" href="https://note.com/springin/n/nf93943384a0b">「Springin&#8217; Sound Stock」から音を取り込む方法<span class="fa fa-external-link external-icon anchor-icon"></span></a>は、<ruby>公式<rt>こうしき</rt></ruby>のnoteでくわしく<ruby>紹介<rt>しょうかい</rt></ruby>されています。</p>
<p>&nbsp;</p>
<h4>取り込んだ音をワークに使う</h4>
<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/07/springin-picturebook10.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5689" src="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook10.jpg" alt="音をワークに使う" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook10.jpg 800w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook10-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook10-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook10-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook10-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook10-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook10-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ol>
<li><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>ストックをタップ</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>
</ol>
</div>
<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>に<b>「このサイトを<ruby>使<rt>つか</rt></ruby>いました」</b>と<ruby>書<rt>か</rt></ruby>いておきましょう。</p>
<div class="blank-box bb-tab bb-check bb-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>」なのか、<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>の<ruby>人<rt>ひと</rt></ruby>に<ruby>確認<rt>かくにん</rt></ruby>してもらってくださいね！</div>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook07.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5690" src="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook07.jpg" alt="フリー素材を使った時はワークの説明文に記載" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook07.jpg 800w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook07-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook07-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook07-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook07-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook07-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook07-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>書<rt>か</rt></ruby>き<ruby>方<rt>かた</rt></ruby>の<ruby>例<rt>れい</rt></ruby></p>
<div class="blank-box bb-blue">「Springin&#8217; Sound Stockの<ruby>音<rt>おと</rt></ruby>を<ruby>使<rt>つか</rt></ruby>いました」<br />
「<ruby>音<rt>おと</rt></ruby>：スプリンギンサウンドストック」</div>
<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="toc10">お話の展開を分ける</span></h2>
<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/2023/07/springin-picturebook08.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5691" src="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook08.jpg" alt="選択によってストーリーを分岐" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook08.jpg 800w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook08-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook08-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook08-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook08-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook08-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/07/springin-picturebook08-320x180.jpg 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>れます。</p>
<p>&nbsp;</p>
<h2><span id="toc11">まとめ</span></h2>
<p>スプリンギン(Springin&#8217;)でデジタル<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>サイトの<a rel="noopener" target="_blank" href="https://support.springin.org/jp/attributes/"><ruby>属性<rt>ぞくせい</rt></ruby>ガイド<span class="fa fa-external-link external-icon anchor-icon"></span></a>から<ruby>調<rt>しら</rt></ruby>べられますよ。</p>
<p>ぜひ<ruby>自分<rt>じぶん</rt></ruby>だけのオリジナル<ruby>絵本<rt>えほん</rt></ruby>を<ruby>作<rt>つく</rt></ruby>ってみてくださいね。</p>
<div class="micro-top micro-center">＼【PR】スプリンギンでゲームをつくろう！／</div><!-- START MoshimoAffiliateEasyLink -->
<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?20210203","msmaflink");
msmaflink({"n":"はじめてのスプリンギン 〜プログラミングを学んでゲームをつくろう〜","b":"","t":"","d":"https://m.media-amazon.com","c_p":"/images/I","p":["/51FYhaCWt7L._SL500_.jpg","/51DYbRcRz6L._SL500_.jpg","/51PHh6n-JXL._SL500_.jpg","/41FWfmXMRHL._SL500_.jpg","/51H3Zs7S5+L._SL500_.jpg","/510cBVw4MeL._SL500_.jpg"],"u":{"u":"https://www.amazon.co.jp/dp/4297118076","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/4297118076","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":7,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https://search.rakuten.co.jp/search/mall/%E3%81%AF%E3%81%98%E3%82%81%E3%81%A6%E3%81%AE%E3%82%B9%E3%83%97%E3%83%AA%E3%83%B3%E3%82%AE%E3%83%B3%20%E3%80%9C%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E3%82%92%E5%AD%A6%E3%82%93%E3%81%A7%E3%82%B2%E3%83%BC%E3%83%A0%E3%82%92%E3%81%A4%E3%81%8F%E3%82%8D%E3%81%86%E3%80%9C/","a_id":1820957,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":8,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https://shopping.yahoo.co.jp/search?first=1u0026p=%E3%81%AF%E3%81%98%E3%82%81%E3%81%A6%E3%81%AE%E3%82%B9%E3%83%97%E3%83%AA%E3%83%B3%E3%82%AE%E3%83%B3%20%E3%80%9C%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E3%82%92%E5%AD%A6%E3%82%93%E3%81%A7%E3%82%B2%E3%83%BC%E3%83%A0%E3%82%92%E3%81%A4%E3%81%8F%E3%82%8D%E3%81%86%E3%80%9C","a_id":1832853,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"HojzN","s":"s"});
</script>
<div id="msmaflink-HojzN">リンク</div>
<!-- MoshimoAffiliateEasyLink END -->
<p>&nbsp;</p>
<div class="blogcard-type bct-related">

<a rel="noopener" target="_self" href="https://living-maou.com/freestudy-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/2021/07/eyecatch_freestudy-matome-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-matome-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-matome-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-matome-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-matome-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-matome-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-matome-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-matome.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>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/springin-picturebook/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Sphero Mini】ハロウィン飾りを工作しよう「走る！カボチャのおばけ」</title>
		<link>https://living-maou.com/sphero-halloween/</link>
					<comments>https://living-maou.com/sphero-halloween/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Sun, 25 Sep 2022 05:27:03 +0000</pubDate>
				<category><![CDATA[フィジカルプログラミング]]></category>
		<category><![CDATA[Sphero]]></category>
		<category><![CDATA[作品例]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=4387</guid>

					<description><![CDATA[トリックオアトリート！ ハロウィンはすっかり日本に定着した行事になりましたね。 ハロウィンの飾りを子どもと手作りして楽しむという人も多いのではないでしょうか。 この記事では、球体型ロボットSphero Miniと紙コップ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-halloween.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4388" src="https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-halloween.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-halloween.jpg 800w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-halloween-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-halloween-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-halloween-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-halloween-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-halloween-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-halloween-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>ハロウィンはすっかり日本に定着した行事になりましたね。</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%2FB072B6QVVW">Sphero Mini<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: 0px;" 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" />と紙コップを使った<b>「走る！ジャック・オー・ランタン」</b>の作り方を紹介します。</p>
<p>誰でもカンタンにひと味違うハロウィン飾りを作ることができますよ。</p>
<p>ぜひ周りの人を驚かせてみてくださいね！</p>
<h2><span id="toc1">走る！ジャック・オー・ランタン</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween07.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4406" src="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween07.jpg" alt="走るジャック・オー・ランタン" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween07.jpg 800w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween07-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween07-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween07-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween07-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween07-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween07-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>紙コップでジャック・オー・ランタンを作り、その中に<b>Sphero</b>を入れて走らせます。</p>
<p>動かすとこんな感じです。</p>
<blockquote class="twitter-tweet" data-width="550" data-dnt="true">
<p lang="ja" dir="ltr">走るジャック・オー・ランタンを見たことあるか？<a rel="noopener" target="_blank" href="https://twitter.com/hashtag/Sphero?src=hash&amp;ref_src=twsrc%5Etfw">#Sphero<span class="fa fa-external-link external-icon anchor-icon"></span></a> <a rel="noopener" target="_blank" href="https://twitter.com/hashtag/%E3%82%B9%E3%83%95%E3%82%A3%E3%83%AD?src=hash&amp;ref_src=twsrc%5Etfw">#スフィロ<span class="fa fa-external-link external-icon anchor-icon"></span></a> <a rel="noopener" target="_blank" href="https://twitter.com/hashtag/%E3%83%8F%E3%83%AD%E3%82%A6%E3%82%A3%E3%83%B3?src=hash&amp;ref_src=twsrc%5Etfw">#ハロウィン<span class="fa fa-external-link external-icon anchor-icon"></span></a> <a rel="noopener" target="_blank" href="https://t.co/XfJBsljlbM">pic.twitter.com/XfJBsljlbM<span class="fa fa-external-link external-icon anchor-icon"></span></a></p>
<p>&mdash; メソ@子ども向けプログラミング教材で遊ぼう (@Meso_blog) <a rel="noopener" target="_blank" href="https://twitter.com/Meso_blog/status/1571300036730040320?ref_src=twsrc%5Etfw">September 18, 2022<span class="fa fa-external-link external-icon anchor-icon"></span></a></p></blockquote>
<p><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script></p>
<p>&nbsp;</p>
<h3><span id="toc2">Sphero（スフィロ）とは球体型のロボット</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/09/sphero-mini-rev14.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4405" src="https://living-maou.com/wp-content/uploads/2022/09/sphero-mini-rev14.jpg" alt="sphero mini" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/09/sphero-mini-rev14.jpg 800w, https://living-maou.com/wp-content/uploads/2022/09/sphero-mini-rev14-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/09/sphero-mini-rev14-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/09/sphero-mini-rev14-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/09/sphero-mini-rev14-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/09/sphero-mini-rev14-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/09/sphero-mini-rev14-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>紙コップに入っているボールのような物体は、<b>Sphero（スフィロ）</b>という球体型のロボットです。</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%2FB07DLM5DL7">Sphero BOLT(ボルト)<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: 0px;" 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" />、<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%2FB01GZ1S7OS">Sphero SPRK+（スパークプラス）<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: 0px;" 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" />、<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%2FB072B6QVVW">Sphero Mini（ミニ）<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: 0px;" 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>今回は<b>Sphero mini</b>を使用。<span class="marker-under-red">低価格で買える初心者向けのモデル</span>です。</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":"Sphero Mini 知育 \/ STEAM \/ おもちゃ \/ スマ ートトイ \/ プログラミングできるロボティックボール ブルー 【日本正規代理店品】","b":"Sphero","t":"M001BRW","d":"https:\/\/m.media-amazon.com","c_p":"\/images\/I","p":["\/31VEdYcG5kL._SL500_.jpg","\/41A1bymtCaL._SL500_.jpg","\/41vO9-2osDL._SL500_.jpg","\/518w+YIOQlL._SL500_.jpg","\/41IH7FcvGDL._SL500_.jpg","\/51JFb25n-rL._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/B072B6QVVW","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\/B072B6QVVW","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":23,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/Sphero%20Mini%20%E7%9F%A5%E8%82%B2%20%2F%20STEAM%20%2F%20%E3%81%8A%E3%82%82%E3%81%A1%E3%82%83%20%2F%20%E3%82%B9%E3%83%9E%20%E3%83%BC%E3%83%88%E3%83%88%E3%82%A4%20%2F%20%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E3%81%A7%E3%81%8D%E3%82%8B%E3%83%AD%E3%83%9C%E3%83%86%E3%82%A3%E3%83%83%E3%82%AF%E3%83%9C%E3%83%BC%E3%83%AB%20%E3%83%96%E3%83%AB%E3%83%BC%20%E3%80%90%E6%97%A5%E6%9C%AC%E6%AD%A3%E8%A6%8F%E4%BB%A3%E7%90%86%E5%BA%97%E5%93%81%E3%80%91\/","a_id":1820957,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":24,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026ss_first=1\u0026ts=1662111350\u0026mcr=04d906273ae077d8b040c0e11c05bc00\u0026area=13\u0026astk=\u0026aq=\u0026oq=\u0026p=Sphero+Mini\u0026sc_i=shp_pc_search_searchBox_2\u0026sretry=1","a_id":1832853,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"nd8Wp","s":"s"});
</script></p>
<div id="msmaflink-nd8Wp">リンク</div>
<p>&nbsp;</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/spheromini-review/" title="【Sphero miniレビュー】プログラミング初心者から上級者まで楽しめる球体型ロボット" 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/2022/09/eyecatch-sphero-review-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【Sphero miniレビュー】プログラミング初心者から上級者まで楽しめる球体型ロボット</div><div class="blogcard-snippet internal-blogcard-snippet">「Sphero mini」は、6,000円前後で手に入る初心者向けのプログラミングロボット。おうちでプログラミングを学ぶのにピッタリの玩具です。【リビングの魔王】ではSphero miniの特徴や使い方をレビューします。</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="toc3">ジャック・オー・ランタンを工作</span></h2>
<p>紙コップを使ってジャック・オー・ランタンを作ります。</p>
<h3><span id="toc4">材料と道具</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween01.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4389" src="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween01.jpg" alt="ジャック・オー・ランタンの材料" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween01.jpg 800w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween01-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween01-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween01-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween01-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween01-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween01-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h4>材料</h4>
<div class="blank-box bb-blue">
<ul>
<li>Sphero mini</li>
<li>紙コップ（Spheroが入るサイズ）</li>
<li>折り紙（オレンジ、黒）</li>
</ul>
</div>
<h4>道具</h4>
<div class="blank-box bb-blue">
<ul>
<li>タブレットやスマホ</li>
<li>はさみ</li>
<li>カッター</li>
<li>のり</li>
<li>マジックペン（黒）</li>
</ul>
</div>
<p>スフィロ以外は100円ショップで手に入ります。</p>
<p>紙コップはスフィロが入る大きさ（miniの直径は42mm）を選んでください。</p>
<p>ダイソーのペーパーカップ90mlのサイズがちょうど良かったです。</p>
<p>クリアカップ70mlはギリギリ入りませんでした……無念。</p>
<p>&nbsp;</p>
<h3><span id="toc5">紙コップをデコレーションする</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween02.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4390" src="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween02.jpg" alt="紙コップをデコレーションする" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween02.jpg 800w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween02-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>紙コップをジャック・オー・ランタンにデコレーションしましょう。</p>
<p>折り紙を貼って紙コップをオレンジ色にします。</p>
<p>紙コップを一つ切り開いて型をつくると楽ですよ。</p>
<p>マジックで描いたり、黒い折り紙を切って貼ったりして、かぼちゃの顔を作ります。</p>
<p>目はカッターなどを使ってくり抜いてください。</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><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween03.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4391" src="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween03.jpg" alt="Sphero Playでスフィロを操縦" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween03.jpg 800w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween03-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween03-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween03-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween03-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween03-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween03-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ジャック・オー・ランタンができたら、Sphero miniを中に入れて操縦してみましょう。</p>
<p><span class="marker-under-red">広い部屋の床で遊んでください</span>ね。</p>
<p><b>Sphero Play</b>というスフィロを使った遊びに特化したアプリを使います。</p>
<p>スフィロを操縦したり、ゲームで遊んだりすることができます。</p>
<div id="appreach-box" style="text-align: left;">
<p><img decoding="async" id="appreach-image" style="float: left; margin: 10px; width: 25%; max-width: 120px; border-radius: 10%;" src="https://is2-ssl.mzstatic.com/image/thumb/Purple114/v4/25/d6/e3/25d6e352-40c7-d1b9-5595-7d19a3e24813/AppIcon-0-0-1x_U007emarketing-0-0-0-7-0-0-sRGB-0-0-0-GLES2_U002c0-512MB-85-220-0-0.png/512x512bb.jpg" alt="Sphero Play" /></p>
<div class="appreach-info" style="margin: 10px;">
<div id="appreach-appname">Sphero Play</div>
<div id="appreach-developer" style="font-size: 80%; display: inline-block;">開発元:<span id="appreach-developerurl">Sphero, Inc.</span></div>
<div id="appreach-price" style="font-size: 80%; display: inline-block;">無料</div>
<div class="appreach-powered" style="font-size: 80%; display: inline-block;">posted with<a rel="nofollow noopener" target="_blank" title="アプリーチ" href="https://mama-hack.com/app-reach/">アプリーチ<span class="fa fa-external-link external-icon anchor-icon"></span></a></div>
<div class="appreach-links" style="float: left;">
<div id="appreach-itunes-link" style="display: inline-block;"><a rel="nofollow noopener" target="_blank" id="appreach-itunes" href="https://apps.apple.com/jp/app/sphero-play/id1280682522?uo=4"><img decoding="async" style="height: 40px; width: 135px;" src="https://nabettu.github.io/appreach/img/itune_ja.svg" /></a></div>
<div id="appreach-gplay-link" style="display: inline-block;"><a rel="nofollow noopener" target="_blank" id="appreach-gplay" href="https://play.google.com/store/apps/details?id=com.sphero.spheromini"><img decoding="async" style="height: 40px; width: 134.5px;" src="https://nabettu.github.io/appreach/img/gplay_ja.png" /></a></div>
</div>
</div>
<div class="appreach-footer" style="margin-bottom: 10px; clear: left;"></div>
</div>
<p>ドライブモードのジョイスティックで、スフィロを動かしてみてください。</p>
<p>連結して走らせるのも楽しいですよ。</p>
<p>&nbsp;</p>
<h2><span id="toc7">ジャック・オー・ランタンを光らせよう</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween04.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4392" src="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween04.jpg" alt="ジャック・オー・ランタンを光らせる" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween04.jpg 800w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween04-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween04-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween04-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween04-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween04-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween04-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>スフィロを光らせてみましょう。</p>
<p><b>Sphero Edu</b>（スフィロ イーディーユー）という、プログラミング学習向けのアプリを使います。</p>
<div id="appreach-box" style="text-align: left;">
<p><img decoding="async" id="appreach-image" style="float: left; margin: 10px; width: 25%; max-width: 120px; border-radius: 10%;" src="https://is5-ssl.mzstatic.com/image/thumb/Purple112/v4/dc/fa/b7/dcfab7ec-f53c-884f-079a-16b257e61b63/AppIcon-0-0-1x_U007emarketing-0-0-0-7-0-0-sRGB-0-0-0-GLES2_U002c0-512MB-85-220-0-0.png/512x512bb.jpg" alt="Sphero Edu" /></p>
<div class="appreach-info" style="margin: 10px;">
<div id="appreach-appname">Sphero Edu</div>
<div id="appreach-developer" style="font-size: 80%; display: inline-block;">開発元:<span id="appreach-developerurl">Sphero, Inc.</span></div>
<div id="appreach-price" style="font-size: 80%; display: inline-block;">無料</div>
<div class="appreach-powered" style="font-size: 80%; display: inline-block;">posted with<a rel="nofollow noopener" target="_blank" title="アプリーチ" href="https://mama-hack.com/app-reach/">アプリーチ<span class="fa fa-external-link external-icon anchor-icon"></span></a></div>
<div class="appreach-links" style="float: left;">
<div id="appreach-itunes-link" style="display: inline-block;"><a rel="nofollow noopener" target="_blank" id="appreach-itunes" href="https://apps.apple.com/jp/app/sphero-edu/id1017847674?uo=4"><img decoding="async" style="height: 40px; width: 135px;" src="https://nabettu.github.io/appreach/img/itune_ja.svg" /></a></div>
<div id="appreach-gplay-link" style="display: inline-block;"><a rel="nofollow noopener" target="_blank" id="appreach-gplay" href="https://play.google.com/store/apps/details?id=com.sphero.sprk"><img decoding="async" style="height: 40px; width: 134.5px;" src="https://nabettu.github.io/appreach/img/gplay_ja.png" /></a></div>
</div>
</div>
<div class="appreach-footer" style="margin-bottom: 10px; clear: left;"></div>
</div>
<p>ブロックでプログラミングします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween06.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4393" src="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween06.jpg" alt="Sphero Eduでプログラミング" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween06.jpg 800w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween06-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween06-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween06-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween06-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween06-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween06-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>プログラミングで徐々に色を変えて炎のゆらぎを表現しています。</p>
<p>色の指定方法については「<a rel="noopener" target="_self" href="https://living-maou.com/color-rgb/">【子ども向け】コンピュータと色の話。光の三原色(RGB)とカラーコード<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/color-rgb/" title="【子ども向け】コンピュータと色の話。光の三原色(RGB)とカラーコードを分かりやすく解説" 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/2022/12/color-rgb01-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2022/12/color-rgb01-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/12/color-rgb01-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/12/color-rgb01-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/12/color-rgb01-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/12/color-rgb01-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/12/color-rgb01-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2022/12/color-rgb01.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【子ども向け】コンピュータと色の話。光の三原色(RGB)とカラーコードを分かりやすく解説</div><div class="blogcard-snippet internal-blogcard-snippet">コンピュータでは色をどうあつかうのか解説。【リビングの魔王】では、小学生向けに絵の具の三原色、色の三原色、光の三原色をかんたんに紹介しつつ、RGBやカラーコードを使った色の指定方法をわかりやすく解説します。</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="toc8">まとめ</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween05.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4394" src="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween05.jpg" alt="紙コップでハロウィンの工作" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween05.jpg 800w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween05-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween05-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween05-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween05-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween05-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/09/sphero-halloween05-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>「走る！ジャック・オー・ランタン」の作り方を紹介しました。</p>
<p>かぼちゃ以外にもオバケやキャラクターを作って走らせるのも楽しいですよ！</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":"Sphero Mini 知育 \/ STEAM \/ おもちゃ \/ スマ ートトイ \/ プログラミングできるロボティックボール ブルー 【日本正規代理店品】","b":"Sphero","t":"M001BRW","d":"https:\/\/m.media-amazon.com","c_p":"\/images\/I","p":["\/31VEdYcG5kL._SL500_.jpg","\/41A1bymtCaL._SL500_.jpg","\/41vO9-2osDL._SL500_.jpg","\/518w+YIOQlL._SL500_.jpg","\/41IH7FcvGDL._SL500_.jpg","\/51JFb25n-rL._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/B072B6QVVW","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\/B072B6QVVW","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":23,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/Sphero%20Mini%20%E7%9F%A5%E8%82%B2%20%2F%20STEAM%20%2F%20%E3%81%8A%E3%82%82%E3%81%A1%E3%82%83%20%2F%20%E3%82%B9%E3%83%9E%20%E3%83%BC%E3%83%88%E3%83%88%E3%82%A4%20%2F%20%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E3%81%A7%E3%81%8D%E3%82%8B%E3%83%AD%E3%83%9C%E3%83%86%E3%82%A3%E3%83%83%E3%82%AF%E3%83%9C%E3%83%BC%E3%83%AB%20%E3%83%96%E3%83%AB%E3%83%BC%20%E3%80%90%E6%97%A5%E6%9C%AC%E6%AD%A3%E8%A6%8F%E4%BB%A3%E7%90%86%E5%BA%97%E5%93%81%E3%80%91\/","a_id":1820957,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":24,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026ss_first=1\u0026ts=1662111350\u0026mcr=04d906273ae077d8b040c0e11c05bc00\u0026area=13\u0026astk=\u0026aq=\u0026oq=\u0026p=Sphero+Mini\u0026sc_i=shp_pc_search_searchBox_2\u0026sretry=1","a_id":1832853,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"nd8Wp","s":"s"});
</script></p>
<div id="msmaflink-nd8Wp">リンク</div>
<p><!-- MoshimoAffiliateEasyLink END --></p>
<p>&nbsp;</p>
<div class="blogcard-type bct-related">

<a rel="noopener" target="_self" href="https://living-maou.com/spheromini-review/" title="【Sphero miniレビュー】プログラミング初心者から上級者まで楽しめる球体型ロボット" 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/2022/09/eyecatch-sphero-review-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2022/09/eyecatch-sphero-review.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【Sphero miniレビュー】プログラミング初心者から上級者まで楽しめる球体型ロボット</div><div class="blogcard-snippet internal-blogcard-snippet">「Sphero mini」は、6,000円前後で手に入る初心者向けのプログラミングロボット。おうちでプログラミングを学ぶのにピッタリの玩具です。【リビングの魔王】ではSphero miniの特徴や使い方をレビューします。</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/sphero-halloween/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【マイクラ×MakeCode】プログラムでクリーパーの顔を作ろう！</title>
		<link>https://living-maou.com/minecraft-agentbuild2/</link>
					<comments>https://living-maou.com/minecraft-agentbuild2/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Tue, 05 Apr 2022 07:03:34 +0000</pubDate>
				<category><![CDATA[Minecraft]]></category>
		<category><![CDATA[MakeCode]]></category>
		<category><![CDATA[作品例]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=3312</guid>

					<description><![CDATA[この記事では、プログラムでクリーパーの顔を作る方法ほうほうを紹介しょうかいします。 MakeCode for Minecraftでは、エージェント(Agent)というカワイイロボットに、プログラムで指示しじを出して動かす [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/04/eyecatch-AgentFace.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3313" src="https://living-maou.com/wp-content/uploads/2022/04/eyecatch-AgentFace.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/04/eyecatch-AgentFace.jpg 800w, https://living-maou.com/wp-content/uploads/2022/04/eyecatch-AgentFace-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/04/eyecatch-AgentFace-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/04/eyecatch-AgentFace-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/04/eyecatch-AgentFace-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/04/eyecatch-AgentFace-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/04/eyecatch-AgentFace-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>この記事では、プログラムでクリーパーの顔を作る<ruby>方法<rt>ほうほう</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>MakeCode for Minecraftでは、<b>エージェント(Agent)</b>というカワイイロボットに、プログラムで<ruby>指示<rt>しじ</rt></ruby>を出して動かすことができます。</p>
<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>は、「<a rel="noopener" target="_self" href="https://living-maou.com/minecraft-tutorial_matome/">マインクラフトでプログラミングする<ruby>方法<rt>ほうほう</rt></ruby>まとめ<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」にまとめています。</p>
<p>また、MakeCodeでエージェントを動かす<ruby>基本<rt>きほん</rt></ruby>は、下の記事にまとめています。エージェントを動かしたことがない人はこちらの記事から読んでみてくださいね。</p>
<div class="blank-box bb-blue">
<ul>
<li><a rel="noopener" target="_self" href="https://living-maou.com/minecraft-tutorial01/">Agent Moves：エージェントを動かしてみよう！<span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
<li><a rel="noopener" target="_self" href="https://living-maou.com/minecraft-tutorial02/">Agent Build：エージェントで<ruby>建築<rt>けんちく</rt></ruby>してみよう！<span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
</ul>
</div>
<h2><span id="toc1">クリーパーの顔</span></h2>
<p><ruby>最初<rt>さいしょ</rt></ruby>に、クリーパーの顔を8×8のマスに<ruby>描<rt>えが</rt></ruby>いてみましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3314" src="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace01.png" alt="クリーパーの顔" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace01.png 800w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace01-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>&nbsp;</p>
<h2><span id="toc2">クリーパーの顔を作るプログラム</span></h2>
<p>下の<ruby>画像<rt>がぞう</rt></ruby>は、クリーパーの顔を作るプログラムです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3315" src="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace02.png" alt="クリーパーの顔を作るプログラム1" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace02.png 800w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3316" src="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace03.png" alt="クリーパーの顔を作るプログラム2" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace03.png 800w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>動かすとこんな感じ。</p>
<blockquote class="twitter-tweet" data-width="550" data-dnt="true">
<p lang="ja" dir="ltr">動かすとこんな感じ。 <a rel="noopener" target="_blank" href="https://t.co/IDdUhGlJjr">pic.twitter.com/IDdUhGlJjr<span class="fa fa-external-link external-icon anchor-icon"></span></a></p>
<p>&mdash; メソ@子ども向けプログラミング教材で遊ぼう (@Meso_blog) <a rel="noopener" target="_blank" href="https://twitter.com/Meso_blog/status/1511241353115889667?ref_src=twsrc%5Etfw">April 5, 2022<span class="fa fa-external-link external-icon anchor-icon"></span></a></p></blockquote>
<p><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script></p>
<p>&nbsp;</p>
<h2><span id="toc3">エージェントにブロックを持たせる</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/2022/04/Minecraft-AgentFace04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3317" src="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace04.png" alt="エージェントにアイテムを持たせる" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace04.png 800w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>まず、エージェントがブロックを<ruby>置<rt>お</rt></ruby>くための<ruby>準備<rt>じゅんび</rt></ruby>をしましょう。</p>
<p>チャットコマンドで”creeper”と入力した時に顔を作るようにします。</p>
<div class="blank-box bb-blue"><span style="color: #0078d7;"><b>「チャットコマンドを入力した時」</b></span>ブロックの”run”をクリックし、”creeper”と入力。</div>
<p>&nbsp;</p>
<h3><span id="toc4">エージェントの設定を追加</span></h3>
<p>動くたびにブロックを<ruby>置<rt>お</rt></ruby>く<ruby>機能<rt>きのう</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>します。</p>
<div class="blank-box bb-blue">
<ul>
<li>エージェントカテゴリーにある<span style="color: #d83b01;"><b>「エージェントの<ruby>設定<rt>せってい</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>」</b></span>ブロックを出す。</li>
<li>「1.動きながら<ruby>置<rt>お</rt></ruby>く」を「真」にする。</li>
</ul>
</div>
<p>&nbsp;</p>
<h3><span id="toc5">エージェントのインベントリにアイテムを設定する</span></h3>
<p>エージェントにブロックを持たせましょう。</p>
<p>インベントリにアイテムを<ruby>設定<rt>せってい</rt></ruby>します。</p>
<div class="blank-box bb-blue">
<ul>
<li>エージェントカテゴリーにある<span style="color: #d83b01;"><b>「エージェントにアイテムを自分のスロットに<ruby>設定<rt>せってい</rt></ruby>させる」</b></span>ブロックを2つ出す。</li>
<li>黄緑のウールを64<ruby>個<rt>こ</rt></ruby>、スロット1番に<ruby>設定<rt>せってい</rt></ruby>させる。</li>
<li>黒のコンクリートを64<ruby>個<rt>こ</rt></ruby>、スロット2番に<ruby>設定<rt>せってい</rt></ruby>させる。</li>
</ul>
</div>
<p><span style="color: #ff0000;"><b>インベントリ</b></span>とは、持っているアイテムを<ruby>管理<rt>かんり</rt></ruby>する画面のことで、アイテムが入る１つ１つのマスを<span style="color: #ff0000;"><b>スロット</b></span>といいます。</p>
<p>エージェントのスロットには1～27の番号がついています。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/07/Minecraft_AgentBuild07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-2226" src="https://living-maou.com/wp-content/uploads/2021/07/Minecraft_AgentBuild07.png" alt="エージェントのスロット番号" width="500" height="281" srcset="https://living-maou.com/wp-content/uploads/2021/07/Minecraft_AgentBuild07.png 500w, https://living-maou.com/wp-content/uploads/2021/07/Minecraft_AgentBuild07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/07/Minecraft_AgentBuild07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/07/Minecraft_AgentBuild07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/07/Minecraft_AgentBuild07-320x180.png 320w" sizes="(max-width: 500px) 100vw, 500px" /></a></p>
<p>&nbsp;</p>
<p>今回使う色は黄緑と黒の2色。</p>
<p>黄緑のウールを1番のスロットに64<ruby>個<rt>こ</rt></ruby>、黒のコンクリートを2番のスロットに64<ruby>個<rt>こ</rt></ruby><ruby>設定<rt>せってい</rt></ruby>します。</p>
<p>&nbsp;</p>
<h2><span id="toc6">1番下の段を作る</span></h2>
<p>1番下の<ruby>段<rt>だん</rt></ruby>を作るプログラムを作ってみましょう。</p>
<p><span style="color: #d83b01;"><b>「エージェントのスロット番号1を<ruby>有効<rt>ゆうこう</rt></ruby>にする」</b></span>ブロックと、<span style="color: #d83b01;"><b>「エージェントにアイテムを自分のスロットに<ruby>設定<rt>せってい</rt></ruby>させる」</b></span>ブロックを使います。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3318" src="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace05.png" alt="1番下の段を作るプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace05.png 800w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h3><span id="toc7">関数を使おう！</span></h3>
<p>スロット番号を<ruby>有効<rt>ゆうこう</rt></ruby>にして、エージェントを<ruby>移動<rt>いどう</rt></ruby>させて…同じような動きを何回も作るのは<ruby>大変<rt>たいへん</rt></ruby>ですよね。</p>
<p>そんな時は、<b><ruby>関数<rt>かんすう</rt></ruby></b>を使いましょう！</p>
<p><span style="color: #ff0000;"><b><ruby>関数<rt>かんすう</rt></ruby></b></span>とは、<span class="marker-under-red"><ruby>命令<rt>めいれい</rt></ruby>をまとめていつでも使えるようにしたもの</span>。何度も使う<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-function/" 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/10/eyecatch_scratch_function-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_function-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function.jpg 800w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch_scratch_function-320x180.jpg 320w" 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>
<p>さっきの1番下の<ruby>段<rt>だん</rt></ruby>を作るプログラムで<ruby>関数<rt>かんすう</rt></ruby>を使うとこんな感じになります。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3319" src="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace06.png" alt="1番下の段を作るプログラム（関数）" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace06.png 800w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ブロックの数が少なくなり、スッキリましたね！</p>
<p>&nbsp;</p>
<h4>関数を作成する</h4>
<p>カテゴリーにある「高度なブロック」をクリックして、<ruby>関数<rt>かんすう</rt></ruby>カテゴリーを<ruby>選<rt>えら</rt></ruby>び、<b>「<ruby>関数<rt>かんすう</rt></ruby>を作成する…」</b>をクリックします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace09.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3320" src="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace09.png" alt="Makecode 関数を作成する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace09.png 800w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace09-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace09-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace09-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace09-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace09-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace09-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&#8220;doSomething&#8221;と書いてある部分は、<ruby>関数<rt>かんすう</rt></ruby>の名前です。</p>
<p>どんな動きか分かるような名前をつけましょう。今回は&#8221;put&#8221;にしました。</p>
<p><ruby>設置<rt>せっち</rt></ruby>するブロックの「スロット番号」と「<ruby>個数<rt>こすう</rt></ruby>」は<b>引数</b>で<ruby>渡<rt>わた</rt></ruby>すようにします。</p>
<p><span style="color: #ff0000;"><b>引数</b></span>とは、<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></span>のことで、<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><span style="color: #ff0000;"><b><ruby>型<rt>かた</rt></ruby>（データ<ruby>型<rt>がた</rt></ruby>）</b></span>とは、<span class="marker-under-red">数や文字など<b>データの<ruby>種類<rt>しゅるい</rt></ruby></b></span>のことです。</p>
<p>今回は「<ruby>数値<rt>すうち</rt></ruby>」を2回クリックして引数を<ruby>追加<rt>ついか</rt></ruby>します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace10.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3321" src="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace10.png" alt="パラメーターを追加" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace10.png 800w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>引数の名前（<ruby>数値<rt>すうち</rt></ruby>）も分かりやすい名前に<ruby>変<rt>か</rt></ruby>えましょう。</p>
<p>今回はスロットの番号を&#8221;slot&#8221;、<ruby>個数<rt>こすう</rt></ruby>を&#8221;num&#8221;にしました。</p>
<p>「<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>ブロックを組み合わせていきます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3322" src="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace11.png" alt="Makecode 関数を使う" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace11.png 800w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>引数を使う場合は、引数をドラッグアンドドロップで<ruby>移動<rt>いどう</rt></ruby>させます。</p>
<p><ruby>関数<rt>かんすう</rt></ruby>を使うときは、<ruby>関数<rt>かんすう</rt></ruby>カテゴリーに<b>「<ruby>呼<rt>よ</rt></ruby>び<ruby>出<rt>だ</rt></ruby>し」</b>ブロックが<ruby>追加<rt>ついか</rt></ruby>されているので、これを使います。</p>
<p>&nbsp;</p>
<h2><span id="toc8">折り返して上の段へ</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3323" src="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace07.png" alt="折り返す関数" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace07.png 800w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>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>り<ruby>返<rt>かえ</rt></ruby>す動きも何度も使うので<ruby>関数<rt>かんすう</rt></ruby>にしましょう。<ruby>関数<rt>かんすう</rt></ruby>名は&#8221;turn&#8221;にしました。</p>
<div class="blank-box bb-blue">
<ul>
<li><span style="color: #d83b01;"><b>「エージェントの<ruby>設定<rt>せってい</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>」</b></span>ブロック<br />
「1.動きながら<ruby>置<rt>お</rt></ruby>く」を「<ruby>偽<rt>ぎ</rt></ruby>」にする。</li>
<li><span style="color: #d83b01;"><b>「エージェントを上に1ブロック<ruby>移動<rt>いどう</rt></ruby>させる」</b></span>ブロック</li>
<li><span style="color: #d83b01;"><b>「エージェントの向きを左に<ruby>変<rt>か</rt></ruby>える」</b></span>ブロック</li>
<li><span style="color: #d83b01;"><b>「エージェントの向きを左に<ruby>変<rt>か</rt></ruby>える」</b></span>ブロック</li>
<li><span style="color: #d83b01;"><b>「エージェントを前に1ブロック<ruby>移動<rt>いどう</rt></ruby>させる」</b></span>ブロック</li>
<li><span style="color: #d83b01;"><b>「エージェントの<ruby>設定<rt>せってい</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>」</b></span>ブロック<br />
「1.動きながら<ruby>置<rt>お</rt></ruby>く」を「真」にする。</li>
</ul>
</div>
<p><ruby>折<rt>お</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>している間はブロックを<ruby>置<rt>お</rt></ruby>きたくないので<span style="color: #d83b01;"><b>「エージェントの<ruby>設定<rt>せってい</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>」</b></span>ブロックを出して「1.動きながら<ruby>置<rt>お</rt></ruby>く」を「<ruby>偽<rt>ぎ</rt></ruby>」にします。</p>
<p>2回、エージェントの向きを左に<ruby>変<rt>か</rt></ruby>えると反対方向を向きますね。</p>
<p><ruby>折<rt>お</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>したら、「1.動きながら<ruby>置<rt>お</rt></ruby>く」を「真」にもどしておきましょう。</p>
<p>&nbsp;</p>
<h2><span id="toc9">同じように2段目以降を作る</span></h2>
<p>1<ruby>段<rt>だん</rt></ruby>目と同じように2<ruby>段<rt>だん</rt></ruby>目<ruby>以降<rt>いこう</rt></ruby>を作ります。</p>
<p>くり返しブロックをうまく使いましょう。</p>
<p>&nbsp;</p>
<h2><span id="toc10">動かしてみよう！</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace08.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3324" src="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace08.jpg" alt="クリーパーの顔" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace08.jpg 800w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace08-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace08-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace08-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace08-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace08-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/04/Minecraft-AgentFace08-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>完成<rt>かんせい</rt></ruby>したら、動かしてみましょう。</p>
<p>クリーパーの顔ができましたか？</p>
<p>&nbsp;</p>
<h2><span id="toc11">まとめ</span></h2>
<p>プログラムでクリーパーの顔を作る<ruby>方法<rt>ほうほう</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>しました。</p>
<p>クリーパー<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/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>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/minecraft-agentbuild2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【マイクロビット×メイクコード】ジェスチャーゲームのお題を出すプログラムを作ろう！</title>
		<link>https://living-maou.com/microbit-gesture/</link>
					<comments>https://living-maou.com/microbit-gesture/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Fri, 12 Mar 2021 02:46:11 +0000</pubDate>
				<category><![CDATA[micro:bit]]></category>
		<category><![CDATA[MakeCode]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[作品例]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=1763</guid>

					<description><![CDATA[この記事では、マイクロビットでジェスチャーゲームのお題を出すプログラムの作り方を紹介します。 マイクロビットの基本的な使い方や機能は分かったけれど 次に何を作っていいのか分からない 複雑なゲームを作るのはハードルが高い  [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_gesture.jpg"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1764" src="https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_gesture-800x450.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_gesture.jpg 800w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_gesture-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_gesture-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_gesture-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_gesture-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_gesture-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_gesture-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_gesture-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>この記事では、マイクロビットで<b>ジェスチャーゲームのお題を出す</b>プログラムの作り方を紹介します。</p>
<p>マイクロビットの基本的な使い方や機能は分かったけれど</p>
<div class="blank-box bb-blue">
<ul>
<li>次に何を作っていいのか分からない</li>
<li>複雑なゲームを作るのはハードルが高い</li>
<li>みんなでワイワイ遊べるものが作りたい</li>
</ul>
</div>
<p>という方向けです。</p>
<p>プログラムはとても簡単！初心者さんでも分かりやすいように解説します。</p>
<p>Makecodeの配列の使い方も分かりますよ。</p>
<h2><span id="toc1">ジェスチャーゲームの流れ</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture01.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1765" src="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture01.jpg" alt="ジェスチャーゲームの流れ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture01.jpg 800w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture01-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture01-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture01-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture01-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture01-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture01-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>まず、ジェスチャーゲームの流れをおさらいしましょう。</p>
<div class="blank-box bb-blue">
<ol>
<li>ジェスチャーする人（1人）と答える人（1人～）に分かれる。</li>
<li><span class="marker-under-red">ジェスチャーする人がお題を引く。</span></li>
<li>ジェスチャーする人は、身ぶり手ぶりでお題の内容を伝える。</li>
<li>答える人は、答えを言い当てる。</li>
</ol>
</div>
<p>今回は、2のお題を引く部分をマイクロビットで行うプログラムを作ります。</p>
<p>&nbsp;</p>
<h2><span id="toc2">用意するもの</span></h2>
<ul>
<li>マイクロビット本体</li>
<li>電池ボックス</li>
</ul>
<p>1コずつあればOKです。</p>
<p>&nbsp;</p>
<h2><span id="toc3">プログラムの仕様</span></h2>
<p>プログラムにどんなことをさせたいのかまとめました。</p>
<h3><span id="toc4">ボタンA：お題を引く</span></h3>
<p>ボタンAをおすと、ランダムな英単語を表示する。</p>
<h3><span id="toc5">ボタンB：答え合わせ</span></h3>
<p>ボタンBをおすと、ボタンAでおした時に表示されていた英単語を表示する。</p>
<p>&nbsp;</p>
<h2><span id="toc6">MakeCodeエディターを開く</span></h2>
<p><a rel="noopener" target="_blank" href="https://makecode.microbit.org/">MakeCode（メイクコード）エディター<span class="fa fa-external-link external-icon anchor-icon"></span></a>の画面を開いて、プログラミングしてみましょう。</p>
<p>MakeCodeエディターの基本的な使い方は、下の記事にまとめています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/microbit-makecode/" title="【マイクロビット】MakeCode（メイクコード）エディターの使い方" 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/06/eyecatch_microbit_makecode-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode.jpg 800w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/06/eyecatch_microbit_makecode-320x180.jpg 320w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【マイクロビット】MakeCode（メイクコード）エディターの使い方</div><div class="blogcard-snippet internal-blogcard-snippet">MakeCode（メイクコード）エディターはブラウザベースで利用できるmicro:bitの開発環境のひとつ。【リビングの魔王】ではMakeCodeエディターの使い方を初心者にも分かりやすくていねいに紹介します。</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="toc7">完成プログラム</span></h2>
<p>プログラムの内容は下の画像のようになります。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1766" src="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture02.png" alt="お題を抽選するプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture02.png 800w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture02-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="toc8">プログラム解説</span></h2>
<p>今回のプログラムは、<b>変数</b>と<b>配列</b>を使います。</p>
<div class="blank-box bb-blue">
<ul>
<li><span style="color: #ff0000;"><b>変数</b></span>とは、データを一時的に覚えておくための入れ物のこと</li>
<li><span style="color: #ff0000;"><b>配列</b></span>とは、同じ型の変数をいくつも並べたもののこと</li>
</ul>
</div>
<p>配列の個々のデータを<span style="color: #ff0000;"><b>要素</b></span>といい、配列名と何番目の要素か表す番号で区別されます。</p>
<p>また、何番目か表す番号のことを<span style="color: #ff0000;"><b>インデックス</b></span>または<span style="color: #ff0000;"><b>添字（そえじ）</b></span>と呼びます。</p>
<p>配列の説明がちょっとむずかしく感じるかもしれませんが、<span class="marker-under-red">順番に番号がついたロッカー</span>といえばイメージがつくのではないでしょうか。</p>
<p>変数や配列については、下の記事でくわしく解説しているのでよかったら見てみてください。</p>
<div class="blank-box bb-blue">
<ul>
<li><a rel="noopener" target="_self" href="https://living-maou.com/scratch-variable/">変数とは？スクラッチ（Scratch）を使って解説<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/">配列（リスト）とは？スクラッチ（Scratch）を使って解説<span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
</ul>
</div>
<p>&nbsp;</p>
<h3><span id="toc9">最初だけ</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1767" src="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture03.png" alt="お題抽選　最初だけ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture03.png 800w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h4>お題を入れておく配列を作る</h4>
<p>お題の文字列を入れておく配列<span style="color: #dc143c;"><b>「お題リスト」</b></span>をつくります。</p>
<p>今回は、動物の英単語を入れてみました。</p>
<p>表示は１文字ずつスクロールされるので、短い単語がオススメ。</p>
<p>&nbsp;</p>
<p><b>1.変数を作る</b></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1768" src="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture04.png" alt="変数を作る" width="500" height="281" srcset="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture04.png 500w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture04-320x180.png 320w" sizes="(max-width: 500px) 100vw, 500px" /></a></p>
<p>変数カテゴリの<span style="color: #dc143c;"><b>「変数を追加する」</b></span>ボタンをクリックして、&#8221;お題リスト&#8221;という変数を作ります。</p>
<p>&nbsp;</p>
<p><b>2.配列を作る</b></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1769" src="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture05.png" alt="配列に関するブロック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture05.png 800w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>カテゴリにある高度なブロックをクリック、配列を選び、<span style="color: #e65722;"><b>「変数text listをこの要素の配列&#8221;a&#8221;,&#8221;b&#8221;,&#8221;c&#8221;－＋にする」</b></span>ブロックを出します。</p>
<div class="blank-box bb-tab bb-memo bb-red">配列に文字列を入れる場合は<b>「text list」</b>、数値を入れる場合は<b>「list」</b>を選びましょう。</div>
<p>&nbsp;</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1770" src="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture06.png" alt="配列を作る" width="500" height="281" srcset="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture06.png 500w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture06-320x180.png 320w" sizes="(max-width: 500px) 100vw, 500px" /></a></p>
<p><span style="color: #dc143c;"><b>「text list▼」</b></span>の▼をクリックして<span style="color: #dc143c;"><b>「お題リスト」</b></span>に変更し、&#8221;a&#8221;,&#8221;b&#8221;,&#8221;c&#8221;を配列に入れたい文字列に変更します。</p>
<p><span style="color: #e65722;"><b>＋</b></span>で要素を増やしたり、<span style="color: #e65722;"><b>－</b></span>で減らしたりできますよ。</p>
<p>&nbsp;</p>
<h4>お題を保管しておく変数を作る</h4>
<p>答え合わせをするために、お題を保管しておく変数<span style="color: #dc143c;"><b>「答え」</b></span>を作ります。</p>
<p>ボタンAをおす前にボタンBをおした時に、&#8221;PRESS A&#8221;（Aをおして）とメッセージが出るようにしました。</p>
<p>文字列<span style="color: #b8860b;"><b>「&#8221; &#8220;」</b></span>ブロックは、高度なブロックの文字列カテゴリにあります。</p>
<p>&nbsp;</p>
<h3><span id="toc10">ボタンAが押されたとき</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1771" src="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08.png" alt="お題抽選　ボタンAが押されたとき" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08.png 800w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-green">
<ol>
<li>配列「お題リスト」に入っている英単語をランダムに選択し、変数「答え」に入れる。</li>
<li>変数「答え」に入っている文字列を表示。</li>
</ol>
</div>
<p>&nbsp;</p>
<p>1についてくわしく説明します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1772" src="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-02.png" alt="お題抽選　配列の中からランダムに値を取得" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-02.png 800w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture08-02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>配列のデータを取得するには、配列カテゴリにある<span style="color: #e65722;"><b>「list▼の0番目の値」</b></span>というブロックを使います。</p>
<p>▼をクリックして、<span style="color: #dc143c;"><b>「お題リスト」</b></span>に変更しましょう。</p>
<p>&nbsp;</p>
<p><span style="color: #e65722;"><b>「list▼の0番目の値」</b></span>の0の部分はインデックスにあたります。</p>
<p>何番目の要素をもってくるかはランダムにしたいので、計算カテゴリにある<span style="color: #9400d3;"><b>「ランダムな数字を選択：0から10まで」</b></span>ブロックを<span style="color: #e65722;"><b>「list▼の0番目の値」</b></span>の0の部分に入れます。</p>
<p><span style="color: #9400d3;"><b>「ランダムな数字を選択：0から10まで」</b></span>ブロックは、指定した数字の間に含まれる数字をランダムに返します。</p>
<p>今回は要素を6つにしたので、<span style="color: #9400d3;">「0から5まで」</span>と指定すればOKなのですが、お題の数を増やしたり減らしたくなった場合、ここの数字も変えるのは手間ですよね。</p>
<p>そこで、最大値である5の部分を<span style="color: #9400d3;"><b>「お題リストの要素数 &#8211; 1」</b></span>にしましょう。お題の数が変わっても対応することができますよ。</p>
<div class="blank-box bb-tab bb-memo bb-red">MakeCodeの場合、<span class="marker-under-red">インデックスは<span style="color: #ff0000;"><b>0</b></span>から</span>始まります。</div>
<p>&nbsp;</p>
<p><span style="color: #e65722;"><b>「配列 list▼の長さ」</b></span>ブロックは、配列に含まれる要素の数を返します。</p>
<p>▼をクリックして、<span style="color: #dc143c;"><b>「お題リスト」</b></span>に変更しましょう。</p>
<p><span style="color: #e65722;"><b>「配列 list▼の長さ」</b></span>ブロックは、配列カテゴリ、引き算<span style="color: #9400d3;"><b>「0 &#8211; 0」</b></span>ブロックは計算カテゴリにあります。</p>
<p>&nbsp;</p>
<h3><span id="toc11">ボタンBが押されたとき</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture09.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1773" src="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture09.png" alt="お題抽選　ボタンBが押されたとき" width="500" height="281" srcset="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture09.png 500w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture09-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture09-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture09-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture09-320x180.png 320w" sizes="(max-width: 500px) 100vw, 500px" /></a></p>
<p>変数<span style="color: #dc143c;"><b>「答え」</b></span>に入っている文字列を表示します。</p>
<p>&nbsp;</p>
<h2><span id="toc12">シミュレーターで確認</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture10.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1774" src="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture10.png" alt="お題抽選　シミュレーターで確認" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture10.png 800w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/03/microbit_gesture10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>プログラムが完成したらシミュレーターでテストしましょう。</p>
<div class="blank-box bb-green">
<ul>
<li>最初にボタンBがおされたとき、&#8221;PRESS A&#8221;と表示されること</li>
<li>ボタンAがおされたとき、ランダムに英単語が表示されること<br />
（何回かボタンAをおして試してみましょう）</li>
<li>ボタンBがおされたとき、最後にボタンAをおしたときに表示された英単語と同じ英単語が表示されること</li>
</ul>
</div>
<p>&nbsp;</p>
<h2><span id="toc13">実機でテストしてみよう</span></h2>
<p>シミュレーターで確認できたら、マイクロビットに転送して実際に動かしてみましょう。</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="toc14">おまけ　Pythonでプログラミング</span></h2>
<p>Pythonでも同じ内容のプログラムを作ってみました。</p>
<p>&nbsp;</p>
<div class="hcb_wrap">
<pre class="prism undefined-numbers lang-python" data-lang="Python"><code>from microbit import *
import random

theme_list = ['CAT','FOX','PIG','DOG','LION','SNAKE']
ans = 'PRESS A'

while True:
    # ボタンAがおされたとき
    if button_a.is_pressed():
        ans = random.choice(theme_list)
        display.scroll(ans)

    # ボタンBがおされたとき
    if button_b.is_pressed():
        display.scroll(ans)</code></pre>
</div>
<p>Pythonでプログラムを作る方法は下の記事で紹介しています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/microbit-pythoneditor/" title="【micro:bit（マイクロビット）】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/2021/03/eyecatch_microbit_python-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_python-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_python-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_python.jpg 800w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_python-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_python-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_python-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_python-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_python-320x180.jpg 320w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【micro:bit（マイクロビット）】Pythonエディターを使ってテキストプログラミングに挑戦！</div><div class="blogcard-snippet internal-blogcard-snippet">Pythonエディターはmicro:bitの開発環境のひとつ。Pythonでマイクロビットのプログラミングをすることができます。【リビングの魔王】では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>
<h2><span id="toc15">まとめ</span></h2>
<p>以上、「ジェスチャーゲームのお題を出す」プログラムの紹介でした。</p>
<p>答える人も、早押しボタンの機能をプログラムしたマイクロビットをもってゲームをすれば、さらに盛り上がるのではないでしょうか。</p>
<p>「<a rel="noopener" target="_self" href="https://living-maou.com/microbit-speaker/">スピーカーを使って音を鳴らそう<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」で紹介しているプログラムを参考に作ってみてくださいね。</p>
<p>また、このプログラムはジェスチャーゲームだけでなく、くじ引きや占い、お絵かきゲームなどのお題を出す時にも使えますよ。</p>
<p>&nbsp;</p>
<div class="blogcard-type bct-check">

<a rel="noopener" target="_self" href="https://living-maou.com/microbit-count100/" title="【マイクロビット×メイクコード】プログラミングでカウント100ゲームをおもしろくしよう！" 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/02/eyecatch-microbit-count100-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-microbit-count100.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【マイクロビット×メイクコード】プログラミングでカウント100ゲームをおもしろくしよう！</div><div class="blogcard-snippet internal-blogcard-snippet">マイクロビットで「カウント100ゲーム」のプログラムの作り方を紹介。かんたんなプログラムでもみんなでワイワイ楽しめるものが作れますよ。【リビングの魔王】では初心者にも分かりやすいよう処理の流れや考え方を丁寧に紹介します。</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>
<div class="micro-top micro-center">＼【PR】身のまわりの物を使った32の作品を収録！／</div><!-- START MoshimoAffiliateEasyLink -->
<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":"【v2対応】改訂新版 micro:bitであそぼう! たのしい電子工作\u0026プログラミング","b":"","t":"","d":"https:\/\/m.media-amazon.com","c_p":"\/images\/I","p":["\/51XJjGz1DQL._SL500_.jpg","\/51H-GmDB+wL._SL500_.jpg","\/51UNvw6m8qL._SL500_.jpg","\/51bKTI1lUcL._SL500_.jpg","\/51j+sGSNs5L._SL500_.jpg","\/51rIBlOWC9L._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/4297126672","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\/4297126672","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"u_bc":"#f76956","u_tx":"楽天市場で見る","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/%E3%80%90v2%E5%AF%BE%E5%BF%9C%E3%80%91%E6%94%B9%E8%A8%82%E6%96%B0%E7%89%88%20micro%3Abit%E3%81%A7%E3%81%82%E3%81%9D%E3%81%BC%E3%81%86!%20%E3%81%9F%E3%81%AE%E3%81%97%E3%81%84%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%26%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0\/","s_n":"rakuten","u_so":2,"a_id":1820957,"p_id":54,"pc_id":54,"pl_id":27059,"id":21},{"u_bc":"#66a7ff","u_tx":"Yahoo!ショッピングで見る","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=%E3%80%90v2%E5%AF%BE%E5%BF%9C%E3%80%91%E6%94%B9%E8%A8%82%E6%96%B0%E7%89%88%20micro%3Abit%E3%81%A7%E3%81%82%E3%81%9D%E3%81%BC%E3%81%86!%20%E3%81%9F%E3%81%AE%E3%81%97%E3%81%84%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%26%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0","s_n":"yahoo","u_so":3,"a_id":1832853,"p_id":1225,"pc_id":1925,"pl_id":27061,"id":22}],"eid":"GM3uR","s":"s"});
</script>
<div id="msmaflink-GM3uR">リンク</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/microbit-gesture/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
