자바스크립트를 활용한 테트리스 게임 만들기
많은 사람들이 좋아하는 테트리스 게임을 두 가지 방법으로 개발하면서 하나의 제품이나 기능을 다양하게 개발하는 방법을 정리하였다. 덤으로 간단한 게임 개발법과 자바스크립트 Canvas 사용법도 익힐 수 있다. 자바 스크립트를 이용하여 구현하고 정리하였지만 여기서 정리하는 주요 개념에 대한 내용은 개발 언어에 관계없이 동일하게 사용할 수 있다. 시각적인 표현에 조금 차이가 있을 수 있지만 대부분의 개발언어에서 동일하게 구현할 수 있다. 인터넷을 검색해 보면 여러가지 방법으로 개발된 소스를 찾을 수 있다. 하나의 많이 참고되는 방식이 있고, 다소 비효율적이긴 하지만 재미난 방식으로 개발한 소스들도 있다. 비효율적으로 작성된 코드가 쉽게 작성되어 개념을 익히기 좋은 장점이 있고, 모든 코드가 비효율적이 것은 아..
2020.11.05