diff --git a/akihabara/help.js b/akihabara/help.js index 1db1d2d..06451d9 100644 --- a/akihabara/help.js +++ b/akihabara/help.js @@ -420,8 +420,12 @@ var help={ return ((typeof(v) !== 'undefined') || (v===null)); }, - linkTo:function(linkName) { - window.location = gbox.getLink(linkName); + linkTo:function(linkName, typeOfLink) { + if (typeOfLink === "newWindow") + window.open(gbox.getLink(linkName, "")); + else + window.location = gbox.getLink(linkName); + }, /** * Automatically configures a bunch of settings depending on the web browser and device that is viewing the game. Mostly sets the maximum number of audio channels and touch settings. diff --git a/resources/barerpg/bundle-sprites.js b/resources/barerpg/bundle-sprites.js index 30e547c..3d6c7ce 100644 --- a/resources/barerpg/bundle-sprites.js +++ b/resources/barerpg/bundle-sprites.js @@ -61,9 +61,6 @@ toys.topview.adjustZindex(this); if (!this.stilltimer&&!this.killed) toys.topview.setFrame(this); // set the right animation frame (if not attacking) - if (gbox.keyIsHit("b")){ - help.linkTo("google"); - } }, blit:function() {