Skip to content
Snippets Groups Projects
Commit 48f463b9 authored by Tim Repke's avatar Tim Repke
Browse files
parents 1e9dac4d d52b4d9c
No related branches found
No related tags found
No related merge requests found
......@@ -146,6 +146,12 @@ Game.prototype.loadMap = function (map, spawn) {
y: (rawCoords[1] < 0) ? 0 : ((rawCoords[1] > Game.config.size[1]) ? Game.config.size[1] : rawCoords[1])
};
var offsetA = $(document.getElementById("gameRoot")).offset();
var offsetB = $(document.getElementById("gameCanvas")).offset();
cleanCoords.x += offsetB.left - offsetA.left;
cleanCoords.y += offsetB.top - offsetA.top;
return cleanCoords;
} catch (e) {
console.error(e);
......
......@@ -795,6 +795,10 @@ Story.actions = {
case 0:
Story.dialogueHelper([{
message: 'George: Trinkt nicht zu viel ja?!'
},{
message: 'Jonas: BIIIIIIIIIER BAAAAAALLLLLLLLLLL!'
},{
message: 'George: ...'
}], null, nextAction);
break;
case 1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment