OhMyGame
OhMyGame is the open-source studio for making games with AI. Design, build, playtest, and publish games in one app, with your own model keys.
2026 Digitalarts Tetris — 조각이 바로 바닥에 꽂히는 초고속 테트리스
Translation pending
GamesGitHub @banwol12OnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
Repository information has not been collected yet.
No updates detected yet. GitHub releases will appear here.
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗데스크탑·랩탑 브라우저에서 키보드로 즐기는 초고속 테트리스 웹 게임입니다. 조각이 나오자마자 바닥에 꽂히는 20G 방식이라, 락 딜레이(0.5초, 이동·회전 시 최대 15회 연장) 안에 밀고 돌려서 자리를 잡아야 합니다. 빌드 도구 없이 순수 HTML / CSS / JavaScript로 만들어져 있어 로컬 및 Vercel 등 정적 호스팅에 그대로 올릴 수 있으며, Cloudflare Worker + D1 Database를 통한 실시간 온라인 랭킹 시스템이 기본 연동되어 있습니다.
localStorage 기반 로컬 랭킹으로 자동 폴백B) 지원| 키 | 동작 |
|---|---|
| ← → | 이동 |
| Space | 즉시 고정 (하드 드롭) |
| ↑ / X | 시계 방향 회전 |
| Z / Ctrl | 반시계 방향 회전 |
| C / Shift | 홀드 |
| B | BGM 곡 변경 (다음 트랙) |
| M | 효과음 토글 |
| P / Esc | 일시정지 |
| R | 다시 시작 |
| F | 전체화면 |
| Enter | 시작 / 계속 / 랭킹 등록 |
정적 파일 기반이므로 별도의 빌드 과정 없이 웹 서버로 바로 실행할 수 있습니다.
python3 -m http.server 8766
브라우저에서 http://localhost:8766 접속 시, 배포된 Cloudflare Worker와 자동 연동되어 바로 실시간 온라인 랭킹을 이용할 수 있습니다.
본 프로젝트는 Cloudflare의 Serverless 백엔드 및 분산 SQLite 데이터베이스(D1)와 연동되어 있습니다.
digitalarts-tetris (86d8182b-aee4-4671-82c5-d751ec75a2ce)https://digitalarts-tetris.hjahn0523.workers.dev/api/rankingrankings 테이블 및 인덱스(idx_rankings_score) 구성 완료RANKING_API_URL에 배포된 Worker 주소가 기본 설정되어 있어, 어떤 환경에서 접속하든 D1 온라인 랭킹이 즉시 작동합니다.# Cloudflare Worker 재배포
npx wrangler deploy
# 원격 D1 테이블 데이터 확인
npx wrangler d1 execute digitalarts-tetris --remote --command="SELECT * FROM rankings ORDER BY score DESC LIMIT 10;"
# 스키마 재적용이 필요한 경우
npx wrangler d1 execute digitalarts-tetris --remote --file=schema.sql
banwol12/2026_festival_Tetris_Game) 연결DBdigitalarts-tetris
바인딩을 연결하면 functions/api/ranking.js가 활성화되어 풀스택 Pages로 구동됩니다.├── index.html # 메인 마크업 (게임 아레나, 3단 HUD, 전체화면 오버레이)
├── css/
│ └── style.css # 밀키 핑크 도트 배경, 사이버 네온 테마, 하트 버스트 애니메이션
├── js/
│ ├── config.js # 20G 설정, SRS 회전 테이블, 점수 규칙, Cloudflare Worker API URL
│ ├── game.js # 테트리스 엔진 (7-bag, 20G 즉시 낙하, 락 딜레이 단축, 라인 클리어)
│ ├── render.js # Canvas 렌더러 (보드, 고스트, 홀드/넥스트 프리뷰)
│ ├── input.js # 키보드 입력 및 고속 DAS/ARR 처리
│ ├── audio.js # Web Audio 합성 효과음 및 BGM 사운드 엔진
│ ├── chat.js # 실시간 라이브 채팅 클라이언트 (증분 폴링, 오토스크롤, 이모지)
│ └── main.js # UI 상호작용, 하트 버스트, Cloudflare D1 랭킹 비동기 동기화
├── worker.js # Cloudflare Worker REST API (/api/ranking, /api/chat)
├── wrangler.toml # Cloudflare Worker & D1 데이터베이스 바인딩 설정
├── schema.sql # D1 rankings & chat_messages 테이블 및 인덱스 DDL
├── functions/api/
│ ├── ranking.js # Cloudflare Pages Functions 풀스택 랭킹 API
│ └── chat.js # Cloudflare Pages Functions 풀스택 채팅 API
├── .cursor/mcp.json # Cursor IDE용 Cloudflare Remote MCP 설정
├── .vscode/mcp.json # VSCode용 Cloudflare Remote MCP 설정
└── .agents/skills/ # Cloudflare 공식 Agent Skills (Wrangler, D1 등)