Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,138 @@ const bookPromoEn = {
'gui.howtos.book-promo.purchase': '📖 Buy the book',
};

// blockGames 第4章(シューティング)の deck 名・ステップ文言(issue #958)。
const blockGames = {
'gui.howtos.block-shooting-lv0.name': 'シューティングゲームを作ろう Lv0',
'gui.howtos.block-shooting-lv0.step.intro':
'この章ではネコが上下に動いてタマをうつシューティングゲームを作るよ。まずは動かしてみよう!',
'gui.howtos.block-shooting-lv0.step.move':
'「コードを挿入」ボタンを押して、ネコを上下に動かすプログラムを入れてみよう',
'gui.howtos.block-shooting-lv0.step.run': 'キーボードの上・下の矢印キーを押すと、ネコが上下に動くよ',
'gui.howtos.block-shooting-lv0.step.customize':
'「10」の数を変えると、動く速さが変わるよ。好きな数に変えて試してみよう',
'gui.howtos.block-shooting-lv2.name': 'シューティングゲームを作ろう Lv2',
'gui.howtos.block-shooting-lv2.step.intro': '今度はブロックを自分で組み立ててみよう!',
'gui.howtos.block-shooting-lv2.step.catBlocks':
'ネコ:「上向き矢印キーが押されたとき」に「y座標を10ずつ変える」、下向きには「-10ずつ変える」を組み立てよう。y座標は上下の位置だよ',
'gui.howtos.block-shooting-lv2.step.addArrow':
'タマになるスプライト「Arrow1」を追加しよう(スプライト一覧の+ボタンから選べるよ)',
'gui.howtos.block-shooting-lv2.step.bulletBlocks':
'タマ:スペースキーで「スプライト1へ行く」「表示する」、そして「端に触れるまでx座標を10ずつ変える」を繰り返し、最後に「隠す」。' +
'『〜まで繰り返す』は条件が成り立つまで続けるブロックだよ',
'gui.howtos.block-shooting-lv2.step.run':
'{greenFlag}を押して、矢印キーで動かしスペースキーでタマをうってみよう!',
'gui.howtos.block-shooting-lv3.name': 'シューティングゲームを作ろう Lv3',
'gui.howtos.block-shooting-lv3.step.intro':
'同じゲームを Ruby で書いてみよう。ルビータブが開いているのを確認してね',
'gui.howtos.block-shooting-lv3.step.catCode':
'ネコ:「コードを挿入」で上下移動のプログラムを入れよう。self.y は上下の位置だよ',
'gui.howtos.block-shooting-lv3.step.addArrow':
'タマになるスプライト「Arrow1」を追加して、そのスプライトを選ぼう',
'gui.howtos.block-shooting-lv3.step.bulletCode':
'タマ:スペースキーで発射して右へ飛ばすプログラムを入れよう。until は条件が成り立つまで繰り返すよ',
'gui.howtos.block-shooting-lv3.step.run':
'{greenFlag}を押して、矢印キーとスペースキーで遊んでみよう!',
'gui.howtos.block-shooting-advanced.name': 'シューティングゲーム【発展】クローンでタマを増やそう',
'gui.howtos.block-shooting-advanced.step.intro':
'タマを一度にたくさん出すには「クローン」を使うよ。まずは動くところを見てみよう!',
'gui.howtos.block-shooting-advanced.step.clone':
'タマ(Arrow1)を選んで「コードを挿入」しよう。スペースキーを押すたびに自分のクローンを作ってタマを増やすよ',
'gui.howtos.block-shooting-advanced.step.run':
'{greenFlag}を押して、スペースキーを連打してみよう。タマがどんどん増えるよ!',
};

const blockGamesHira = {
'gui.howtos.block-shooting-lv0.name': 'シューティングゲームをつくろう Lv0',
'gui.howtos.block-shooting-lv0.step.intro':
'このしょうではネコがじょうげにうごいてタマをうつシューティングゲームをつくるよ。まずはうごかしてみよう!',
'gui.howtos.block-shooting-lv0.step.move':
'「コードをそうにゅう」ボタンをおして、ネコをじょうげにうごかすプログラムをいれてみよう',
'gui.howtos.block-shooting-lv0.step.run':
'キーボードのうえ・したのやじるしキーをおすと、ネコがじょうげにうごくよ',
'gui.howtos.block-shooting-lv0.step.customize':
'「10」のかずをかえると、うごくはやさがかわるよ。すきなかずにかえてためしてみよう',
'gui.howtos.block-shooting-lv2.name': 'シューティングゲームをつくろう Lv2',
'gui.howtos.block-shooting-lv2.step.intro': 'こんどはブロックをじぶんでくみたててみよう!',
'gui.howtos.block-shooting-lv2.step.catBlocks':
'ネコ:「うわむきやじるしキーがおされたとき」に「yざひょうを10ずつかえる」、したむきには「-10ずつかえる」をくみたてよう。yざひょうはじょうげのいちだよ',
'gui.howtos.block-shooting-lv2.step.addArrow':
'タマになるスプライト「Arrow1」をついかしよう(スプライトいちらんの+ボタンからえらべるよ)',
'gui.howtos.block-shooting-lv2.step.bulletBlocks':
'タマ:スペースキーで「スプライト1へいく」「ひょうじする」、そして「はしにふれるまでxざひょうを10ずつかえる」をくりかえし、さいごに「かくす」。' +
'『〜までくりかえす』はじょうけんがなりたつまでつづけるブロックだよ',
'gui.howtos.block-shooting-lv2.step.run':
'{greenFlag}をおして、やじるしキーでうごかしスペースキーでタマをうってみよう!',
'gui.howtos.block-shooting-lv3.name': 'シューティングゲームをつくろう Lv3',
'gui.howtos.block-shooting-lv3.step.intro':
'おなじゲームを Ruby でかいてみよう。ルビータブがひらいているのをかくにんしてね',
'gui.howtos.block-shooting-lv3.step.catCode':
'ネコ:「コードをそうにゅう」でじょうげいどうのプログラムをいれよう。self.y はじょうげのいちだよ',
'gui.howtos.block-shooting-lv3.step.addArrow':
'タマになるスプライト「Arrow1」をついかして、そのスプライトをえらぼう',
'gui.howtos.block-shooting-lv3.step.bulletCode':
'タマ:スペースキーではっしゃしてみぎへとばすプログラムをいれよう。until はじょうけんがなりたつまでくりかえすよ',
'gui.howtos.block-shooting-lv3.step.run':
'{greenFlag}をおして、やじるしキーとスペースキーであそんでみよう!',
'gui.howtos.block-shooting-advanced.name': 'シューティングゲーム【はってん】クローンでタマをふやそう',
'gui.howtos.block-shooting-advanced.step.intro':
'タマをいちどにたくさんだすには「クローン」をつかうよ。まずはうごくところをみてみよう!',
'gui.howtos.block-shooting-advanced.step.clone':
'タマ(Arrow1)をえらんで「コードをそうにゅう」しよう。スペースキーをおすたびにじぶんのクローンをつくってタマをふやすよ',
'gui.howtos.block-shooting-advanced.step.run':
'{greenFlag}をおして、スペースキーをれんだしてみよう。タマがどんどんふえるよ!',
};

const blockGamesEn = {
'gui.howtos.block-shooting-lv0.name': 'Make a Shooting Game Lv0',
'gui.howtos.block-shooting-lv0.step.intro':
'In this chapter we make a shooting game where the cat moves up and down and shoots. First, try running it!',
'gui.howtos.block-shooting-lv0.step.move':
'Press "Insert code" to add the program that moves the cat up and down',
'gui.howtos.block-shooting-lv0.step.run': 'Press the up/down arrow keys and the cat moves up and down',
'gui.howtos.block-shooting-lv0.step.customize':
'Changing the "10" changes how fast it moves. Try your own number!',
'gui.howtos.block-shooting-lv2.name': 'Make a Shooting Game Lv2',
'gui.howtos.block-shooting-lv2.step.intro': 'Now build the blocks yourself!',
'gui.howtos.block-shooting-lv2.step.catBlocks':
'Cat: on "when up arrow key pressed", "change y by 10"; for down, "change y by -10". y is the up/down position.',
'gui.howtos.block-shooting-lv2.step.addArrow':
'Add the sprite "Arrow1" for the bullet (pick it with the + button in the sprite list)',
'gui.howtos.block-shooting-lv2.step.bulletBlocks':
'Bullet: on space, "go to スプライト1", "show", then "repeat until touching edge: change x by 10", finally "hide". ' +
'"Repeat until" keeps going until the condition becomes true.',
'gui.howtos.block-shooting-lv2.step.run':
'Press {greenFlag}, move with the arrow keys and shoot with the space key!',
'gui.howtos.block-shooting-lv3.name': 'Make a Shooting Game Lv3',
'gui.howtos.block-shooting-lv3.step.intro':
"Let's write the same game in Ruby. Make sure the Ruby tab is open.",
'gui.howtos.block-shooting-lv3.step.catCode':
'Cat: use "Insert code" to add the up/down movement. self.y is the up/down position.',
'gui.howtos.block-shooting-lv3.step.addArrow': 'Add the sprite "Arrow1" for the bullet and select it',
'gui.howtos.block-shooting-lv3.step.bulletCode':
'Bullet: add the program that fires on space and flies right. "until" repeats until the condition is true.',
'gui.howtos.block-shooting-lv3.step.run':
'Press {greenFlag} and play with the arrow keys and the space key!',
'gui.howtos.block-shooting-advanced.name': 'Shooting Game (Advanced): Multiply bullets with clones',
'gui.howtos.block-shooting-advanced.step.intro':
'To fire many bullets at once, use "clones". First, watch it run!',
'gui.howtos.block-shooting-advanced.step.clone':
'Select the bullet (Arrow1) and "Insert code". Each space press makes a clone of itself to add bullets.',
'gui.howtos.block-shooting-advanced.step.run':
'Press {greenFlag} and mash the space key. The bullets keep multiplying!',
};

export const ja = {
...bookPromo,
...blockGames,
};

export const jaHira = {
...bookPromoHira,
...blockGamesHira,
};

export const en = {
...bookPromoEn,
...blockGamesEn,
};
37 changes: 36 additions & 1 deletion packages/scratch-gui/src/lib/libraries/decks/en-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,24 @@ import rubyBasics6Step5 from './steps/ruby-basics-6-5-modify.png';
// only the final step shows the TryRuby screenshot (see tutorial.md image reuse rule).
import rubyBasics7TryRuby from './thumbnails/ruby-basics-1-tryruby.png';

// blockGames 第4章 シューティング (issue #958)
import blockShootingOpening from './steps/blockShootingOpening.png';
import blockShootingLv0Intro from './steps/blockShootingLv0Intro.png';
import blockShootingLv0Move from './steps/blockShootingLv0Move.png';
import blockShootingRun from './steps/blockShootingRun.png';
import blockShootingLv0Customize from './steps/blockShootingLv0Customize.png';
import blockShootingClosing from './steps/blockShootingClosing.png';
import blockShootingLv2Intro from './steps/blockShootingLv2Intro.png';
import blockShootingLv2CatBlocks from './steps/blockShootingLv2CatBlocks.png';
import blockShootingAddArrow from './steps/blockShootingAddArrow.png';
import blockShootingLv2BulletBlocks from './steps/blockShootingLv2BulletBlocks.png';
import blockShootingLv3RubyTab from './steps/blockShootingLv3RubyTab.png';
import blockShootingLv3CatCode from './steps/blockShootingLv3CatCode.png';
import blockShootingLv3BulletCode from './steps/blockShootingLv3BulletCode.png';
import blockShootingAdvIntro from './steps/blockShootingAdvIntro.png';
import blockShootingAdvClone from './steps/blockShootingAdvClone.png';
import blockShootingAdvClosing from './steps/blockShootingAdvClosing.png';

const enImages = {
// Getting Started
introRubyTab: introRubyTab,
Expand Down Expand Up @@ -214,7 +232,24 @@ const enImages = {
rubyBasics6Step4: rubyBasics6Step4,
rubyBasics6Step5: rubyBasics6Step5,

rubyBasics7TryRuby: rubyBasics7TryRuby
rubyBasics7TryRuby: rubyBasics7TryRuby,
// blockGames 第4章 シューティング (issue #958)
blockShootingOpening: blockShootingOpening,
blockShootingLv0Intro: blockShootingLv0Intro,
blockShootingLv0Move: blockShootingLv0Move,
blockShootingRun: blockShootingRun,
blockShootingLv0Customize: blockShootingLv0Customize,
blockShootingClosing: blockShootingClosing,
blockShootingLv2Intro: blockShootingLv2Intro,
blockShootingLv2CatBlocks: blockShootingLv2CatBlocks,
blockShootingAddArrow: blockShootingAddArrow,
blockShootingLv2BulletBlocks: blockShootingLv2BulletBlocks,
blockShootingLv3RubyTab: blockShootingLv3RubyTab,
blockShootingLv3CatCode: blockShootingLv3CatCode,
blockShootingLv3BulletCode: blockShootingLv3BulletCode,
blockShootingAdvIntro: blockShootingAdvIntro,
blockShootingAdvClone: blockShootingAdvClone,
blockShootingAdvClosing: blockShootingAdvClosing
};

export {enImages};
37 changes: 36 additions & 1 deletion packages/scratch-gui/src/lib/libraries/decks/ja-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,24 @@ import rubyBasics6Step5 from './steps/ruby-basics-6-5-modify.png';
// (docs/tutorial/improvement-plan.md Phase 2 / tutorial.md「画像の流用ルール」)。
import rubyBasics7TryRuby from './thumbnails/ruby-basics-1-tryruby.png';

// blockGames 第4章 シューティング (issue #958)
import blockShootingOpening from './steps/blockShootingOpening.png';
import blockShootingLv0Intro from './steps/blockShootingLv0Intro.png';
import blockShootingLv0Move from './steps/blockShootingLv0Move.png';
import blockShootingRun from './steps/blockShootingRun.png';
import blockShootingLv0Customize from './steps/blockShootingLv0Customize.png';
import blockShootingClosing from './steps/blockShootingClosing.png';
import blockShootingLv2Intro from './steps/blockShootingLv2Intro.png';
import blockShootingLv2CatBlocks from './steps/blockShootingLv2CatBlocks.png';
import blockShootingAddArrow from './steps/blockShootingAddArrow.png';
import blockShootingLv2BulletBlocks from './steps/blockShootingLv2BulletBlocks.png';
import blockShootingLv3RubyTab from './steps/blockShootingLv3RubyTab.png';
import blockShootingLv3CatCode from './steps/blockShootingLv3CatCode.png';
import blockShootingLv3BulletCode from './steps/blockShootingLv3BulletCode.png';
import blockShootingAdvIntro from './steps/blockShootingAdvIntro.png';
import blockShootingAdvClone from './steps/blockShootingAdvClone.png';
import blockShootingAdvClosing from './steps/blockShootingAdvClosing.png';

const jaImages = {
// Getting Started
introRubyTab: introRubyTab,
Expand Down Expand Up @@ -215,7 +233,24 @@ const jaImages = {
rubyBasics6Step4: rubyBasics6Step4,
rubyBasics6Step5: rubyBasics6Step5,

rubyBasics7TryRuby: rubyBasics7TryRuby
rubyBasics7TryRuby: rubyBasics7TryRuby,
// blockGames 第4章 シューティング (issue #958)
blockShootingOpening: blockShootingOpening,
blockShootingLv0Intro: blockShootingLv0Intro,
blockShootingLv0Move: blockShootingLv0Move,
blockShootingRun: blockShootingRun,
blockShootingLv0Customize: blockShootingLv0Customize,
blockShootingClosing: blockShootingClosing,
blockShootingLv2Intro: blockShootingLv2Intro,
blockShootingLv2CatBlocks: blockShootingLv2CatBlocks,
blockShootingAddArrow: blockShootingAddArrow,
blockShootingLv2BulletBlocks: blockShootingLv2BulletBlocks,
blockShootingLv3RubyTab: blockShootingLv3RubyTab,
blockShootingLv3CatCode: blockShootingLv3CatCode,
blockShootingLv3BulletCode: blockShootingLv3BulletCode,
blockShootingAdvIntro: blockShootingAdvIntro,
blockShootingAdvClone: blockShootingAdvClone,
blockShootingAdvClosing: blockShootingAdvClosing
};

export {jaImages};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading