Home > jsdice

jsdice

Jsdice is a project mainly written in JavaScript, it's free.

draw dice in JavaScript using the HTML5 Canvas

勝手にチンチロリン http://mimami24i.appspot.com/html5/ccrorin1 で使用しているJavaScriptコードをまとめたリポジトリです。

前提ソース: jQuery1.4.4以降 http://jquery.com/

mt.js http://homepage2.nifty.com/magicant/sjavascript/mt.html

pre3d http://deanm.github.com/pre3d/

このリポジトリ内のコードは、pre3dの内部実装に深く依存しています。 pre3dのバージョンアップで不具合が起こる可能性があるため、jsdice/pre3d/ のコードを利用することを推奨します。pre3d.min.jsは、pre3d.js, pre3d_shape_utils.js, pre3d_path_utils.js を圧縮したファイルです。

各ソースの説明: ccrmain.js onLoadイベントで実行されるメインプログラム

ccrorin.js チンチロリンの出目を管理するプログラム

mgbase.js メインループを管理するプログラム

dice2d.js 2Dダイスを描画するプログラム

dice3d.js 3Dダイスを描画するプログラム

License: Free to use under the BSD license.

Credit: [email protected]

Previous:expensebalance