<?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>Tue, 15 Oct 2024 05:17:31 +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】デジタル時計をプログラミングしよう！</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 fetchpriority="high" 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>今回はスクラッチ (Scratch) を使った「<b>デジタル時計</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>し、秒はニワトリが歩くアニメーションで<ruby>表現<rt>ひょうげん</rt></ruby>します。</p>
<p>プログラミングを通じて、<b>わり算（商とあまり）</b>や、<b>がい算（<ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>て）</b>の勉強にもなりますよ。</p>
<p>図やコード<ruby>例<rt>れい</rt></ruby>を交えながら、わかりやすく<ruby>解説<rt>かいせつ</rt></ruby>していきますので、プログラミング<ruby>初心者<rt>しょしんしゃ</rt></ruby>でも安心して取り組めます。</p>
<p>ぜひ、プログラミングに<ruby>挑戦<rt>ちょうせん</rt></ruby>して、オリジナルのデジタル時計を作ってみてください！</p>
<p>&nbsp;</p>
<p>Scratchはインターネットにつながるパソコンから<ruby>無料<rt>むりょう</rt></ruby>で<ruby>利用<rt>りよう</rt></ruby>できます。</p>
<p>Scratch公式サイト: <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>な使い方<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、下の記事で<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">デジタル時計の読み方をおさらい</span></h2>
<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>24時間表示のデジタル時計の場合、午前8時15分は「08:15」と<ruby>表示<rt>ひょうじ</rt></ruby>され、午後1時45分は「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>します。</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>した作品です。ハタをおして動かしてみてください。</p>
<p><iframe loading="lazy" src="https://scratch.mit.edu/projects/1045611047/embed" width="485" height="402" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></p>
<p>&nbsp;</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>します。</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>し、0から9のコスチュームを作ります。</p>
<p>1.スプライトを作る</p>
<p>「スプライトを<ruby>選<rt>えら</rt></ruby>ぶ」→「<ruby>描<rt>えが</rt></ruby>く」を<ruby>選<rt>えら</rt></ruby>びます。</p>
<p>ネコのスプライトは消して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.数字をかく</p>
<p>筆ツールを使って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>ペイントエディターのくわしい使い方は「<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>）<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>」でコスチュームをコピーし、1から9のコスチュームを作ります。</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>コスチュームのならびは、小さい順(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></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-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>ブロックを出す。</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>の下に出す。</p>
<p>3.見た目カテゴリから<span style="color: #9966ff;"><b>「コスチュームを( )にする」</b></span>を出し、<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックの中に入れる。</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>がいくつになるか計算</p>
<p><ruby>現在<rt>げんざい</rt></ruby>の時間から時の十の<ruby>位<rt>くらい</rt></ruby>の数字を取り出しましょう。</p>
<p>十の<ruby>位<rt>くらい</rt></ruby>は、その数字が<ruby>何個<rt>なんこ</rt></ruby>の十を持っているか表しています。なので、<span class="marker-under-red"><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></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>午前8時：  8÷10 = 0.8 → 小数点<ruby>以下<rt>いか</rt></ruby><ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>て → <span style="color: #ff6600;">0</span></li>
<li>午後1時： 13÷10 = 1.3 → 小数点<ruby>以下<rt>いか</rt></ruby><ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>て → <span style="color: #ff6600;">1</span></li>
</ul>
<p>となります。</p>
<p>&nbsp;</p>
<p><ruby>演算<rt>えんざん</rt></ruby>カテゴリの<span style="color: #40bf4a;"><b>「( )/( )」</b></span>を出して、<ruby>左側<rt>ひだりがわ</rt></ruby>に<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の時」</b></span>ブロックを入れ、<ruby>右側<rt>みぎがわ</rt></ruby>に10を入力します。</p>
<p><ruby>現在<rt>げんざい</rt></ruby>の時間の時は、<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の時」</b></span>ブロックで<ruby>取得<rt>しゅとく</rt></ruby>できます。調べるカテゴリにある<span style="color: #4cbfe6;"><b>「<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-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>カテゴリから<span style="color: #40bf4a;"><b>「( )の<ruby>絶対値<rt>ぜったいち</rt></ruby>」</b></span>ブロックを出し、<ruby>絶対値<rt>ぜったいち</rt></ruby>の部分をクリックして「切り下げ」に<ruby>変<rt>か</rt></ruby>えます。中に<span style="color: #40bf4a;"><b>「<span style="color: #4cbfe6;"> <ruby>現在<rt>げんざい</rt></ruby>の時</span> / 10 」</b></span>を入れましょう。</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-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>するコスチュームの番号</p>
<p><span style="color: #9966ff;"><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-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>このスプライトの場合だと、</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>の時</span> / 10 の切り下げ」</b></span>で<ruby>求<rt>もと</rt></ruby>めた<ruby>値<rt>あたい</rt></ruby>に1足した<ruby>値<rt>あたい</rt></ruby>をコスチューム番号に指定しましょう。</p>
<p><ruby>演算<rt>えんざん</rt></ruby>カテゴリの<span style="color: #40bf4a;"><b>「( )+( )」</b></span>を出して、<ruby>左側<rt>ひだりがわ</rt></ruby>に<span style="color: #40bf4a;"><b>「 <span style="color: #4cbfe6;"><ruby>現在<rt>げんざい</rt></ruby>の時</span> / 10 の切り下げ」</b></span>ブロックを入れ、<ruby>右側<rt>みぎがわ</rt></ruby>に1を入力します。これを<span style="color: #9966ff;"><b>「コスチュームを()にする」</b></span>ブロックの中に入れましょう。</p>
<p>&nbsp;</p>
<h3><span id="toc9">時の一の位</span></h3>
<p>時の十の<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>ぶ。</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-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>の数字を取り出す方法を考えましょう。</p>
<p><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>れなかった部分、つまり<span class="marker-under-red">あまりが一の<ruby>位<rt>くらい</rt></ruby></span>になります。</p>
<p>たとえば、</p>
<ul>
<li>午前8時：  8÷10 = 0 あまり <span style="color: #ff6600;">8</span></li>
<li>午後1時： 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>します。</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>に<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の時」</b></span>ブロックを入れ、<ruby>右側<rt>みぎがわ</rt></ruby>に10を入力しましょう。</p>
<p>コスチュームの番号は1つズレるので、<span style="color: #40bf4a;"><b>「( <span style="color: #4cbfe6;"><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>とほぼ同じです。</p>
<p>スプライトをコピーし、<ruby>必要<rt>ひつよう</rt></ruby>な<ruby>変更<rt>へんこう</rt></ruby>を<ruby>加<rt>くわ</rt></ruby>えましょう。</p>
<p>何を<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>しましょう。</p>
<p>&nbsp;</p>
<h3><span id="toc12">ちょっと変わった表現を紹介！</span></h3>
<p>時や分と同じやり方で秒を作ってもよいのですが、今回はちょっと<ruby>変<rt>か</rt></ruby>わったやり方を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>ニワトリが0秒のとき左はしから歩き始めて、60秒後に右はしに<ruby>到着<rt>とうちゃく</rt></ruby>するプログラムを<ruby>作成<rt>さくせい</rt></ruby>します。</p>
<p><iframe loading="lazy" src="https://scratch.mit.edu/projects/1050530918/embed" width="485" height="402" 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つめは使わないので消しましょう。</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-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>ブロックを出す</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>の下に入れる</p>
<p>3.動きカテゴリから<span style="color: #4c97ff;"><b>「X<ruby>座標<rt>ざひょう</rt></ruby>を ( ) にする」</b></span>ブロックを出す</p>
<p>&nbsp;</p>
<p><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>を表す数字です。画面の真ん中を「0」として、<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>は360です。1分（60秒）かけて360進みたいので、360 ÷ 60 で毎秒6ずつ<ruby>移動<rt>いどう</rt></ruby>する<ruby>必要<rt>ひつよう</rt></ruby>があります。</p>
<p>なので、<b>出発地点のX<ruby>座標<rt>ざひょう</rt></ruby>-180 に <ruby>現在<rt>げんざい</rt></ruby>の秒 * 6 を足す</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>の秒</span> * 6 ) にする」</b></span>を作り、<span style="color: #4c97ff;"><b>「X<ruby>座標<rt>ざひょう</rt></ruby>を ( ) にする」</b></span>ブロックに入れましょう。</p>
<p>&nbsp;</p>
<p>4.ニワトリに動きをつける</p>
<p>このままだと歩いている感じが出ないので、ニワトリに動きをつけましょう。</p>
<p>コスチューム1と2を<ruby>交互<rt>こうご</rt></ruby>に<ruby>表示<rt>ひょうじ</rt></ruby>させて、ニワトリが歩いているように見せます。</p>
<p>見た目カテゴリから<span style="color: #9966ff;"><b>「次のコスチューム」</b></span>ブロックを出し、<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックの中に入れましょう。</p>
<p>ただし、このままだと<ruby>超高速<rt>ちょうこうそく</rt></ruby>でニワトリのコスチュームが<ruby>変<rt>か</rt></ruby>わってしまうので、<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリの<span style="color: #ffab19;"><b>「()秒待つ」</b></span>ブロックを出し、0.5と入力します。</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>してみましょう！</p>
<p>&nbsp;</p>
<h2><span id="toc13">作品の完成</span></h2>
<p>デジタル時計が<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>12時間<ruby>表示<rt>ひょうじ</rt></ruby>にしてみる</li>
<li>文字のデザインを<ruby>変<rt>か</rt></ruby>える</li>
<li>音を<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>を作ってみてくださいね！</p>
<p>&nbsp;</p>
<h2><span id="toc14">まとめ</span></h2>
<p>この記事では、Scratchを使った「デジタル時計」の作り方を<ruby>紹介<rt>しょうかい</rt></ruby>しました。自分だけのオリジナル時計を作ることができたでしょうか？</p>
<p>当ブログでは、<a rel="noopener" target="_self" href="https://living-maou.com/scratch-analog-clock/">アナログ時計の作り方<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 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>今回は、スクラッチ(Scratch)を使った「<b>アナログ時計</b>」の作り方を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>秒針、短針、長針の動きをプログラミングして、自分だけのオリジナル時計を作ってみましょう！</p>
<p>プログラミングを通じて時間の<ruby>概念<rt>がいねん</rt></ruby>をより深く<ruby>理解<rt>りかい</rt></ruby>し、算数でつまづきがちな「<b>時計算</b>」の<ruby>基本的<rt>きほんてき</rt></ruby>な考え方を自然に学べます。</p>
<p>図やコード例を交えながら、わかりやすく<ruby>解説<rt>かいせつ</rt></ruby>していきますので、プログラミング初心者でも安心して取り組めますよ。</p>
<p>ぜひ、親子で<ruby>一緒<rt>いっしょ</rt></ruby>に<ruby>挑戦<rt>ちょうせん</rt></ruby>して、プログラミングの楽しさを体験してみてください！</p>
<p>&nbsp;</p>
<p>Scratchはインターネットにつながるパソコンから無料で利用できます。</p>
<p>Scratch公式サイト: <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>な使い方<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、下の記事で<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>アナログ時計</b>」は、3本の<ruby>針<rt>はり</rt></ruby>で時間時間を教えてくれる時計です。</p>
<div class="blank-box bb-blue">
<ul>
<li><ruby>秒針<rt>びょうしん</rt></ruby>：何秒かを教えてくれる<ruby>針<rt>はり</rt></ruby>。60秒で1周します。</li>
<li><ruby>長針<rt>ちょうしん</rt></ruby>：何分かを教えてくれる<ruby>針<rt>はり</rt></ruby>。60分で1周します。</li>
<li><ruby>短針<rt>たんしん</rt></ruby>：何時かを教えてくれる<ruby>針<rt>はり</rt></ruby>。12時間で1周します。</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>の時計のように動かしてみましょう。</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>完成した作品です。ハタをおして動かしてみてください。<br />
<iframe loading="lazy" src="https://scratch.mit.edu/projects/1047993172/embed" width="485" height="402" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></p>
<p>&nbsp;</p>
<p>完成したソースコードは下の通りです。</p>
<p><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>えています。</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.スプライトを作る</p>
<p>「スプライトを選ぶ」→「<ruby>描<rt>えが</rt></ruby>く」を選びます。</p>
<p>ネコのスプライトは消して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>をかきます。</p>
<p>直線のはしをキャンバスの丸十字に合わせてください。ここを中心に<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>ペイントエディターのくわしい使い方は「<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>）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」で<ruby>解説<rt>かいせつ</rt></ruby>しています。</p>
<p>&nbsp;</p>
<p>3.ステージにスプライトを配置する</p>
<p>ステージの中心(x<ruby>座標<rt>ざひょう</rt></ruby>0、y<ruby>座標<rt>ざひょう</rt></ruby>0）に、スプライトを配置し、向きを0にします。</p>
<p>スプライトの名前を「<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>ブロックを出す</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>の下に出す</p>
<p>3.<ruby>針<rt>はり</rt></ruby>の向きを変える<ruby>処理<rt>しょり</rt></ruby>を追加する</p>
<p>動きカテゴリにある<span style="color: #4c97ff;"><b>「（ 90 ）度に向ける」</b></span>ブロックを出し、<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックの中に入れましょう。</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>次に、何度に向けたらいいか考えましょう。<span style="color: #4c97ff;"><b>「（ 90 ）度に向ける」</b></span>ブロックの( 90 )の部分です。</p>
<p><ruby>秒針<rt>びょうしん</rt></ruby>は1分で一周します。</p>
<p>つまり、60秒で360度回転するので、360度÷60秒で毎秒6度ずつ進んでいます。</p>
<p>1秒で6度、2秒で12度、3秒で18度……と進むので、<ruby>秒針<rt>びょうしん</rt></ruby>の角度は<b>「<ruby>現在<rt>げんざい</rt></ruby>の秒 × 6」</b>で求められますね。</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>を出して、左側に<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の秒」</b></span>ブロックを入れ、右側に6を入力しましょう。そして<span style="color: #4c97ff;"><b>「（ 90 ）度に向ける」</b></span>の90の部分に入れます。</p>
<p><span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の秒」</b></span>ブロックは、<ruby>現在<rt>げんざい</rt></ruby>の秒を調べるブロックです。調べるカテゴリにある<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の年」</b></span>ブロックを出し、年の部分をクリックして、秒に変えましょう。</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>のプログラムが完成しました。</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時間で一周します。</p>
<p>60分で360度回転するので、<b>1分で6度（360度÷60分）</b>進みます。</p>
<p>……<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>」を選びます。</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>しましょう。</p>
<p>3.ステージの中心(x<ruby>座標<rt>ざひょう</rt></ruby>0、y<ruby>座標<rt>ざひょう</rt></ruby>0）に、スプライトを配置し、向きを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>する</p>
<p>コスチュームから見た目を<ruby>変更<rt>へんこう</rt></ruby>します。線の太さや色を変えて、<ruby>秒針<rt>びょうしん</rt></ruby>と区別できるようにしましょう。</p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>プログラムは、1ヵ所だけ変えれば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>何を変えたらよいか、自分で考えてみましょう！</p>
<p>&nbsp;</p>
<h3><span id="toc10">短針</span></h3>
<h4>コスチューム</h4>
<p>1.<ruby>長針<rt>ちょうしん</rt></ruby>のスプライトを右クリックして「<ruby>複製<rt>ふくせい</rt></ruby>」を選びます。</p>
<p>2.<ruby>長針<rt>ちょうしん</rt></ruby>2のスプライトができるので、スプライト名を「<ruby>短針<rt>たんしん</rt></ruby>」に<ruby>変更<rt>へんこう</rt></ruby>しましょう。</p>
<p>3.ステージの中心(x<ruby>座標<rt>ざひょう</rt></ruby>0、y<ruby>座標<rt>ざひょう</rt></ruby>0）に、スプライトを配置し、向きを0にします。</p>
<p>4.<ruby>他<rt>ほか</rt></ruby>の<ruby>針<rt>はり</rt></ruby>と区別がつくようにコスチュームの見た目を<ruby>変更<rt>へんこう</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h4>コード</h4>
<p><ruby>短針<rt>たんしん</rt></ruby>は12時間で一周するので、<b>1時間で30度（360度÷12時間）</b>進んでいます。</p>
<p>なので、角度は<b>「 <ruby>現在<rt>げんざい</rt></ruby>の時 × 30 」</b>で求められますね。</p>
<p><span style="color: #40bf4a;"><b>「<span style="color: #4cbfe6;">( <ruby>現在<rt>げんざい</rt></ruby>の時 )</span> * ( 30 )度に向ける」</b></span>にすればよさそうですが……</p>
<p><ruby>実際<rt>じっさい</rt></ruby>に動かしてみてください。本物の時計とちがうところがありませんか？</p>
<p>&nbsp;</p>
<p>本物の時計の<ruby>短針<rt>たんしん</rt></ruby>は、1時間の間にもちょっとずつ進んでいますね。</p>
<p>60分で30度進むので、<b>1分で0.5度（30度÷60分）</b>進みます。</p>
<p>よって<span style="color: #4c97ff;"><b>「(<span style="color: #40bf4a;">（<span style="color: #4cbfe6;"><ruby>現在<rt>げんざい</rt></ruby>の時</span> * 30）+（<span style="color: #4cbfe6;"><ruby>現在<rt>げんざい</rt></ruby>の分</span> * 0.5）</span>度に向ける」</b></span>で角度が求められます。</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>いてみませんか？</p>
<p>これから<ruby>紹介<rt>しょうかい</rt></ruby>するプログラムの動きをゆっくりにすると、こんな感じになります。</p>
<p><iframe loading="lazy" src="https://scratch.mit.edu/projects/1047993283/embed" width="485" height="402" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></p>
<p>&nbsp;</p>
<h4>コスチューム</h4>
<p><ruby>文字盤<rt>もじばん</rt></ruby>に使いたいスプライトを<ruby>準備<rt>じゅんび</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>「中心から外側へ<ruby>移動<rt>いどう</rt></ruby> → スタンプ → 中心へもどる → 30度回す」を12回くり返します。</p>
<p><ruby>目盛<rt>めもり</rt></ruby>は12<ruby>個<rt>こ</rt></ruby>あるので、360度÷12で30度ずつ回します。</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>ブロックを出す</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>「全部消す」</b></span>ブロックを出す</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.ステージの中心に、スプライトを配置します。</p>
<p>動きカテゴリから下の2つのブロックを出しましょう。</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)度に向ける」</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>す」</b></span>ブロックを出し、中に以下の<ruby>処理<rt>しょり</rt></ruby>を追加しましょう。</p>
<ol>
<li>動きカテゴリ<span style="color: #4c97ff;"><b>「(120)歩動かす」</b></span>ブロック</li>
<li>ペンカテゴリ<span style="color: #2abd90;"><b>「スタンプ」</b></span>ブロック</li>
<li>動きカテゴリ<span style="color: #4c97ff;"><b>「(-120)歩動かす」</b></span>ブロック</li>
<li>動きカテゴリ<span style="color: #4c97ff;"><b>「(30)度回す」</b></span>ブロック</li>
</ol>
<p>何歩動かすかは、お好みで調整してください。</p>
<p><span style="color: #2abd90;"><b>「スタンプ」</b></span>ブロックは、スプライトの見た目をハンコみたいにはりつける命令です。</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>「アナとエルサとコードを書く」という<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>くのが楽しかった方は、ぜひこちらもチェックしてみてください。</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>アナログ時計が完成しました！</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>のない時計なので、好きなようにアレンジしてみましょう。</p>
<p>例えば、</p>
<ul>
<li><ruby>針<rt>はり</rt></ruby>のデザインを変える</li>
<li>決まった時間に音を鳴らす</li>
<li>時間帯で<ruby>背景<rt>はいけい</rt></ruby>が変わる</li>
</ul>
<p>など、自分だけのオリジナル時計を作ってみてくださいね！</p>
<p>&nbsp;</p>
<h2><span id="toc13">まとめ</span></h2>
<p>この記事では、Scratchを使った「アナログ時計」の作り方を<ruby>紹介<rt>しょうかい</rt></ruby>しました。自分だけのオリジナル時計を作ることができたでしょうか？</p>
<p>また、算数でつまづきがちな「時計算」の<ruby>基本的<rt>きほんてき</rt></ruby>な考え方も学ぶことができましたね。</p>
<div class="blank-box bb-blue">
<ul>
<li><ruby>秒針<rt>びょうしん</rt></ruby>：60秒で360度進むので、1秒で6度（360度÷60秒）進む。</li>
<li><ruby>長針<rt>ちょうしん</rt></ruby>：60分で360度進むので、1分で6度（360度÷60分）進む。</li>
<li><ruby>短針<rt>たんしん</rt></ruby>：12時間で360度進むので、1分で0.5度（360度÷(12時間×60分)）進む。</li>
</ul>
</div>
<p>当ブログでは「デジタル時計」の作り方も<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>と手紙のやりとり、楽しいですよね！</p>
<p>でも、もし手紙を落としてしまったり、だれかに見られてしまったら一大事…！</p>
<p>特に好きな人のことや、なやみなんか、<ruby>絶対<rt>ぜったい</rt></ruby>に見られたくないですよね。</p>
<p>そこで、この記事ではScratchを使って<b>「暗号文を作ったりもどしたりするプログラム」</b>の作り方を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>このプログラムがあれば、手紙の<ruby>内容<rt>ないよう</rt></ruby>をだれにも読めない<ruby>秘密<rt>ひみつ</rt></ruby>の言葉に変えることができます。</p>
<p><ruby>秘密<rt>ひみつ</rt></ruby>の言葉で手紙を書けば、安心して大切な話もできますね！</p>
<p>&nbsp;</p>
<div class="blank-box bb-tab bb-ng bb-red">このプログラムを使って、人の悪口を書いたり、いじめをしたりするのは<ruby>絶対<rt>ぜったい</rt></ruby>にダメ！<br />
約束してくださいね。</div>
<p>&nbsp;</p>
<p>Scratchはインターネットにつながるパソコンから無料で利用できます。</p>
<p>Scratch公式サイト: <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のアカウントの作り方と基本的な使い方<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、下の記事で<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>暗号文を作る方法はいろいろありますが、今回は<b>2つのリストを使った方法</b>を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>あいうえお順にならんだ「かなリスト」と、順番がバラバラな「カナリスト」を作り、<ruby>対応<rt>たいおう</rt></ruby>する文字に変える仕組みです。</p>
<p>&nbsp;</p>
<h2><span id="toc2">完成プログラム</span></h2>
<p>完成したソースコードは下の通りです。</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>ひらがなで文字列（ならんだ文字の集まり）を入力すると、暗号にしてくれるプログラムです。</p>
<p>ひらがな以外の文字はそのまま出力されます。</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>暗号文を元にもどせないと意味がありませんね。</p>
<p>カタカナで暗号文を入力すると、もとの文字列にもどしてくれるプログラムも作ります。</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>にしなくても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>変数</b>・<b>リスト</b>・<b>ブロック<ruby>定義<rt>ていぎ</rt></ruby></b>を使います。</p>
<div class="blank-box bb-blue">
<ul>
<li><span style="color: #ff6600;"><b>変　数</b></span>：データを一時的に覚えておくための入れ物</li>
<li><span style="color: #ff6600;"><b>リスト</b></span>：たくさんのデータを順番にならべ管理できるようにしたもの</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>しています。使い方がよく分からない人は読んでみてくださいね。</p>
<div class="blank-box bb-blue">
<ul>
<li><a rel="noopener" target="_self" href="https://living-maou.com/scratch-variable/">変数とは？スクラッチ（Scratch）を使ってわかりやすく<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/">配列・リストとは？スクラッチ（Scratch）を使ってわかりやすく<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/">関数とは？スクラッチ(Scratch)を使ってわかりやすく<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>暗号をもどすプログラムは、暗号にするプログラムを作ってからスプライトをコピーして作るので、最初はひとつでOKです。</p>
<p>スプライトの見た目や<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>を作成します。</p>
<p>&nbsp;</p>
<h4>変数</h4>
<p>変数カテゴリ→「変数を作る」から、変数を4つ作ります。</p>
<div class="blank-box bb-blue">
<ul>
<li>入力：入力した文字列</li>
<li>出力：出力する文字列</li>
<li>in：入力した文字列の何番目の文字か</li>
<li>list：リストの何番目か</li>
</ul>
</div>
<p>&nbsp;</p>
<h4>リスト</h4>
<p>変数カテゴリ→「リストを作る」から、リスト2つを作ります。</p>
<div class="blank-box bb-blue">
<ul>
<li>かなリスト：あいうえお順にならんでいる</li>
<li>カナリスト：順番がバラバラになっている</li>
</ul>
</div>
<p>メモ帳などにデータを作ってから読み込むと、楽ですよ。</p>
<p>&nbsp;</p>
<h4>ブロック定義</h4>
<p>ブロック<ruby>定義<rt>ていぎ</rt></ruby>も2つ用意します。</p>
<p>ブロック<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>します。</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>スプライトをクリックした時に、実行します。<span style="color: #ffd500;"><b>「このスプライトが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>を出しましょう。</p>
<p><span style="color: #ff8c1a;"><b>「（出力）を（　）にする」</b></span>で、変数「出力」を初期化します。</p>
<p><span style="color: #4cbfe6;"><b>「（暗号に<ruby>変換<rt>へんかん</rt></ruby>したい文字列を入力してください）と聞いて待つ」</b></span>と<span style="color: #ff8c1a;"><b>「（入力）を（答え）にする」</b></span>で、入力された文字列を変数「入力」に<ruby>格納<rt>かくのう</rt></ruby>します。</p>
<p>入力した文字列を1文字ずつ取り出して、かなリストにあるか<ruby>検索<rt>けんさく</rt></ruby>します。</p>
<p><span style="color: #ff8c1a;"><b>「（in）を（1）にする」</b></span>で、変数「in」の初期<ruby>値<rt>ち</rt></ruby>を<ruby>設定<rt>せってい</rt></ruby>します。1文字目から順番にみるので、初期<ruby>値<rt>ち</rt></ruby>は1です。</p>
<p><span style="color: #ffab19;"><b>「（入力の長さ）回<ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>す」</b></span>で、入力した文字数分くり返しましょう。</p>
<p>ブロック<ruby>定義<rt>ていぎ</rt></ruby><span style="color: #ff6680;"><b>「かなリスト<ruby>検索<rt>けんさく</rt></ruby>」</b></span>で、かなリストの何番目の文字か<ruby>検索<rt>けんさく</rt></ruby>します。変数「list」には、かなリストの何番目か<ruby>格納<rt>かくのう</rt></ruby>されます。</p>
<p>&nbsp;</p>
<p>かなリストにあった場合と、なかった場合で<ruby>処理<rt>しょり</rt></ruby>を分けます。</p>
<p><span style="color: #ffab19;"><b>「もし （list） &gt; かなの長さ なら」</b></span>の中には、<b>リストになかった場合</b>の<ruby>処理<rt>しょり</rt></ruby>を入れます。</p>
<p><span style="color: #ff8c1a;"><b>「（出力）を（出力と入力のin<ruby>番目<rt>ばんめ</rt></ruby>の文字）にする」</b></span>で入力した文字をそのまま出力しましょう。</p>
<p><span style="color: #ffab19;"><b>「でなければ」</b></span>の中には、<b>リストにあった場合</b>の<ruby>処理<rt>しょり</rt></ruby>を入れます。</p>
<p><span style="color: #ff8c1a;"><b>「（出力）を（出力とカナのlist<ruby>番目<rt>ばんめ</rt></ruby>の文字）にする」</b></span>で、カナリストの<ruby>対応<rt>たいおう</rt></ruby>する文字を出力しましょう。</p>
<p><span style="color: #ff8c1a;"><b>「（in）を（1）ずつ変える」</b></span>で、入力した文字列の次の文字をみるようにし、くり返しの最初の<ruby>処理<rt>しょり</rt></ruby>へもどります。</p>
<p>&nbsp;</p>
<p>くり返しをぬけたら<span style="color: #9966ff;"><b>「（出力）と（5）秒言う」</b></span>で<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>を作ります。</p>
<p><span style="color: #ff8c1a;"><b>「（list）を（1）にする」</b></span>で変数「list」の初期<ruby>値<rt>ち</rt></ruby>を<ruby>設定<rt>せってい</rt></ruby>します。1番目の<ruby>要素<rt>ようそ</rt></ruby>から順番にみるので、初期<ruby>値<rt>ち</rt></ruby>は1です。</p>
<p>以下の<ruby>条件<rt>じょうけん</rt></ruby>をどちらか満たすまで<span style="color: #ff8c1a;"><b>「（list）を（1）ずつ変える」</b></span>を実行します。</p>
<ul>
<li><b>入力のin<ruby>番目<rt>ばんめ</rt></ruby>の文字 = かなのlist<ruby>番目<rt>ばんめ</rt></ruby></b> → リストにあった</li>
<li><b>list &gt; かなの長さ</b> → 最後までみたけれどリストになかった</li>
</ul>
<p>&nbsp;</p>
<h3><span id="toc11">暗号をもどすプログラム</span></h3>
<p>暗号にするプログラムでは、入力した文字がかなリストの何番目の文字か<ruby>探<rt>さが</rt></ruby>し、<ruby>対応<rt>たいおう</rt></ruby>するカナリストの文字に<ruby>変換<rt>へんかん</rt></ruby>しました。</p>
<p>暗号をもどすプログラムではその<ruby>逆<rt>ぎゃく</rt></ruby>を行います。</p>
<div class="blank-box bb-blue">
<ul>
<li style="list-style-type: none;">
<ul>
<li>暗号にする　：かな → カナ</li>
<li>暗号をもどす：カナ → かな</li>
</ul>
</li>
</ul>
</div>
<p>暗号にするプログラムのスプライトをコピーして、どこを直せばいいか自分で考えてみてくださいね。</p>
<p>&nbsp;</p>
<h2><span id="toc12">まとめ</span></h2>
<p>「暗号文を作ったりもどしたりするプログラム」の作り方を<ruby>紹介<rt>しょうかい</rt></ruby>しました。</p>
<p>約束を守って、みんなと仲良く楽しい手紙の<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>この記事では、子ども向けプログラミング言語<b>Scratch（スクラッチ）</b>を使って「アルファベットを点字に<ruby>変換<rt>へんかん</rt></ruby>するプログラム」の作り方を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>アルファベットを点字に<ruby>変換<rt>へんかん</rt></ruby>するプログラムを作ることで、<ruby>以下<rt>いか</rt></ruby>のことが学べます。</p>
<div class="blank-box bb-blue">
<ul>
<li>プログラミングの<ruby>基礎<rt>きそ</rt></ruby>「<ruby>変数<rt>へんすう</rt></ruby>」と「リスト」を学べる</li>
<li>点字のしくみについて<ruby>理解<rt>りかい</rt></ruby>が深まる</li>
<li><ruby>視覚<rt>しかく</rt></ruby><ruby>障害者<rt>しょうがいしゃ</rt></ruby>への<ruby>理解<rt>りかい</rt></ruby>が深まる</li>
</ul>
</div>
<p>夏休みの自由研究におすすめ。点字をテーマにした調べ学習に<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>な使い方<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、下の記事で<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>点字</b>とは、<ruby>視覚<rt>しかく</rt></ruby><ruby>障害者<rt>しょうがいしゃ</rt></ruby>のための文字です。小さな点を使って文字や記号を<ruby>表現<rt>ひょうげん</rt></ruby>し、指で<ruby>触<rt>さわ</rt></ruby>って読むことができます。</p>
<p>フランスの<b>ルイ・ブライユ</b>によって発明されました。</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>点字は、<span class="marker-under-red">6つの点を組み合わせて文字や記号を<ruby>表現<rt>ひょうげん</rt></ruby></span>します。アルファベットの文字や記号ごとに<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>するプログラムを作ってみましょう。</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>したプログラムです。</p>
<p><iframe loading="lazy" src="https://scratch.mit.edu/projects/879919584/embed" width="485" height="402" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe><br />
アルファベットを左右の三角ボタンで<ruby>選択<rt>せんたく</rt></ruby>すると、それに<ruby>対応<rt>たいおう</rt></ruby>する点字が<ruby>表示<rt>ひょうじ</rt></ruby>されます。（点のある場所：●　ない場所：○）</p>
<p>&nbsp;</p>
<p>このプログラムは<span style="color: #ff0000;"><b><ruby>変数<rt>へんすう</rt></ruby></b></span>と<span style="color: #ff0000;"><b>リスト</b></span>を使います。</p>
<p><b><ruby>変数<rt>へんすう</rt></ruby></b>は、プログラムで使う<span class="marker-under-red">データを<ruby>一時的<rt>いちじてき</rt></ruby>に<ruby>保存<rt>ほぞん</rt></ruby>するための場所</span>。<b>リスト</b>は、<span class="marker-under-red"><ruby>複数<rt>ふくすう</rt></ruby>のデータをまとめて<ruby>管理<rt>かんり</rt></ruby>するためのしくみ</span>です。</p>
<p>下の記事でくわしく<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><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）を使ってわかりやすく<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>しましょう。</p>
<p>ネコのスプライト（スプライト1）は使わないので消してください。</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>で、C<ruby>以降<rt>いこう</rt></ruby>のコスチュームも<ruby>追加<rt>ついか</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h4>すすむボタン</h4>
<p>すすむボタンを作りましょう。</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/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>をひとつ消すと三角形になります。</p>
<p>ペイントエディターのくわしい使い方は「<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>）<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の点のスプライトを作りましょう。</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>)</li>
<li>コスチューム2の<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-memo bb-blue">点のスプライトは1つでOKです。<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>

<h3><span id="toc5">アルファベットのプログラム</span></h3>
<p>すすむボタンをおすと、次のアルファベットが<ruby>表示<rt>ひょうじ</rt></ruby>されるプログラムを作りましょう。</p>
<h4>アルファベット</h4>
<p>何番目のアルファベットかを表す<ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>を作ります。</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>を作ります。すべてのスプライト用で作ってください。</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>「アルファベット番号」</b></span>に<ruby>対応<rt>たいおう</rt></ruby>するコスチュームを<ruby>表示<rt>ひょうじ</rt></ruby>するプログラムを作ります。</p>
<ol>
<li>イベントカテゴリから<span style="color: #ffd500;"><b>「緑のハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>をコードエリアに出す。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「アルファベット番号を(0)にする」</b></span>を出し、<span style="color: #ffd500;"><b>「緑のハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の下に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><span style="color: #ff8c1a;"><b>「アルファベット番号を(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>を出し、<span style="color: #ff8c1a;"><b>「アルファベット番号を1にする」</b></span>の下に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li>見た目カテゴリから<span style="color: #9966ff;"><b>「コスチュームを(Block-z)にする」</b></span>を出し、<span style="color: #ffab19;"><b>「ずっと」</b></span>の中に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>を出し、<span style="color: #9966ff;"><b>「コスチュームを(Block-z)にする」</b></span>のBlock-zの部分に<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>「アルファベット番号」</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>と同じコスチューム番号のコスチュームが表示されます。</div>
<p>&nbsp;</p>
<h4>すすむボタン</h4>
<p>すすむボタンをおすと、<ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>が1<ruby>増<rt>ふ</rt></ruby>えるプログラムを作ります。</p>
<ol>
<li>イベントカテゴリから<span style="color: #ffd500;"><b>「このスプライトが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>をコードエリアに出す。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「アルファベット番号を(1)ずつ<ruby>変<rt>か</rt></ruby>える」</b></span>を出し、<span style="color: #ffd500;"><b>「このスプライトが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の下に<ruby>配置<rt>はいち</rt></ruby>する。</li>
</ol>
<p><ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>が26(Z)を<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>を出し、<span style="color: #ff8c1a;"><b>「アルファベット番号を(1)ずつ<ruby>変<rt>か</rt></ruby>える」</b></span>の下に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「()&gt;(50)」</b></span>を出し、<span style="color: #ffab19;"><b>「もし なら」</b></span>の中に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><span style="color: #40bf4a;"><b>「()&gt;(50)」</b></span>を<span style="color: #40bf4a;"><b>「(アルファベット番号) &gt; (26)」</b></span>に<ruby>変更<rt>へんこう</rt></ruby>する。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「アルファベット番号を(0)にする」</b></span>を出し、<span style="color: #ffab19;"><b>「もし アルファベット番号 &gt; 26なら」</b></span>の下に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><span style="color: #ff8c1a;"><b>「アルファベット番号を(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>すすむボタンをおしてテストしてみましょう。アルファベット番号が<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>されるプログラムを作りましょう。</p>
<p>6つの点のありなしを<ruby>管理<rt>かんり</rt></ruby>するしくみを考えます。</p>
<p><ruby>左側<rt>ひだりがわ</rt></ruby>を上から1の点、2の点、3の点、<ruby>右側<rt>みぎがわ</rt></ruby>を上から4の点、5の点、6の点、として点に番号をつけ、点のある場所を●、ない場所を○とします。</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>点のありなしを6けたの数字で<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文字目は1の点、2文字目は2の点…といったふうにわりあて、点のある場所は1、ない場所を0にします。</p>
<p>Aは1の点だけなので「100000」になります。</p>
<p>&nbsp;</p>
<h4>点字リストを作る</h4>
<p>A～Zまでの6けたの数字が入ったリストを作ります。</p>
<p><ruby>変数<rt>へんすう</rt></ruby>カテゴリを<ruby>選<rt>えら</rt></ruby>んで<span style="color: #ff661a;"><b>「リストを作る」</b></span>をクリックし、「点字リスト」という名前のリストを作ります。すべてのスプライト用で作ってください。</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>むと楽です。</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>のとおりになります。</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">アルファベットのコスチュームと点字リストのならびは、ABC<ruby>順<rt>じゅん</rt></ruby>になるようにしてください。</span></p>
<p>&nbsp;</p>
<h4>1の点のプログラム</h4>
<p>点字リストの<span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>番目のデータをみて、1番目の文字が1だったら●、0だったら0を<ruby>表示<rt>ひょうじ</rt></ruby>するプログラムを作ります。</p>
<ol>
<li>イベントカテゴリから<span style="color: #ffd500;"><b>「緑のハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>をコードエリアに出す。</li>
<li><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>する。</li>
<li><ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「もし なら／でなければ」</b></span>を出し、<span style="color: #ffab19;"><b>「ずっと」</b></span>の中に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「()=(50)」</b></span>を出し、<span style="color: #ffab19;"><b>「もし なら」</b></span>の中に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「(りんご)の(1)番目の文字」</b></span>を出し、<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>「点字テーブルの(1)番目」</b></span>を出し、<span style="color: #40bf4a;"><b>「(りんご)の(1)番目の文字」</b></span>のりんごの部分に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><span style="color: #ff8c1a;"><b>「点字テーブルの(1)番目」</b></span>の1を<ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>に<ruby>変更<rt>へんこう</rt></ruby>する。</li>
<li>1の点なので<span style="color: #40bf4a;"><b>「点字テーブル（アルファベット番号）番目の(1)番目の文字」</b></span>の1の部分はそのまま。</li>
<li><span style="color: #ffab19;"><b>「もし点字テーブルの(アルファベット番号)番目の(1)番目の文字=(50)なら」</b></span>の50を1に<ruby>変更<rt>へんこう</rt></ruby>する。</li>
<li>見た目カテゴリから<span style="color: #9966ff;"><b>「コスチュームを(コスチューム2)にする」</b></span>を出し、もしの下とでなければの下に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li>1だった場合、点がある場所なので<span style="color: #9966ff;"><b>「コスチュームを(コスチューム2)にする」</b></span>にする。</li>
<li>1でない場合は、点がない場所なので<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の点のスプライトをコピーして、2の点～6の点も作りましょう。</p>
<p>どこを<ruby>変更<rt>へんこう</rt></ruby>すればいいか考えてみてください。</p>
<p>&nbsp;</p>
<h2><span id="toc7">まとめ</span></h2>
<p>アルファベットを点字に<ruby>変換<rt>へんかん</rt></ruby>するプログラムの作り方を<ruby>紹介<rt>しょうかい</rt></ruby>しました。</p>
<p>リストまわりは少し<ruby>複雑<rt>ふくざつ</rt></ruby>ですが、プログラムはなるべく短くなるようにしています。</p>
<p><ruby>変数<rt>へんすう</rt></ruby>「アルファベット」を使って、何番目のコスチュームを出すのかと、点字リストの何番目をみるのかを<ruby>管理<rt>かんり</rt></ruby>していることをおさえておきましょう。</p>
<p><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="【かんたん・すごい】小学生の自由研究に役立つプログラミング作品例18選" 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">【かんたん・すごい】小学生の自由研究に役立つプログラミング作品例18選</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>
		<item>
		<title>【マイクロビット×メイクコード】簡単なプログラムでいつもの遊びをおもしろくしよう！</title>
		<link>https://living-maou.com/microbit-hideandseek/</link>
					<comments>https://living-maou.com/microbit-hideandseek/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Wed, 16 Dec 2020 07:38:36 +0000</pubDate>
				<category><![CDATA[micro:bit]]></category>
		<category><![CDATA[MakeCode]]></category>
		<category><![CDATA[作品例]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=1436</guid>

					<description><![CDATA[この記事では、マイクロビットを使ったかくれんぼを紹介します。 マイクロビットの基本的な機能は分かったけれど 次に何を作っていいのか分からない 複雑なゲームを作るのはハードルが高い みんなでワイワイ遊べるものが作りたい と [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2020/12/eyecatch_microbit_hideandseek.jpg"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1437" src="https://living-maou.com/wp-content/uploads/2020/12/eyecatch_microbit_hideandseek-800x450.jpg" alt="" width="800" height="450" srcset="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-500x281.jpg 500w, 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-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/12/eyecatch_microbit_hideandseek-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>初心者さんでも分かりやすいようにしっかりプログラムの解説をしています。</p>
<h2><span id="toc1">マイクロビットを使ったかくれんぼのルール</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek01.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1438" src="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek01.jpg" alt="かくれんぼとマイクロビット" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek01.jpg 800w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek01-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek01-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek01-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek01-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek01-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek01-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>かくれている間、鬼に見つからないようにマイクロビットのボタンをおして音を鳴らし、音を鳴らした回数を競います。</p>
<div class="blank-box bb-blue">
<ol>
<li>鬼を決める。</li>
<li>かくれる時間、子は物かげにかくれる。</li>
<li>子がかくれる間、鬼は目をふさいで待つ。</li>
<li>鬼はかくれている子をさがす。</li>
<li><span class="marker-under-red">鬼がさがしている間、</span><span class="marker-under-red">鬼に見つかる または さがす時間が終わるまで、</span><span class="marker-under-red">子はマイクロビットのボタンをおして音を鳴らす。</span></li>
<li>さがす時間内に子を全員みつけられたら鬼の勝ち。</li>
<li><span class="marker-under-red">鬼が時間内に全員見つけられなかった場合、</span><span class="marker-under-red">見つからなかった子の中で音を鳴らした回数が一番多い子が勝ち。</span></li>
</ol>
</div>
<p>赤いマーカー部分が追加したルールです。</p>
<p>音を鳴らして鬼に見つかるかもしれないハラハラ感を楽しめる要素を追加しました。</p>
<p>&nbsp;</p>
<h2><span id="toc2">用意するもの</span></h2>
<ul>
<li><b>マイクロビット本体</b><br />
人数分必要です。<br />
<em>　</em></li>
<li><b>電池ボックス</b><br />
ゲーム中はマイクロビットを持ち歩きます。<br />
マイクロビット単体で持ち歩く場合は<a rel="noopener" target="_self" href="https://living-maou.com/microbit-battery/">電池ボックス<span class="fa fa-external-link internal-icon anchor-icon"></span></a>が必要です。<br />
<em>　</em></li>
<li><b>スピーカー</b><br />
<span style="color: #ff0000;">v1.5以前のマイクロビットは別途スピーカーが必要です。</span><br />
最新バージョンのマイクロビット(micro:bit v2.0)には、スピーカーが内蔵されているので不要です。</li>
</ul>
<p>&nbsp;</p>
<h2><span id="toc3">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="toc4">一番かんたんなプログラム</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1439" src="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek02.png" alt="シンプルなプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek02.png 800w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ul>
<li>Aボタンをおしたとき<br />
メロディ「ジャンプアップ」を鳴らして、<br />
メロディを鳴らした「回数」を1増やす。</li>
<li>ずっと<br />
メロディを鳴らした「回数」を表示する。</li>
</ul>
</div>
<p>最低限、これだけの機能があれば遊ぶことができます。</p>
<p>プログラムもとてもシンプルです。</p>
<p>しかし、遊んでいるうちに<span style="color: #ff0000;">こまったこと</span>が出てくるのではないでしょうか。</p>
<p>どんなこまったことが起こりそうか、予想したり実際に遊んたりして考えてみてください。</p>
<p>こまったことの例</p>
<div class="blank-box bb-blue">
<ul>
<li>かくれる時間・さがす時間が、いつ終わったのか分からなくなる。</li>
<li>音が鳴り終わる前に、何度もボタンをおしてしまう。</li>
<li>鬼に見つかった後や終わった後に、こっそりボタンをおしたくなる。</li>
</ul>
</div>
<p>&nbsp;</p>
<div class="ad-area no-icon ad-shortcode ad-rectangle ad-label-visible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-9126458450711382"
  data-ad-slot="2965068638"
  data-ad-format="rectangle"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc5">もっと遊びやすくしてみよう</span></h2>
<p>こまったことを解決できるよう、一番シンプルなプログラムにどんな機能を追加したらいいか考えてみましょう。</p>
<p>今回は、こんな機能を追加しました。</p>
<div class="blank-box bb-blue">
<ul>
<li>かくれる時間を測る。</li>
<li>さがす時間を測る。</li>
<li>連続してボタンをおせない。</li>
<li>鬼に見つかった後とかくれる時間終了後、ボタンをおしても回数は増えない。</li>
</ul>
</div>
<p>&nbsp;</p>
<h2><span id="toc6">プログラムの仕様</span></h2>
<p>追加する機能もふまえて、プログラムにどんなことをさせたいのかまとめました。</p>
<h3><span id="toc7">ゲーム開始前（状態：0）</span></h3>
<p>「←」を表示して、Aボタンを指す。</p>
<h3><span id="toc8">かくれる時間（状態：1）</span></h3>
<ul>
<li>Aボタンをおすと、ゲームスタート（全員同時におしてね！）</li>
<li>かくれる時間の残り時間を棒グラフで表示する。</li>
</ul>
<h3><span id="toc9">さがす時間（状態：2）</span></h3>
<ul>
<li>かくれる時間が終わったら「♪」を表示、さがす時間がスタートする。</li>
<li>さがす時間の残り時間を棒グラフで表示する</li>
<li>Aボタンをおすと、メロディ「ジャンプアップ」が鳴り、メロディを鳴らした「回数」を1増やす。</li>
<li>ただし、鳴らしてから3秒たたないと次の音を鳴らせない。</li>
</ul>
<h3><span id="toc10">鬼に見つかった時（状態：3）</span></h3>
<ul>
<li>鬼は見つけた子のマイクロビットのAとBボタンを同時におす。</li>
<li>メロディ「パワーダウン」が鳴り、「がいこつ」を表示する。</li>
<li>その後、Aボタンをおしても「回数」はカウントされない。</li>
</ul>
<h3><span id="toc11">ゲーム終了（状態：3）</span></h3>
<ul>
<li>かくれる時間が終わったら、メロディ「パワーダウン」が鳴り、「すばらしい」顔を表示する。</li>
<li>その後、Aボタンをおしても「回数」はカウントされない。</li>
<li>Bボタンをおすと、メロディを鳴らした「回数」が表示される。</li>
</ul>
<p>&nbsp;</p>
<h2><span id="toc12">完成プログラム</span></h2>
<p>プログラムは下の画像のようになります。</p>
<h3><span id="toc13">最初だけ・ずっと</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1440" src="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek03.png" alt="最初だけ・ずっと" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek03.png 800w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc14">関数「HideTime」</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1441" src="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek04.png" alt="関数「HideTime」" width="800" height="600" srcset="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek04.png 800w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek04-500x375.png 500w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek04-300x225.png 300w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek04-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc15">関数「SeekTime」</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1442" src="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek05.png" alt="関数「SeekTime」" width="800" height="600" srcset="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek05.png 800w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek05-500x375.png 500w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek05-300x225.png 300w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek05-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc16">ボタンAが押されたとき</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1443" src="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek06.png" alt="ボタンAが押されたとき" width="800" height="600" srcset="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek06.png 800w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek06-500x375.png 500w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek06-300x225.png 300w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek06-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc17">ボタンB・ボタンA+Bが押されたとき</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1444" src="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek07.png" alt="ボタンB・ボタンA+Bが押されたと" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek07.png 800w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2020/12/microbit_hideandseek07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></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="toc18">プログラム解説</span></h2>
<p>プログラムの中の条件分岐と変数の計算を中心に解説します。</p>
<h3><span id="toc19">変数「状態」について</span></h3>
<p>かくれんぼの手順のどの段階か、変数<span style="color: #dc143c;"><b>「状態」</b></span>を使って分かるようにします。</p>
<div class="blank-box bb-blue">
<ul>
<li>状態が0：ゲーム開始前</li>
<li>状態が1：かくれる時間</li>
<li>状態が2：さがす時間</li>
<li>状態が3：鬼に見つかった・ゲーム終了</li>
</ul>
</div>
<p>&nbsp;</p>
<div class="blank-box bb-tab bb-memo bb-red"><span style="color: #ff0000;"><b>変数</b></span>とは、<span class="marker-under-red">データを一時的に覚えておく</span>ための入れ物のことです。</div>
<p>変数については「<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>」でくわしく解説しています。</p>
<h3><span id="toc20">最初だけ</span></h3>
<p>最初に、変数の初期値を設定します。</p>
<p>音量やかくれる時間・さがす時間は人数や場所で調整してくださいね。</p>
<div class="blank-box bb-blue">
<ul>
<li>音量：0～255の範囲</li>
<li>かくれる時間・さがす時間：ミリ秒単位（1秒=1,000ミリ秒）</li>
</ul>
</div>
<p>&nbsp;</p>
<h3><span id="toc21">ずっと</span></h3>
<p>変数<span style="color: #dc143c;"><b>「状態」</b></span>の値をみて、処理を分けています。</p>
<h4>状態が0のとき（ゲーム開始前）</h4>
<p>「←」を表示する。</p>
<h4>状態が1のとき（かくれる時間）</h4>
<p>関数<span style="color: #3455db;"><b>「HideTime」</b></span>を呼び出す。</p>
<h4>状態が2のとき（さがす時間）</h4>
<p>関数<span style="color: #3455db;"><b>「SeekTime」</b></span>を呼び出す。</p>
<p>&nbsp;</p>
<div class="blank-box bb-tab bb-memo bb-red"><span style="color: #ff0000;"><b>関数</b></span>とは、<span class="marker-under-red">命令のまとまり</span>のことです。何度も使う処理があったら、それを関数にすると便利！</div>
<p>関数については「<a rel="noopener" target="_self" href="https://living-maou.com/scratch-function/">関数とは？スクラッチ（Scratch）を使って解説<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」でくわしく解説しています。</p>
<p>&nbsp;</p>
<h3><span id="toc22">関数「HideTime」</span></h3>
<p>かくれる時間の時の処理です。</p>
<p>かくれる時間の間は残り時間を棒グラフで表示して、かくれる時間が終わったら鬼がさがす時間に移ります。</p>
<h4>変数「経過時間」の計算</h4>
<p>かくれる時間がはじまってから何秒たっているか計算します。</p>
<p><b><span style="color: #d400d4;">「稼働時間（ミリ秒）」</span>&#8211;<span style="color: #dc143c;">「開始時間」</span></b></p>
<h4>経過時間 &lt; かくれる時間 なら</h4>
<p>まだかくれる時間なので棒グラフを表示します。</p>
<ul>
<li>値：残り時間（かくれる時間 &#8211; 経過時間）</li>
<li>最大値：かくれる時間</li>
</ul>
<h4>でなければ</h4>
<p>かくれる時間が終わったので、<span style="color: #dc143c;"><b>「状態」</b></span>を2（さがす時間）にします。</p>
<p><b><span style="color: #dc143c;">「開始時間」</span></b>に<b><span style="color: #d400d4;">「稼働時間（ミリ秒）」</span></b>を保存して、さがす時間がはじまった時間を保存しておきます。</p>
<p>&nbsp;</p>
<div class="blank-box bb-tab bb-memo bb-red"><span style="color: #d400d4;"><b>稼働時間（ミリ秒）ブロック</b></span><br />
稼働時間（ミリ）は電源が入ってから経過した時間（ミリ秒）を取得するブロックです。<br />
<span style="color: #ff0000;">※ミリ秒は1,000分の1秒</span></div>
<p>&nbsp;</p>
<h3><span id="toc23">関数「SeekTime」</span></h3>
<p>さがす時間の時の処理です。</p>
<p>さがす時間の間は残り時間を棒グラフで表示して、さがす時間が終わったらゲーム終了（状態=3）になります。</p>
<p>&nbsp;</p>
<h3><span id="toc24">ボタンAが押されたとき</span></h3>
<p>ゲーム開始前かさがす時間かによって処理を分けます。</p>
<h4>状態が0のとき（ゲーム開始前）</h4>
<p>ゲームを開始して、子がかくれる時間になります。</p>
<ul>
<li><span style="color: #dc143c;"><b>「状態」</b></span>を1（かくれる時間）にします。</li>
<li><b><span style="color: #dc143c;">「開始時間」</span></b>に<b><span style="color: #d400d4;">「稼働時間（ミリ秒）」</span></b>を保存して、かくれる時間がはじまった時間を保存しておきます。</li>
</ul>
<h4>状態が2のとき（さがす時間）</h4>
<ul>
<li>連続して音を鳴らせないように、前回ボタンをおしてから3秒たっているか判定します。<br />
<b><span style="color: #d400d4;">「稼働時間（ミリ秒）」</span>&#8211;<span style="color: #dc143c;">「ボタン押した時間」</span></b>で、前回ボタンをおしてから何秒たったか計算できます。</li>
<li>音をならして、<span style="color: #dc143c;"><b>「回数」</b></span>を1増やします。</li>
<li><b><span style="color: #dc143c;">「ボタン押した時間」</span></b>に<b><span style="color: #d400d4;">「稼働時間（ミリ秒）」</span></b>を保存して、ボタンをおした時間を保存しておきます。</li>
</ul>
<p>&nbsp;</p>
<h3><span id="toc25">ボタンBが押されたとき</span></h3>
<p><span style="color: #dc143c;"><b>「回数」</b></span>を表示します。</p>
<p>&nbsp;</p>
<h3><span id="toc26">ボタンA+Bが押されたとき</span></h3>
<p>鬼に見つかった時の処理です。</p>
<p><span style="color: #dc143c;"><b>「状態」</b></span>が2（さがす時間）のとき、<span style="color: #dc143c;"><b>「状態」</b></span>を3（ゲーム終了）にします。</p>
<p>&nbsp;</p>
<h2><span id="toc27">シミュレーターで確認</span></h2>
<p>プログラムが完成したらシミュレーターで思った通りに動くかテストしましょう。</p>
<p>テストのときだけかくれる時間・さがす時間を短めにしておくと確認しやすいです。</p>
<p>&nbsp;</p>
<h2><span id="toc28">実機でテストしてみよう</span></h2>
<p>シミュレーターで確認できたらマイクロビットに転送して実際に動かしてみましょう。</p>
<p>&nbsp;</p>
<h2><span id="toc29">まとめ</span></h2>
<p>以上、マイクロビットを使ったかくれんぼの紹介でした。</p>
<p>完成形のプログラムを最初に見たら「むずかしそう…」と思うかもしれません。</p>
<p>しかし一番シンプルなプログラムに機能を１つずつ足すのであれば、できそうな気がするのではないでしょうか。</p>
<p>こうだったら便利だな・面白いなという機能があったら追加してみてくださいね。</p>
<p>&nbsp;</p>
<div class="blogcard-type bct-check">

<a rel="noopener" target="_self" href="https://living-maou.com/microbit-gesture/" title="【マイクロビット×メイクコード】ジェスチャーゲームのお題を出すプログラムを作ろう！" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/03/eyecatch_microbit_gesture-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_gesture-160x90.jpg 160w, 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.jpg 800w, 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-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-hideandseek/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
