Каркас проекта: ТЗ, nginx+gameserver(uWebSockets) в Docker, /ws echo
Frontend — чистый HTML/CSS/JS без сборки (резюме, проекты, игра-заглушки). Gameserver — C++ на uWebSockets (CMake FetchContent), протокол hello/lobby.list_rooms/error проверен end-to-end.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// TODO: полноценный canvas-эффект цифрового дождя — этап 2
|
||||
const canvas = document.getElementById('matrix-rain');
|
||||
if (canvas) {
|
||||
const ctx = canvas.getContext('2d');
|
||||
const resize = () => {
|
||||
canvas.width = window.innerWidth;
|
||||
canvas.height = window.innerHeight;
|
||||
};
|
||||
resize();
|
||||
window.addEventListener('resize', resize);
|
||||
}
|
||||
Reference in New Issue
Block a user