mirror of
https://github.com/danbulant/bobek
synced 2026-07-05 11:00:50 +00:00
UI gh pages
This commit is contained in:
parent
6df46c628e
commit
c727ddd071
5 changed files with 4 additions and 3 deletions
6
game.js
6
game.js
|
|
@ -249,8 +249,8 @@
|
||||||
case state.Play :
|
case state.Play :
|
||||||
sctx.lineWidth = "2";
|
sctx.lineWidth = "2";
|
||||||
sctx.font = "35px Squada One";
|
sctx.font = "35px Squada One";
|
||||||
sctx.fillText(this.score.curr,scrn.width/2,50);
|
sctx.fillText(this.score.curr,scrn.width/2-5,50);
|
||||||
sctx.strokeText(this.score.curr,scrn.width/2,50);
|
sctx.strokeText(this.score.curr,scrn.width/2-5,50);
|
||||||
break;
|
break;
|
||||||
case state.gameOver :
|
case state.gameOver :
|
||||||
sctx.lineWidth = "2";
|
sctx.lineWidth = "2";
|
||||||
|
|
@ -285,8 +285,8 @@ gnd.sprite.src="img/ground.png";
|
||||||
bg.sprite.src="img/BG.png";
|
bg.sprite.src="img/BG.png";
|
||||||
pipe.top.sprite.src="img/toppipe.png";
|
pipe.top.sprite.src="img/toppipe.png";
|
||||||
pipe.bot.sprite.src="img/botpipe.png";
|
pipe.bot.sprite.src="img/botpipe.png";
|
||||||
|
UI.gameOver.sprite.src="img/go.png";
|
||||||
UI.getReady.sprite.src="img/getready.png";
|
UI.getReady.sprite.src="img/getready.png";
|
||||||
UI.gameOver.sprite.src="img/gameOver.png";
|
|
||||||
UI.tap[0].sprite.src="img/tap/t0.png";
|
UI.tap[0].sprite.src="img/tap/t0.png";
|
||||||
UI.tap[1].sprite.src="img/tap/t1.png";
|
UI.tap[1].sprite.src="img/tap/t1.png";
|
||||||
bird.animations[0].sprite.src="img/bird/b0.png";
|
bird.animations[0].sprite.src="img/bird/b0.png";
|
||||||
|
|
|
||||||
BIN
img/gameover.png
BIN
img/gameover.png
Binary file not shown.
|
Before Width: | Height: | Size: 4.3 KiB |
BIN
img/go.png
Normal file
BIN
img/go.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 634 B |
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB |
|
|
@ -1,3 +1,4 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue