å®è£ ç·¨ããã®ï¼ã§ãã æç»å¨ããTETRISã¯ã©ã¹ã®èª¬æã§ãã ãã®ï¼ ã½ã¼ã¹:tetris.js ã©ã¤ãã©ãªã¼:dq-rtg.js,dq-cancas.js(å®éã«åããã«ã¯ã©ã¤ãã©ãªã®ã³ã¢ã³ã³ãã¼ãã³ãã¨jQueryãå¿ è¦ã§ãï¼ã ã§ãããã æç» ã¤ã¡ã¼ã¸ã®èªã¿è¾¼ã¿ canvasã®drawImageã«å¼ã渡ãimgãªãã¸ã§ã¯ãã§ãããæç»ããåã«èªã¿è¾¼ã¿ãå®äºãã¦ããå¿ è¦ãããã¾ãã ãã®ãããã²ã¼ã ã¨ã³ã¸ã³ãèµ·åããåã«å ¨ã¦ã®ç»åã®èªã¿è¾¼ã¿ã®å®äº(loadã¤ãã³ãã使ç¨ï¼ããã§ãã¯ãã¾ãã var count = 0; function image_loaded(sender) { count++; if(count == 4) { TETRIS = new DQ.TETRIS(engine); TETRIS.initialize(); //engineã¯ã¿ã¤ãã¼ããã¼ã¤ãã³ãã管
{{#tags}}- {{label}}
{{/tags}}