LoginSignup
1
2

More than 5 years have passed since last update.

テトリスをつくってみました 説明5 renderオブジェクト tetris.js

Posted at

ひとつめ


function Render () {
  this.init = function(x, y, COLOR [ i ]){};
  this.drawUnit = function (x, y, TETRIS_BLOCK [ i ]) {};
}


こんな感じで別ファイルに書いておきます。おなじ識別子は上書きされるから問題なし。(実際にやってませんが)

その2

思いつきませんでした。

アイデア募集です。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2