Skip to content

Instantly share code, notes, and snippets.

View IVANGER's full-sized avatar

IVANGER

  • Joined Nov 2, 2025
View GitHub Profile
@IVANGER
IVANGER / game.js
Created November 2, 2025 09:35
rpg v 0.0001
// Подключаемся к серверу
const socket = io();
// Настройка Canvas
const canvas = document.getElementById('gameCanvas');
const ctx = canvas.getContext('2d');
// ★★★ ОГРАНИЧИТЕЛЬ ЧАСТОТЫ ОТПРАВКИ ★★★
let lastSendTime = 0;
const SEND_INTERVAL = 100;