<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>games86.ru</title>
	<atom:link href="https://games86.ru/feed/" rel="self" type="application/rss+xml" />
	<link>https://games86.ru/</link>
	<description>Топ бесплатных онлайн игр</description>
	<lastBuildDate>Thu, 29 Oct 2026 18:47:26 +0000</lastBuildDate>
	<language>ru-RU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.8</generator>

<image>
	<url>https://games86.ru/wp-content/uploads/2019/03/cropped-Star-Wars-The-Force-Unleashed-2-4-32x32.png</url>
	<title>games86.ru</title>
	<link>https://games86.ru/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Игра стрелялка</title>
		<link>https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81%d1%82%d1%80%d0%b5%d0%bb%d1%8f%d0%bb%d0%ba%d0%b0/</link>
					<comments>https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81%d1%82%d1%80%d0%b5%d0%bb%d1%8f%d0%bb%d0%ba%d0%b0/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 29 Oct 2026 18:38:15 +0000</pubDate>
				<category><![CDATA[Без рубрики]]></category>
		<guid isPermaLink="false">https://games86.ru/?p=966</guid>

					<description><![CDATA[<p>Простая стрелялка Счёт: 0 &#124; Жизни: 3 Игра окончена! Счёт: 0 Играть снова</p>
<p>Сообщение <a href="https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81%d1%82%d1%80%d0%b5%d0%bb%d1%8f%d0%bb%d0%ba%d0%b0/">Игра стрелялка</a> появились сначала на <a href="https://games86.ru">games86.ru</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div id="pl-966"  class="panel-layout" ><div id="pg-966-0"  class="panel-grid panel-no-style" ><div id="pgc-966-0-0"  class="panel-grid-cell" ><div id="panel-966-0-0-0" class="widget_text so-panel widget widget_custom_html panel-first-child panel-last-child" data-index="0" ><div class="textwidget custom-html-widget"><!DOCTYPE html>
<html lang="ru">
  <head>
    <meta charset="UTF-8" />
    <title>Простая стрелялка</title>
    <style>
      body {
        margin: 0;
        padding: 20px;
        background: #111;
        color: #fff;
        font-family: Arial, sans-serif;
        overflow: hidden;
      }
      #game-container {
        position: relative;
        width: 800px;
        height: 600px;
        background: #222;
        border: 2px solid #444;
        margin: 0 auto;
        overflow: hidden;
      }
      .player {
        position: absolute;
        bottom: 20px;
        left: 340px; /* примерно по центру */
        width: 40px;
        height: 40px;
        background: #4fc3f7;
        z-index: 10;
      }
      .bullet {
        position: absolute;
        width: 6px;
        height: 12px;
        background: #ffeb3b;
        z-index: 9;
      }
      .enemy {
        position: absolute;
        width: 36px;
        height: 36px;
        background: #f44336;
        z-index: 8;
      }
      .ui {
        position: absolute;
        top: 15px;
        left: 15px;
        font-size: 18px;
      }
      #score { color: #4fc3f7; }
      #lives { color: #f44336; }
      #end-screen {
        display: none;
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
      }
      h1 { margin: 0 0 15px 0; color: #fff; }
      button {
        padding: 12px 24px;
        font-size: 16px;
        cursor: pointer;
        background: #4fc3f7;
        border: none;
        border-radius: 4px;
      }
      button:hover { background: #29b6f6; }
    </style>
  </head>
  <body>
    <div id="game-container">
      <div class="ui">
        Счёт: <span id="score">0</span> | Жизни: <span id="lives">3</span>
      </div>

      <div id="player" class="player"></div>

      <div id="end-screen">
        <h1>Игра окончена!</h1>
        <p>Счёт: <span id="final-score">0</span></p>
        <button onclick="resetGame()">Играть снова</button>
      </div>
    </div>

    <script>
      const container = document.getElementById('game-container');
      const playerEl = document.getElementById('player');
      const scoreEl = document.getElementById('score');
      const livesEl = document.getElementById('lives');
      const endScreen = document.getElementById('end-screen');
      const finalScore = document.getElementById('final-score');

      const GAME_WIDTH = 800;
      const GAME_HEIGHT = 600;

      let score = 0;
      let lives = 3;
      let playerX = GAME_WIDTH / 2 - 20; // 20 — половина ширины игрока
      const playerSpeed = 7;
      const bulletSpeed = 10;
      const enemySpeed = 2;
      const spawnRate = 90; // кадры между появлением врага

      const bullets = [];
      const enemies = [];

      let frameCount = 0;
      let gameRunning = true;

      // Управление
      const keys = { left: false, right: false };

      window.addEventListener('keydown', e => {
        if (e.key === 'ArrowLeft' || e.key === 'a') keys.left = true;
        if (e.key === 'ArrowRight' || e.key === 'd') keys.right = true;
        // Стрельба по пробелу
        if ((e.key === ' ') && gameRunning) shoot();
      });
      window.addEventListener('keyup', e => {
        if (e.key === 'ArrowLeft' || e.key === 'a') keys.left = false;
        if (e.key === 'ArrowRight' || e.key === 'd') keys.right = false;
      });

      function shoot() {
        const b = {
          x: playerX + 17, // примерно центр игрока
          y: GAME_HEIGHT - 50,
          el: null
        };
        const el = document.createElement('div');
        el.className = 'bullet';
        el.style.left = b.x + 'px';
        el.style.top = b.y + 'px';
        container.appendChild(el);
        b.el = el;
        bullets.push(b);
      }

      function spawnEnemy() {
        const x = Math.random() * (GAME_WIDTH - 36);
        const e = {
          x,
          y: -40,
          el: null
        };
        const el = document.createElement('div');
        el.className = 'enemy';
        el.style.left = e.x + 'px';
        el.style.top = e.y + 'px';
        container.appendChild(el);
        e.el = el;
        enemies.push(e);
      }

      function update() {
        if (!gameRunning) return;

        // Игрок
        if (keys.left && playerX > 0) playerX -= playerSpeed;
        if (keys.right && playerX + 40 < GAME_WIDTH) playerX += playerSpeed;
        playerEl.style.left = playerX + 'px';

        // Враги
        frameCount++;
        if (frameCount % spawnRate === 0) spawnEnemy();

        for (let i = enemies.length - 1; i >= 0; i--) {
          const e = enemies[i];
          e.y += enemySpeed;
          e.el.style.top = e.y + 'px';

          // Столкновение с игроком
          if (
            e.x < playerX + 40 &&
            e.x + 36 > playerX &&
            e.y < GAME_HEIGHT - 20 &&
            e.y + 36 > GAME_HEIGHT - 60
          ) {
            lives--;
            livesEl.textContent = lives;
            removeEnemy(i);
            if (lives <= 0) endGame();
          }

          // Если враг улетел вниз — минус жизнь
          if (e.y > GAME_HEIGHT) {
            lives--;
            livesEl.textContent = lives;
            removeEnemy(i);
            if (lives <= 0) endGame();
          }
        }

        // Пули
        for (let i = bullets.length - 1; i >= 0; i--) {
          const b = bullets[i];
          b.y -= bulletSpeed;
          b.el.style.top = b.y + 'px';

          if (b.y < 0) {
            removeBullet(i);
            continue;
          }

          // Попадание во врага
          for (let j = enemies.length - 1; j >= 0; j--) {
            const e = enemies[j];
            if (
              b.x > e.x &&
              b.x < e.x + 36 &&
              b.y > e.y &&
              b.y < e.y + 36
            ) {
              score++;
              scoreEl.textContent = score;
              removeBullet(i);
              removeEnemy(j);
              break;
            }
          }
        }

        requestAnimationFrame(update);
      }

      function removeBullet(index) {
        bullets[index].el.remove();
        bullets.splice(index, 1);
      }

      function removeEnemy(index) {
        enemies[index].el.remove();
        enemies.splice(index, 1);
      }

      function endGame() {
        gameRunning = false;
        endScreen.style.display = 'flex';
        finalScore.textContent = score;
      }

      function resetGame() {
        score = 0;
        lives = 3;
        scoreEl.textContent = score;
        livesEl.textContent = lives;
        frameCount = 0;
        gameRunning = true;
        endScreen.style.display = 'none';

        bullets.forEach(b => b.el.remove());
        bullets.length = 0;
        enemies.forEach(e => e.el.remove());
        enemies.length = 0;

        update();
      }

      update();
    </script>
  </body>
</html></div></div></div></div></div><p>Сообщение <a href="https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81%d1%82%d1%80%d0%b5%d0%bb%d1%8f%d0%bb%d0%ba%d0%b0/">Игра стрелялка</a> появились сначала на <a href="https://games86.ru">games86.ru</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81%d1%82%d1%80%d0%b5%d0%bb%d1%8f%d0%bb%d0%ba%d0%b0/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Игра с препятствиями</title>
		<link>https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81-%d0%bf%d1%80%d0%b5%d0%bf%d1%8f%d1%82%d1%81%d1%82%d0%b2%d0%b8%d1%8f%d0%bc%d0%b8/</link>
					<comments>https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81-%d0%bf%d1%80%d0%b5%d0%bf%d1%8f%d1%82%d1%81%d1%82%d0%b2%d0%b8%d1%8f%d0%bc%d0%b8/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 29 Oct 2026 18:19:54 +0000</pubDate>
				<category><![CDATA[Без рубрики]]></category>
		<guid isPermaLink="false">https://games86.ru/?p=968</guid>

					<description><![CDATA[<p>Прыгай через препятствия Счёт: 0 Игра окончена! Счёт: 0 Играть снова</p>
<p>Сообщение <a href="https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81-%d0%bf%d1%80%d0%b5%d0%bf%d1%8f%d1%82%d1%81%d1%82%d0%b2%d0%b8%d1%8f%d0%bc%d0%b8/">Игра с препятствиями</a> появились сначала на <a href="https://games86.ru">games86.ru</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div id="pl-968"  class="panel-layout" ><div id="pg-968-0"  class="panel-grid panel-no-style" ><div id="pgc-968-0-0"  class="panel-grid-cell" ><div id="panel-968-0-0-0" class="widget_text so-panel widget widget_custom_html panel-first-child panel-last-child" data-index="0" ><div class="textwidget custom-html-widget"><!DOCTYPE html>
<html lang="ru">
  <head>
    <meta charset="UTF-8" />
    <title>Прыгай через препятствия</title>
    <style>
      body {
        margin: 0;
        padding: 20px;
        background: #222;
        color: white;
        font-family: Arial, sans-serif;
        overflow: hidden;
      }
      #game-container {
        position: relative;
        width: 800px;
        height: 400px;
        background: #333;
        border: 2px solid #555;
        margin: 0 auto;
        overflow: hidden;
      }
      .ground {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 30px;
        background: #4a4a4a;
      }

      /* Человечек — контейнер */
      #player {
        position: absolute;
        bottom: 30px;
        left: 100px;
        width: 36px;
        height: 52px;
        z-index: 10;
      }

      /* Голова */
      .head {
        width: 28px;
        height: 24px;
        background: #ffe0b2;
        border-radius: 50% 50% 12px 12px;
        margin-left: 4px;
      }

      /* Туловище */
      .body {
        width: 28px;
        height: 28px;
        background: #4fc3f7;
        margin-left: 4px;
      }

      /* Руки (простые полоски) */
      .arm {
        position: absolute;
        top: 16px;
        width: 6px;
        height: 14px;
        background: #ffe0b2;
      }
      .arm-left { left: -3px; transform: rotate(15deg); }
      .arm-right { right: -3px; transform: rotate(-15deg); }

      /* Ноги */
      .leg {
        position: absolute;
        bottom: 0;
        width: 8px;
        height: 18px;
        background: #555;
      }
      .leg-left { left: 6px; }
      .leg-right { right: 6px; }

      .obstacle {
        position: absolute;
        bottom: 30px;
        width: 36px;
        height: 36px;
        background: #f44336;
        z-index: 8;
      }

      .ui {
        position: absolute;
        top: 15px;
        left: 15px;
        font-size: 18px;
      }
      #score { color: #fff; }

      #end-screen {
        display: none;
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
      }
      h1 { margin: 0 0 15px 0; color: #fff; }
      button {
        padding: 12px 24px;
        font-size: 16px;
        cursor: pointer;
        background: #4fc3f7;
        border: none;
        border-radius: 4px;
      }
      button:hover { background: #29b6f6; }
    </style>
  </head>
  <body>
    <div id="game-container">
      <div class="ui">Счёт: <span id="score">0</span></div>

      <!-- Человечек: контейнер + части -->
      <div id="player">
        <div class="head"></div>
        <div class="body"></div>
        <div class="arm arm-left"></div>
        <div class="arm arm-right"></div>
        <div class="leg leg-left"></div>
        <div class="leg leg-right"></div>
      </div>

      <div class="ground"></div>

      <div id="end-screen">
        <h1>Игра окончена!</h1>
        <p>Счёт: <span id="final-score">0</span></p>
        <button onclick="resetGame()">Играть снова</button>
      </div>
    </div>

    <script>
      const container = document.getElementById('game-container');
      const playerEl = document.getElementById('player');
      const scoreEl = document.getElementById('score');
      const endScreen = document.getElementById('end-screen');
      const finalScore = document.getElementById('final-score');

      const GAME_WIDTH = 800;
      const GAME_HEIGHT = 400;

      let playerY = 30;
      let velocityY = 0;
      let isJumping = false;
      const gravity = 0.7;
      const jumpStrength = -14;
      const groundLevel = 30;

      const obstacles = [];
      const spawnRate = 90;
      let frameCount = 0;
      const obstacleSpeed = 6;

      let score = 0;
      let gameRunning = true;

      window.addEventListener('keydown', e => {
         if (e.key === 'ArrowUp' && !isJumping && gameRunning) {
          isJumping = true;
          velocityY = jumpStrength;
        }
        if (e.key === 'r' && !gameRunning) resetGame();
      });

      function spawnObstacle() {
        const width = 36;
        const height = 36;
        const x = GAME_WIDTH;
        const el = document.createElement('div');
        el.className = 'obstacle';
        el.style.left = x + 'px';
        container.appendChild(el);

        obstacles.push({
          el,
          x,
          width,
          height
        });
      }

      function update() {
        if (!gameRunning) return;

        velocityY += gravity;
        playerY += velocityY;

        if (playerY > groundLevel) {
          playerY = groundLevel;
          velocityY = 0;
          isJumping = false;
        }
        playerEl.style.bottom = playerY + 'px';

        frameCount++;
        if (frameCount % spawnRate === 0) spawnObstacle();

        for (let i = obstacles.length - 1; i >= 0; i--) {
          const o = obstacles[i];
          o.x -= obstacleSpeed;
          o.el.style.left = o.x + 'px';

          if (o.x + o.width < 0) {
            o.el.remove();
            obstacles.splice(i, 1);
            score++;
            scoreEl.textContent = score;
            continue;
          }

          // Хитбокс человечка — такой же, как раньше (36×52)
          const playerRect = {
            x: 100,
            y: playerY,
            w: 36,
            h: 52
          };

          if (
            playerRect.x < o.x + o.width &&
            playerRect.x + playerRect.w > o.x &&
            playerRect.y < o.y + o.height &&
            playerRect.y + playerRect.h > o.y
          ) {
            endGame();
          }
        }

        requestAnimationFrame(update);
      }

      function endGame() {
        gameRunning = false;
        endScreen.style.display = 'flex';
        finalScore.textContent = score;
      }

      function resetGame() {
        score = 0;
        scoreEl.textContent = score;
        frameCount = 0;
        gameRunning = true;
        endScreen.style.display = 'none';

        obstacles.forEach(o => o.el.remove());
        obstacles.length = 0;

        playerY = groundLevel;
        velocityY = 0;
        isJumping = false;
        playerEl.style.bottom = playerY + 'px';

        update();
      }

      update();
    </script>
  </body>
</html></div></div></div></div></div><p>Сообщение <a href="https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81-%d0%bf%d1%80%d0%b5%d0%bf%d1%8f%d1%82%d1%81%d1%82%d0%b2%d0%b8%d1%8f%d0%bc%d0%b8/">Игра с препятствиями</a> появились сначала на <a href="https://games86.ru">games86.ru</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81-%d0%bf%d1%80%d0%b5%d0%bf%d1%8f%d1%82%d1%81%d1%82%d0%b2%d0%b8%d1%8f%d0%bc%d0%b8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Игра с шариками</title>
		<link>https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81-%d1%88%d0%b0%d1%80%d0%b8%d0%ba%d0%b0%d0%bc%d0%b8/</link>
					<comments>https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81-%d1%88%d0%b0%d1%80%d0%b8%d0%ba%d0%b0%d0%bc%d0%b8/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 29 Oct 2026 17:41:28 +0000</pubDate>
				<category><![CDATA[Без рубрики]]></category>
		<guid isPermaLink="false">https://games86.ru/?p=959</guid>

					<description><![CDATA[<p>Лови шарики Счёт: 0 &#124; Жизни: 5 Игра окончена! Счёт: 0 Играть снова</p>
<p>Сообщение <a href="https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81-%d1%88%d0%b0%d1%80%d0%b8%d0%ba%d0%b0%d0%bc%d0%b8/">Игра с шариками</a> появились сначала на <a href="https://games86.ru">games86.ru</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div id="pl-959"  class="panel-layout" ><div id="pg-959-0"  class="panel-grid panel-no-style" ><div id="pgc-959-0-0"  class="panel-grid-cell" ><div id="panel-959-0-0-0" class="widget_text so-panel widget widget_custom_html panel-first-child panel-last-child" data-index="0" ><div class="textwidget custom-html-widget"><!DOCTYPE html>
<html lang="ru">
  <head>
    <meta charset="UTF-8" />
    <title>Лови шарики</title>
    <style>
      body {
        margin: 0;
        padding: 0;
        background: #111;
        color: white;
        font-family: Arial, sans-serif;
        overflow: hidden; /* чтобы не было скролла */
        user-select: none;
      }
      #game {
        position: relative;
        width: 800px;
        height: 600px;
        margin: 20px auto;
        border: 2px solid #444;
        background: #000;
      }
      .score-lives {
        position: absolute;
        top: 10px;
        left: 15px;
        font-size: 18px;
      }
      #score { color: #4fc3f7; }
      #lives { color: #ff7043; }
      .ball {
        position: absolute;
        border-radius: 50%;
      }
      .platform {
        position: absolute;
        bottom: 10px;
        height: 12px;
        background: #4fc3f7;
      }
      #end-screen {
        display: none;
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
      }
      h1 { margin: 0 0 10px 0; color: #fff; }
      button {
        padding: 10px 24px;
        font-size: 16px;
        cursor: pointer;
        background: #4fc3f7;
        border: none;
        border-radius: 4px;
      }
      button:hover { background: #29b6f6; }
    </style>
  </head>
  <body>
    <div id="game">
      <div class="score-lives">
        Счёт: <span id="score">0</span> | Жизни: <span id="lives">5</span>
      </div>

      <div id="platform" class="platform"></div>
      <div id="end-screen">
        <h1>Игра окончена!</h1>
        <p>Счёт: <span id="final-score">0</span></p>
        <button onclick="resetGame()">Играть снова</button>
      </div>
    </div>

    <script>
      const game = document.getElementById('game');
      const platform = document.getElementById('platform');
      const scoreEl = document.getElementById('score');
      const livesEl = document.getElementById('lives');
      const endScreen = document.getElementById('end-screen');
      const finalScore = document.getElementById('final-score');

      const GAME_WIDTH = 800;
      const GAME_HEIGHT = 600;

      let score = 0;
      let lives = 3;
      let platformWidth = 160;
      let platformSpeed = 8;
      let platformX = (GAME_WIDTH - platformWidth) / 2;

      const balls = [];
      const spawnRate = 40; // кадры между появлением шарика
      let frameCount = 0;

      // Управление
      const keys = { left: false, right: false };

      window.addEventListener('keydown', e => {
        if (e.key === 'ArrowLeft' || e.key === 'a') keys.left = true;
        if (e.key === 'ArrowRight' || e.key === 'd') keys.right = true;
      });
      window.addEventListener('keyup', e => {
        if (e.key === 'ArrowLeft' || e.key === 'a') keys.left = false;
        if (e.key === 'ArrowRight' || e.key === 'd') keys.right = false;
      });

      function spawnBall() {
        const radius = 12;
        const x = Math.random() * (GAME_WIDTH - radius * 2) + radius;
        const speed = 3 + Math.random() * 3; // 3–6 px/кадр
        const color = `hsl(${Math.random() * 360}, 70%, 50%)`;

        const ballEl = document.createElement('div');
        ballEl.className = 'ball';
        ballEl.style.width = `${radius * 2}px`;
        ballEl.style.height = `${radius * 2}px`;
        ballEl.style.left = `${x - radius}px`;
        ballEl.style.top = `-${radius * 2}px`;
        ballEl.style.background = color;
        game.appendChild(ballEl);

        balls.push({
          el: ballEl,
          x,
          y: -radius * 2,
          radius,
          speed,
          color
        });
      }

      function update() {
        // Платформа
        if (keys.left && platformX > 0) platformX -= platformSpeed;
        if (keys.right && platformX + platformWidth < GAME_WIDTH) platformX += platformSpeed;

        platform.style.left = platformX + 'px';
        platform.style.width = platformWidth + 'px';

        // Шарики
        frameCount++;
        if (frameCount % spawnRate === 0) spawnBall();

        for (let i = balls.length - 1; i >= 0; i--) {
          const b = balls[i];
          b.y += b.speed;

          // Позиция на экране
          b.el.style.top = b.y + 'px';
          b.el.style.left = b.x - b.radius + 'px';

          // Столкновение с платформой
          const platBottom = GAME_HEIGHT - 10 - 12; // платформа снизу
          const isAbovePlatform = b.y + b.radius * 2 >= platBottom && b.y <= platBottom + 12;
          const isOverPlatform = b.x >= platformX && b.x <= platformX + platformWidth;

          if (isAbovePlatform && isOverPlatform) {
            score++;
            scoreEl.textContent = score;
            removeBall(i);
            continue;
          }

          // Упал вниз
          if (b.y > GAME_HEIGHT) {
            lives--;
            livesEl.textContent = lives;
            removeBall(i);

            if (lives <= 0) {
              endScreen.style.display = 'flex';
              finalScore.textContent = score;
              return; // не продолжаем кадр
            }
          }
        }

        requestAnimationFrame(update);
      }

      function removeBall(index) {
        balls[index].el.remove();
        balls.splice(index, 1);
      }

      function resetGame() {
        score = 0;
        lives = 5;
        scoreEl.textContent = score;
        livesEl.textContent = lives;
        endScreen.style.display = 'none';

        // Удалить все шарики
        balls.forEach(b => b.el.remove());
        balls.length = 0;
        frameCount = 0;

        update();
      }

      update();
    </script>
  </body>
</html>
</div></div></div></div></div><p>Сообщение <a href="https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81-%d1%88%d0%b0%d1%80%d0%b8%d0%ba%d0%b0%d0%bc%d0%b8/">Игра с шариками</a> появились сначала на <a href="https://games86.ru">games86.ru</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://games86.ru/%d0%b8%d0%b3%d1%80%d0%b0-%d1%81-%d1%88%d0%b0%d1%80%d0%b8%d0%ba%d0%b0%d0%bc%d0%b8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Малиновка</title>
		<link>https://games86.ru/%d0%bc%d0%b0%d0%bb%d0%b8%d0%bd%d0%be%d0%b2%d0%ba%d0%b0/</link>
					<comments>https://games86.ru/%d0%bc%d0%b0%d0%bb%d0%b8%d0%bd%d0%be%d0%b2%d0%ba%d0%b0/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 10 Dec 2021 09:48:02 +0000</pubDate>
				<category><![CDATA[Без рубрики]]></category>
		<guid isPermaLink="false">https://games86.ru/?p=843</guid>

					<description><![CDATA[<p>Онлайн-игра про Россию. Множество интересных фракций, новых работ и уникальных автомобилей ждут Вас в игре. Теперь Вы можете общаться с друзьями и игроками...</p>
<p>Сообщение <a href="https://games86.ru/%d0%bc%d0%b0%d0%bb%d0%b8%d0%bd%d0%be%d0%b2%d0%ba%d0%b0/">Малиновка</a> появились сначала на <a href="https://games86.ru">games86.ru</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div id="pl-843"  class="panel-layout" ><div id="pg-843-0"  class="panel-grid panel-no-style" ><div id="pgc-843-0-0"  class="panel-grid-cell" ><div id="panel-843-0-0-0" class="so-panel widget widget_sow-editor panel-first-child panel-last-child" data-index="0" ><div
			
			class="so-widget-sow-editor so-widget-sow-editor-base"
			
		>
<div class="siteorigin-widget-tinymce textwidget">
	<p>Онлайн-игра про Россию. Множество интересных фракций, новых работ и уникальных автомобилей ждут Вас в игре. Теперь Вы можете общаться с друзьями и игроками через голосовой чат внутри игры. Это совершенно новые эмоции и ощущения.</p>
<div class="ads-button">
		<a href="https://xcdus.com/g/c5e9n6r3ew2af2d770aec5c964748a/?erid=MvGzQC98w3Z1gMq1pRgkzi9d" target="_blank" class="adsbtn-swipe "> Играть</a>
		</div>
</div>
</div></div></div></div></div><p>Сообщение <a href="https://games86.ru/%d0%bc%d0%b0%d0%bb%d0%b8%d0%bd%d0%be%d0%b2%d0%ba%d0%b0/">Малиновка</a> появились сначала на <a href="https://games86.ru">games86.ru</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://games86.ru/%d0%bc%d0%b0%d0%bb%d0%b8%d0%bd%d0%be%d0%b2%d0%ba%d0%b0/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Black Desert</title>
		<link>https://games86.ru/black-desert/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 06 Feb 2021 16:02:57 +0000</pubDate>
				<category><![CDATA[Без рубрики]]></category>
		<guid isPermaLink="false">https://games86.ru/?p=773</guid>

					<description><![CDATA[<p>Работает только на компьютере! Black Desert - средневековая MMORPG с бесшовным миром, нон-таргет комбо-атаками и реалистичными битвами на суше и на море. Присоединяйся...</p>
<p>Сообщение <a href="https://games86.ru/black-desert/">Black Desert</a> появились сначала на <a href="https://games86.ru">games86.ru</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div id="pl-773"  class="panel-layout" ><div id="pg-773-0"  class="panel-grid panel-no-style" ><div id="pgc-773-0-0"  class="panel-grid-cell" ><div id="panel-773-0-0-0" class="so-panel widget widget_sow-editor panel-first-child panel-last-child" data-index="0" ><div
			
			class="so-widget-sow-editor so-widget-sow-editor-base"
			
		>
<div class="siteorigin-widget-tinymce textwidget">
	<p><span style="color: #00ff00;"><strong>Работает только на компьютере!</strong></span></p>
<p>Black Desert - средневековая MMORPG с бесшовным миром, нон-таргет комбо-атаками и реалистичными битвами на суше и на море. Присоединяйся к армии игроков Black Desert. Уже 10 млн пользователей по всему миру прониклись духом настоящего средневековья!</p>
<p>Что привлекает пользователей в игре "Black Desert" :</p>
<ul>
<li>Высокое качество графики;</li>
<li>Новый, интереснейший сюжет игры;</li>
<li>Многообразие героев;</li>
<li>Красочное оформление и многое другое.</li>
</ul>
<div class="ads-button">
		<a href="https://ad.admitad.com/g/fy90i94aoa2af2d770ae3fcec4d4a3/" target="_blank" class="adsbtn-swipe "> Посмотреть игру</a>
		</div>
</div>
</div></div></div></div></div><p>Сообщение <a href="https://games86.ru/black-desert/">Black Desert</a> появились сначала на <a href="https://games86.ru">games86.ru</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
