Skip to content

Commit a04a726

Browse files
committed
Implemented tutorial images and fixed smaller typos.
1 parent 544eec5 commit a04a726

File tree

14 files changed

+64
-45
lines changed

14 files changed

+64
-45
lines changed

locales/deu/blocks/blocks.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Locales['deu'] = Locales['deu'] || {};
2727
*/
2828
/* eslint-disable max-len */
2929
Object.assign(Locales['deu'], {
30-
'BLOCKS_DO': 'mache',
30+
'BLOCKS_CHANGE': 'ändere',
3131
'BLOCKS_DEFINE': 'definiere',
32+
'BLOCKS_DO': 'mache',
3233
});

locales/deu/blocks/phaser_blocks.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,32 @@ Locales['deu'] = Locales['deu'] || {};
2929
Object.assign(Locales['deu'], {
3030
'BLOCKS_PHASER_AUDIO': 'Audio',
3131
'BLOCKS_PHASER_AUDIO_ADD_BGM': 'als Hintergrundsound',
32+
'BLOCKS_PHASER_AUDIO_PAUSE': 'pausiere Audio',
3233
'BLOCKS_PHASER_COLLIDE_WITH': 'kollidiert mit',
3334
'BLOCKS_PHASER_CREATE': 'Erstellen',
3435
'BLOCKS_PHASER_EXAMPLE_FILES': 'Beispiel Dateien',
3536
'BLOCKS_PHASER_FILES': 'Dateien',
3637
'BLOCKS_PHASER_GAME': 'Spiel',
3738
'BLOCKS_PHASER_GAME_RESTART': 'Spiel neustarten',
39+
'BLOCKS_PHASER_GAME_START': 'starte den Spielzustand',
3840
'BLOCKS_PHASER_GENERATOR': 'Generatoren',
41+
'BLOCKS_PHASER_GENERATOR_RANDOM_VERTICAL_OBSTACLE': 'erzeuge zufällige vertikale Hindernisse',
42+
'BLOCKS_PHASER_GENERATOR_VERTICAL_OBSTACLE': 'erzeuge vertikale Hindernisse',
3943
'BLOCKS_PHASER_INPUT': 'Eingabe',
4044
'BLOCKS_PHASER_INPUTS': 'Eingaben',
45+
'BLOCKS_PHASER_LOAD_AUDIO': 'lade Audio',
46+
'BLOCKS_PHASER_LOAD_IMAGE': 'lade Bild',
4147
'BLOCKS_PHASER_ON_CREATE': 'beim Erstellen',
4248
'BLOCKS_PHASER_ON_PRELOAD': 'beim Vorausladen',
4349
'BLOCKS_PHASER_OPEN_FILE_LIBRARY': 'Öffne Datei Bibliothek',
50+
'BLOCKS_PHASER_PHYSICS_ARCADE_ENABLE': 'verwende Arcade Physik für',
4451
'BLOCKS_PHASER_PHYSICS_SPRITE': 'Physics Sprite',
4552
'BLOCKS_PHASER_PRELOAD': 'Vorausladen',
4653
'BLOCKS_PHASER_RENDERER': 'Renderer',
4754
'BLOCKS_PHASER_SPRITE': 'Sprite',
4855
'BLOCKS_PHASER_TEXT': 'Text Objekt',
4956
'BLOCKS_PHASER_TILE_SPRITE': 'Tile Sprite',
57+
'BLOCKS_PHASER_TIME_LOOP_EVENT': 'wiederhole alle',
5058
'BLOCKS_PHASER_UPDATE': 'Aktualisieren',
5159
'BLOCKS_PHASER_WORLD': 'Welt',
5260
});

locales/eng/blocks/blocks.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Locales['eng'] = Locales['eng'] || {};
2727
*/
2828
/* eslint-disable max-len */
2929
Object.assign(Locales['eng'], {
30-
'BLOCKS_DO': 'do',
30+
'BLOCKS_CHANGE': 'change',
3131
'BLOCKS_DEFINE': 'define',
32+
'BLOCKS_DO': 'do',
3233
});

locales/eng/blocks/phaser_blocks.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,32 @@ Locales['eng'] = Locales['eng'] || {};
2929
Object.assign(Locales['eng'], {
3030
'BLOCKS_PHASER_AUDIO': 'Audio',
3131
'BLOCKS_PHASER_AUDIO_ADD_BGM': 'as background sound',
32+
'BLOCKS_PHASER_AUDIO_PAUSE': 'pause audio',
3233
'BLOCKS_PHASER_COLLIDE_WITH': 'collide with',
3334
'BLOCKS_PHASER_CREATE': 'Create',
3435
'BLOCKS_PHASER_EXAMPLE_FILES': 'Example Files',
3536
'BLOCKS_PHASER_FILES': 'Files',
3637
'BLOCKS_PHASER_GAME': 'Game',
3738
'BLOCKS_PHASER_GAME_RESTART': 'Restart game',
39+
'BLOCKS_PHASER_GAME_START': 'start game state',
3840
'BLOCKS_PHASER_GENERATOR': 'Generators',
41+
'BLOCKS_PHASER_GENERATOR_RANDOM_VERTICAL_OBSTACLE': 'generate random vertical obstacles',
42+
'BLOCKS_PHASER_GENERATOR_VERTICAL_OBSTACLE': 'generate vertical obstacles',
3943
'BLOCKS_PHASER_INPUT': 'Input',
4044
'BLOCKS_PHASER_INPUTS': 'Inputs',
45+
'BLOCKS_PHASER_LOAD_AUDIO': 'load audio',
46+
'BLOCKS_PHASER_LOAD_IMAGE': 'load image',
4147
'BLOCKS_PHASER_ON_CREATE': 'on create',
4248
'BLOCKS_PHASER_ON_PRELOAD': 'on preload',
4349
'BLOCKS_PHASER_OPEN_FILE_LIBRARY': 'Open file library',
50+
'BLOCKS_PHASER_PHYSICS_ARCADE_ENABLE': 'enable arcade physics for',
4451
'BLOCKS_PHASER_PHYSICS_SPRITE': 'Physics Sprite',
4552
'BLOCKS_PHASER_PRELOAD': 'Preload',
4653
'BLOCKS_PHASER_RENDERER': 'Renderer',
4754
'BLOCKS_PHASER_SPRITE': 'Sprite',
4855
'BLOCKS_PHASER_TEXT': 'Text Object',
4956
'BLOCKS_PHASER_TILE_SPRITE': 'Tile Sprite',
57+
'BLOCKS_PHASER_TIME_LOOP_EVENT': 'repeat every',
5058
'BLOCKS_PHASER_UPDATE': 'Update',
5159
'BLOCKS_PHASER_WORLD': 'World',
5260
});

src/blocks/phaser/arcade_physics/blocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Blockly.Blocks['phaser_physics_arcade_enable'] = {
118118
init: function() {
119119
this.appendValueInput('variable')
120120
.appendField(Blockly.BlocksTemplate.point())
121-
.appendField(i18t('enable arcade physics for'));
121+
.appendField(i18t('BLOCKS_PHASER_PHYSICS_ARCADE_ENABLE'));
122122
this.setPreviousStatement(true, 'Create');
123123
this.setNextStatement(true, 'Create');
124124
this.setColour(0);

src/blocks/phaser/audio/blocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Blockly.Blocks['phaser_audio_pause'] = {
9999
init: function() {
100100
this.appendValueInput('variable')
101101
.appendField(Blockly.BlocksTemplate.audio())
102-
.appendField(i18t('pause audio'));
102+
.appendField(i18t('BLOCKS_PHASER_AUDIO_PAUSE'));
103103
this.setPreviousStatement(true, ['Create', 'Update', 'Input']);
104104
this.setNextStatement(true, ['Create', 'Update', 'Input']);
105105
this.setColour(245);

src/blocks/phaser/create/blocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Blockly.Blocks['phaser_time_loop_event'] = {
128128
this.appendValueInput('time')
129129
.setCheck('Number')
130130
.appendField(Blockly.BlocksTemplate.repeat())
131-
.appendField(i18t('repeat every'));
131+
.appendField(i18t('BLOCKS_PHASER_TIME_LOOP_EVENT'));
132132
this.appendDummyInput()
133133
.appendField(i18t('milliseconds'));
134134
this.appendStatementInput('func')

src/blocks/phaser/game/blocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Blockly.Blocks['phaser_game_start'] = {
7171
init: function() {
7272
this.appendDummyInput()
7373
.appendField(Blockly.BlocksTemplate.point())
74-
.appendField(i18t('start game state'))
74+
.appendField(i18t('BLOCKS_PHASER_GAME_START'))
7575
.appendField(new Blockly.FieldTextInput('main'), 'name');
7676
this.setPreviousStatement(true, ['Create', 'Update', 'Input']);
7777
this.setNextStatement(true, ['Create', 'Update', 'Input']);

src/blocks/phaser/generators/blocks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Blockly.Blocks['phaser_generator_vertical_obstacle'] = {
2626
init: function() {
2727
this.appendDummyInput()
2828
.appendField(Blockly.BlocksTemplate.point())
29-
.appendField(i18t('generate vertical obstacles'));
29+
.appendField(i18t('BLOCKS_PHASER_GENERATOR_VERTICAL_OBSTACLE'));
3030
this.appendValueInput('obstacles')
3131
.setCheck('Number')
3232
.setAlign(Blockly.ALIGN_RIGHT)
@@ -94,7 +94,7 @@ Blockly.Blocks['phaser_generator_random_vertical_obstacle'] = {
9494
init: function() {
9595
this.appendDummyInput()
9696
.appendField(Blockly.BlocksTemplate.point())
97-
.appendField(i18t('generate random vertical obstacles'));
97+
.appendField(i18t('BLOCKS_PHASER_GENERATOR_RANDOM_VERTICAL_OBSTACLE'));
9898
this.appendValueInput('obstacles')
9999
.setCheck('Number')
100100
.setAlign(Blockly.ALIGN_RIGHT)

src/blocks/phaser/preload/blocks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Blockly.Blocks['phaser_load_image'] = {
4747
init: function() {
4848
this.appendDummyInput()
4949
.appendField(Blockly.BlocksTemplate.image())
50-
.appendField(i18t('load image'))
50+
.appendField(i18t('BLOCKS_PHASER_LOAD_IMAGE'))
5151
.appendField(new Blockly.FieldTextInput('image'), 'name');
5252
this.appendValueInput('image')
5353
.setCheck('Image')
@@ -69,7 +69,7 @@ Blockly.Blocks['phaser_load_audio'] = {
6969
init: function() {
7070
this.appendDummyInput()
7171
.appendField(Blockly.BlocksTemplate.audio())
72-
.appendField(i18t('load audio'))
72+
.appendField(i18t('BLOCKS_PHASER_LOAD_AUDIO'))
7373
.appendField(new Blockly.FieldTextInput('sound'), 'name');
7474
this.appendValueInput('audio')
7575
.setCheck('Audio')

0 commit comments

Comments
 (0)