자바 스크립트 테트리스 소스코드 알고리즘 분석

행복햐 2017. 8. 18. 13:22

출처http://codeincomplete.com/posts/javascript-tetris/


목차

블록 그리기

임의 블록 그리기

충돌 검사


블록 그리기 소스 코드

각 모양의 블록을 그려주는 소스 코드입니다.

실행결과

Your browser does not support the HTML5 canvas tag.


임의로(random) 선택해서 그려주기

실행결과

Your browser does not support the HTML5 canvas tag. 
 


충돌 검사