1
resposta

[Projeto] Fiz pequenas mudanças na pagina

<!DOCTYPE html>
<html lang="en">
  <head>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.6.0/p5.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.6.0/addons/p5.sound.min.js"></script>
    <link rel="stylesheet" type="text/css" href="style.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
    <meta charset="utf-8" />

  </head>
  <body>
    <header>
      <h1 class="titulo">Pong</h1>
    </header>

    <div class="jogo">
      <p id="pontosJogador" class="pontos">0</p>
      <p id="pontosComputador" class="pontos">0</p>
    </div>

    <script src="sketch.js"></script> 
  </body>
</html>
body {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    font-family: Roboto;
}

.titulo {
    background-color: blueviolet;
    padding: 50px;
    margin-top: auto;
    width: auto;
}

.jogo {
    display: flex;
    text-align: center;
    justify-content: space-around;
}

.pontos {
    font-size: 32px;
    font-family: Dosis;
}

Pagina do jogo PONG com placar

1 resposta

Olá Henrique!

Parabéns por praticar! Muito obrigada por compartilhar com a gente.

Continue os bons estudos.

Um abraço.