Skip to content

Commit

Permalink
Adds a new tooltip
Browse files Browse the repository at this point in the history
Adds a new tooltip so that the commands are clear from the start
  • Loading branch information
hobnob committed Nov 28, 2012
1 parent 4ede716 commit 8ed72eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions js/lib/levels/level_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@
{"type":"door", "x":700,"y":218}
]},
{
"type":"tooltip","x":300,"y":641,"width":100,"height":100,
"text":"Press <span class='button e'>e</span> or <span class='button enter'>enter</span> to activate switches<br>At least one clone must remain at a switch to keep it active"},
"type":"tooltip","x":150,"y":641,"width":50,"height":50,
"text":"Press the <span class='button left'>left</span> arrow or <span class='button a'>a</span> to move left<br>Press the <span class='button right'>right</span> arrow or <span class='button d'>d</span> to move right"
},
{
"type":"tooltip","x":350,"y":641,"width":50,"height":50,
"text":"Press <span class='button e'>e</span> or <span class='button enter'>enter</span> to activate switches<br>At least one clone must remain at a switch to keep it active"
},
{
"type":"tooltip","x":650,"y":641,"width":50,"height":50,
"text":"Press <span class='button c'>c</span> to create a clone<br/>Press <span class='button tab'>tab</span> to switch between them"},
"text":"Press <span class='button c'>c</span> to create a clone<br/>Press <span class='button tab'>tab</span> to switch between them"
},
{"type":"goal","x":890,"y":540}
]
1 change: 1 addition & 0 deletions js/lib/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function tooltip()
$('#game_tooltip').hide();
}


tooltip.timer = null;
}

Expand Down
1 change: 0 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ gamejs.ready(function() {
$('#game_scorecard .resetLevel').click();
event.preventDefault();
break;

}
}
});
Expand Down

0 comments on commit 8ed72eb

Please sign in to comment.