دانلود سورس بازی Tetris به زبان جاوا اسکریپت
Tetris Game with Javascriptتوضیحات مختصر محصول
در این قسمت سورس بازی Tetris به زبان جاوا اسکریپت برای شما عزیزان آماده دانلود کرده ایم.جهت دانلود بر روی لینک دانلود محصول کلیک کنید.
ویدئو معرفی سورس بازی Tetris به زبان جاوا اسکریپت:
بخشی از سورس بازی Tetris به زبان جاوا اسکریپت :
function resize() { var a = document.getElementById('a'); var b = document.getElementById('b'); var c = document.getElementById('c'); var content = document.getElementById('content'); // TODO Finalize this. // Aspect ratio: 1.024 var screenHeight = window.innerHeight - 34; var screenWidth = ~~(screenHeight * 1.024); if (screenWidth > window.innerWidth) screenHeight = ~~(window.innerWidth / 1.024); if (settings.Size === 1 && screenHeight > 602) cellSize = 15; else if (settings.Size === 2 && screenHeight > 602) cellSize = 30; else if (settings.Size === 3 && screenHeight > 902) cellSize = 45; else cellSize = Math.max(~~(screenHeight / 20), 10); var pad = (window.innerHeight - (cellSize * 20 + 2)) / 2 + 'px'; content.style.padding = pad + ' 0'; stats.style.bottom = pad; // Size elements a.style.padding = '0 0.5rem ' + ~~(cellSize / 2) + 'px'; stackCanvas.width = activeCanvas.width = bgStackCanvas.width = cellSize * 10; stackCanvas.height = activeCanvas.height = bgStackCanvas.height = cellSize * 20; b.style.width = stackCanvas.width + 'px'; b.style.height = stackCanvas.height + 'px'; holdCanvas.width = cellSize * 4; holdCanvas.height = cellSize * 2; a.style.width = holdCanvas.width + 'px'; a.style.height = holdCanvas.height + 'px'; previewCanvas.width = cellSize * 4; previewCanvas.height = stackCanvas.height; c.style.width = previewCanvas.width + 'px'; c.style.height = b.style.height; // Scale the text so it fits in the thing. // TODO get rid of extra font sizes here. msg.style.lineHeight = b.style.height; msg.style.fontSize = ~~(stackCanvas.width / 6) + 'px'; stats.style.fontSize = ~~(stackCanvas.width / 11) + 'px'; document.documentElement.style.fontSize = ~~(stackCanvas.width / 16) + 'px'; stats.style.width = a.style.width; for (var i = 0, len = h3.length; i < len; i++) { h3[i].style.lineHeight = a.style.height; h3[i].style.fontSize = stats.style.fontSize; }
نمایش بیشتر
قیمت محصول
12,000 تومان
قوانین استفاده
لینک های دانلود محصولات رایگان پس از تکمیل فرم مربوطه قابل دسترسی هستند و برای محصولات غیر رایگان، بلافاصله پس از پرداخت هزینه محصول در اختیار شما قرار می گیرد.
- دسترسی به فایل محصول به صورت مادامالعمر
- دانلود مستقیم فایل
- مشاوره رایگان قبل و بعد از خرید محصول
- گارانتی بازگشت وجه در صورت خرابی فایل
هیچ دیدگاهی برای این محصول نوشته نشده است.