タグ

WEBとcanvasに関するmassiromoheのブックマーク (2)

  • 簡単な RayCaster - MDC

    どうして? 嬉しいことに、私が読み続けていた、粋な <canvas> 要素がまもなく Firefox でサポートされる【訳注: 既にサポート済】 だけでなく、既に現在のバージョンの Safari でサポートされていることを理解した後、私は少しの実験を試みました。 私が MDC で見付けた canvas の 概要とチュートリアルは素晴らしいのですが、まだ誰もアニメーションについて書いていませんでした。そこで私はしばらく前に作業していた簡単な RayCaster を移植し、JavaScript によって制御されたピクセルバッファからどういった性能がでるか確認したいと考えました。 どうやって? 基的なアイディアは望むフレームレートに対応する任意の遅延で setInterval を使うことです。 全ての間隔の後に更新用の関数は現在のビューを表示する canvas を再描画します。より単純な例

  • Ben Joffe |Torus

    How To Play 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.

  • 1