Skip to content

Commit

Permalink
Credits linking.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Garcia committed Apr 16, 2011
1 parent 435ec26 commit d3e01cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/chain/src/game.js
Expand Up @@ -468,8 +468,11 @@ chain.MainMenuScene.prototype.load = function () {
};
menu.addSprite(quitButton);

var credit = Sprite.div("credit");
var credit = new hydra.Button(hydra.dom.div("credit"));
credit.element.textContent = "by @b_garcia";
credit.onTap = function () {
window.top.location = "http://twitter.com/b_garcia";
};
this.addEntity(credit);
}

Expand Down
3 changes: 3 additions & 0 deletions projects/chain/web/static/style.css
Expand Up @@ -243,6 +243,9 @@ html, body {
line-height: 32px;
color: gray;
}
.credit.button-down, .credit:hover {
color: black;
}

.mute-button {
background-image: url(volume-max.png);
Expand Down

0 comments on commit d3e01cb

Please sign in to comment.