diff --git a/src/lib/default-project/0fb9be3e8397c983338cb71dc84d0b25.svg b/src/lib/default-project/0fb9be3e8397c983338cb71dc84d0b25.svg deleted file mode 100644 index 5ff997fd111..00000000000 --- a/src/lib/default-project/0fb9be3e8397c983338cb71dc84d0b25.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - costume2.1 - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/lib/default-project/83a9787d4cb6f3b7632b4ddfebf74367.wav b/src/lib/default-project/83a9787d4cb6f3b7632b4ddfebf74367.wav old mode 100755 new mode 100644 diff --git a/src/lib/default-project/83c36d806dc92327b9e7049a565c6bff.wav b/src/lib/default-project/83c36d806dc92327b9e7049a565c6bff.wav deleted file mode 100755 index 45742d5ef6f..00000000000 Binary files a/src/lib/default-project/83c36d806dc92327b9e7049a565c6bff.wav and /dev/null differ diff --git a/src/lib/default-project/bcf454acf82e4504149f7ffe07081dbc.svg b/src/lib/default-project/bcf454acf82e4504149f7ffe07081dbc.svg deleted file mode 100644 index 03df23e29ad..00000000000 --- a/src/lib/default-project/bcf454acf82e4504149f7ffe07081dbc.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - costume1.1 - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/lib/default-project/f083ba67427a2da8d308a8a2e6ac7626.svg b/src/lib/default-project/f083ba67427a2da8d308a8a2e6ac7626.svg new file mode 100644 index 00000000000..1a6fd06fae6 --- /dev/null +++ b/src/lib/default-project/f083ba67427a2da8d308a8a2e6ac7626.svg @@ -0,0 +1 @@ +ServerSMP \ No newline at end of file diff --git a/src/lib/default-project/index.js b/src/lib/default-project/index.js index c26a7913b49..94ec33c8bfe 100644 --- a/src/lib/default-project/index.js +++ b/src/lib/default-project/index.js @@ -2,10 +2,8 @@ import projectData from './project-data'; /* eslint-disable import/no-unresolved */ import popWav from '!arraybuffer-loader!./83a9787d4cb6f3b7632b4ddfebf74367.wav'; -import meowWav from '!arraybuffer-loader!./83c36d806dc92327b9e7049a565c6bff.wav'; import backdrop from '!raw-loader!./cd21514d0531fdffb22204e0ec5ed84a.svg'; -import costume1 from '!raw-loader!./bcf454acf82e4504149f7ffe07081dbc.svg'; -import costume2 from '!raw-loader!./0fb9be3e8397c983338cb71dc84d0b25.svg'; +import costume1 from '!raw-loader!./f083ba67427a2da8d308a8a2e6ac7626.svg'; /* eslint-enable import/no-unresolved */ const defaultProject = translator => { @@ -28,26 +26,16 @@ const defaultProject = translator => { assetType: 'Sound', dataFormat: 'WAV', data: new Uint8Array(popWav) - }, { - id: '83c36d806dc92327b9e7049a565c6bff', - assetType: 'Sound', - dataFormat: 'WAV', - data: new Uint8Array(meowWav) }, { id: 'cd21514d0531fdffb22204e0ec5ed84a', assetType: 'ImageVector', dataFormat: 'SVG', data: encoder.encode(backdrop) }, { - id: 'bcf454acf82e4504149f7ffe07081dbc', + id: 'f083ba67427a2da8d308a8a2e6ac7626', assetType: 'ImageVector', dataFormat: 'SVG', data: encoder.encode(costume1) - }, { - id: '0fb9be3e8397c983338cb71dc84d0b25', - assetType: 'ImageVector', - dataFormat: 'SVG', - data: encoder.encode(costume2) }]; }; diff --git a/src/lib/default-project/project-data.js b/src/lib/default-project/project-data.js index 9ee63b237b5..3f119a7b612 100644 --- a/src/lib/default-project/project-data.js +++ b/src/lib/default-project/project-data.js @@ -11,6 +11,11 @@ let messages = defineMessages({ defaultMessage: 'my variable', description: 'Name for the default variable', id: 'gui.defaultProject.variable' + }, + comment_1: { + defaultMessage: 'Thanks for using ServerSMP!\n- Load from localhost:3000\n- Hidden blocks\n- New extensions', + description: 'ServerSMP comment', + id: 'gui.defaultProject.comment_1' } }); @@ -27,96 +32,137 @@ const defaultTranslator = msgObj => msgObj.defaultMessage; const projectData = translateFunction => { const translator = translateFunction || defaultTranslator; return ({ - targets: [ - { - isStage: true, - name: 'Stage', - variables: { - '`jEk@4|i[#Fk?(8x)AV.-my variable': [ - translator(messages.variable), - 0 - ] - }, - lists: {}, - broadcasts: {}, - blocks: {}, - currentCostume: 0, - costumes: [ - { - assetId: 'cd21514d0531fdffb22204e0ec5ed84a', - name: translator(messages.backdrop, {index: 1}), - md5ext: 'cd21514d0531fdffb22204e0ec5ed84a.svg', - dataFormat: 'svg', - rotationCenterX: 240, - rotationCenterY: 180 - } - ], - sounds: [ - { - assetId: '83a9787d4cb6f3b7632b4ddfebf74367', - name: translator(messages.pop), - dataFormat: 'wav', - format: '', - rate: 11025, - sampleCount: 258, - md5ext: '83a9787d4cb6f3b7632b4ddfebf74367.wav' - } - ], - volume: 100 + targets: [{ + isStage: true, + name: 'Stage', + variables: { + '`jEk@4|i[#Fk?(8x)AV.-my variable': [ + translator(messages.variable), + 0 + ] }, - { - isStage: false, - name: translator(messages.sprite, {index: 1}), - variables: {}, - lists: {}, - broadcasts: {}, - blocks: {}, - currentCostume: 0, - costumes: [ - { - assetId: 'bcf454acf82e4504149f7ffe07081dbc', - name: translator(messages.costume, {index: 1}), - bitmapResolution: 1, - md5ext: 'bcf454acf82e4504149f7ffe07081dbc.svg', - dataFormat: 'svg', - rotationCenterX: 48, - rotationCenterY: 50 + lists: {}, + broadcasts: {}, + blocks: {}, + comments: {}, + currentCostume: 0, + costumes: [{ + name: translator(messages.backdrop, {index: 1}), + bitmapResolution: 1, + dataFormat: 'svg', + assetId: 'cd21514d0531fdffb22204e0ec5ed84a', + md5ext: 'cd21514d0531fdffb22204e0ec5ed84a.svg', + rotationCenterX: 0, + rotationCenterY: 0 + }], + sounds: [{ + name: translator(messages.pop), + assetId: '83a9787d4cb6f3b7632b4ddfebf74367', + dataFormat: 'wav', + format: '', + rate: 48000, + sampleCount: 1124, + md5ext: '83a9787d4cb6f3b7632b4ddfebf74367.wav' + }], + volume: 100, + layerOrder: 0, + tempo: 60, + videoTransparency: 50, + videoState: 'on', + textToSpeechLanguage: null + }, { + isStage: false, + name: translator(messages.sprite, {index: 1}), + variables: {}, + lists: {}, + broadcasts: {}, + blocks: { + a: { + opcode: 'argument_reporter_boolean', + next: null, + parent: null, + inputs: {}, + fields: { + VALUE: ['is forkphorus?', null] + }, + shadow: false, + topLevel: true, + x: 43, + y: 616 + }, + b: { + opcode: 'argument_reporter_boolean', + next: null, + parent: null, + inputs: {}, + fields: { + VALUE: ['is TurboWarp?', null] }, - { - assetId: '0fb9be3e8397c983338cb71dc84d0b25', - name: translator(messages.costume, {index: 2}), - bitmapResolution: 1, - md5ext: '0fb9be3e8397c983338cb71dc84d0b25.svg', - dataFormat: 'svg', - rotationCenterX: 46, - rotationCenterY: 53 - } - ], - sounds: [ - { - assetId: '83c36d806dc92327b9e7049a565c6bff', - name: translator(messages.meow), - dataFormat: 'wav', - format: '', - rate: 22050, - sampleCount: 18688, - md5ext: '83c36d806dc92327b9e7049a565c6bff.wav' - } - ], - volume: 100, - visible: true, - x: 0, - y: 0, - size: 100, - direction: 90, - draggable: false, - rotationStyle: 'all around' - } - ], + shadow: false, + topLevel: true, + x: 226, + y: 616 + }, + c: { + opcode: 'argument_reporter_boolean', + next: null, + parent: null, + inputs: {}, + fields: { + VALUE: ['is compiled?', null] + }, + shadow: false, + topLevel: true, + x: -133, + y: 613 + } + }, + comments: { + f: { + blockId: null, + x: -69, + y: 305, + width: 377, + height: 244, + minimized: false, + text: translator(messages.comment_1) + } + }, + currentCostume: 0, + costumes: [{ + name: 'welcome', + bitmapResolution: 1, + dataFormat: 'svg', + assetId: 'f083ba67427a2da8d308a8a2e6ac7626', + md5ext: 'f083ba67427a2da8d308a8a2e6ac7626.svg', + rotationCenterX: 191.69610845721985, + rotationCenterY: 143.57681313291286 + }], + sounds: [{ + name: translator(messages.pop), + assetId: '83a9787d4cb6f3b7632b4ddfebf74367', + dataFormat: 'wav', + format: '', + rate: 48000, + sampleCount: 1124, + md5ext: '83a9787d4cb6f3b7632b4ddfebf74367.wav' + }], + volume: 100, + layerOrder: 1, + visible: true, + x: 0, + y: 0, + size: 100, + direction: 90, + draggable: false, + rotationStyle: 'all around' + }], + monitors: [], + extensions: [], meta: { semver: '3.0.0', - vm: '0.1.0', - agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36' // eslint-disable-line max-len + vm: '0.2.0', + agent: '' } }); };