特效描述:html5网页版 俄罗斯方块 小游戏代码。html5网页版俄罗斯方块小游戏代码
代码结构
1. 引入CSS
2. HTML代码
html5网页版俄罗斯方块小游戏代码
#container{margin:0 auto;text-align:center;}
.cyr{text-align:center;}
Loading game...
if (!window.CanvasRenderingContext2D)
{
document.getElementById('loading').innerHTML = 'Your browser doesn\'t support canvas, if you are using IE then the older version will likely work.
I suggest you download a standards compliant browser such as Opera.';
}
else
{
document.getElementById('loading').innerHTML = ' Loading game...';
}
-->
玩法
Use the arrow keys to guide the falling blocks, spacebar and the up-arrow will rotate the block in opposite directions.
Alternatively the keys A,W,S and D can be used as arrow keys for the same purpose.
When a complete horizontal ring of 15 blocks is occupied by pieces the row will collapse and earn 100 points.
If multiple rows are cleared at a time you will earn bonus points.
© "Acirclemay be small, yet it may be as mathematically beautiful and perfect as a large one."
- Isaac Disraeli
Traditional
Time Attack
Garbage
Traditional
1. Empty (0)
2. Empty (0)
3. Empty (0)
Time Attack
1. Empty (0)
2. Empty (0)
3. Empty (0)
Garbage
1. Empty (59:59)
2. Empty (59:59)
3. Empty (59:59)
Skin:
Glass
Show ghost
00:00
You have achieved a high score, please enter your name: