Merge pull request #263 from dekrain/bug-fix/assets_loc

Fix relative localization for assets
This commit is contained in:
Ray Schamp 2016-10-13 10:53:24 -04:00 committed by GitHub
commit c9c2cc560e

View file

@ -135,7 +135,7 @@ VirtualMachine.prototype.createEmptyProject = function () {
var stage = new Sprite(blocks2, this.runtime);
stage.name = 'Stage';
stage.costumes.push({
skin: '/assets/stage.png',
skin: './assets/stage.png',
name: 'backdrop1',
bitmapResolution: 2,
rotationCenterX: 480,
@ -154,7 +154,7 @@ VirtualMachine.prototype.createEmptyProject = function () {
var sprite = new Sprite(blocks1, this.runtime);
sprite.name = 'Sprite1';
sprite.costumes.push({
skin: '/assets/scratch_cat.svg',
skin: './assets/scratch_cat.svg',
name: 'costume1',
bitmapResolution: 1,
rotationCenterX: 47,