Fix relative localization for assets

This commit is contained in:
dekrain 2016-10-13 16:19:42 +02:00
parent b5f6a8d22f
commit 91037a261e

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,