diff --git a/blockly/generators/arduino/image.js b/blockly/generators/arduino/image.js index bc00869..ae4a9e2 100644 --- a/blockly/generators/arduino/image.js +++ b/blockly/generators/arduino/image.js @@ -39,10 +39,10 @@ function getImage(component, imgType) { Blockly.Arduino.images_[imgName] = { imgType, imgName, imgAbbrev, - viDecl: `const char *vi_${imgName} = "${imgAbbrev}.${imgExt}";` + viDecl: `const char *vi_${imgAbbrev} = "${imgAbbrev}.${imgExt}";` } - return 'vi_' + imgName; + return 'vi_' + imgAbbrev; } Blockly.Arduino.background_image = function() { diff --git a/config.json b/config.json index 9cbcd7d..1c96e7e 100644 --- a/config.json +++ b/config.json @@ -5,6 +5,6 @@ "projects": "./projects" }, "project": { - "name": "keyboard-buffer-test" + "name": "test" } } \ No newline at end of file diff --git a/package.json b/package.json index 8e8b74c..a9ba5e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "BlocklyVN8bit", - "version": "0.2.6", + "version": "0.2.7", "description": "Uses blockly to generate visual novels for 8bit-Unity", "main": "main.js", "scripts": {