Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilizar game con dependencias locales #119

Closed
fdodino opened this issue Dec 2, 2023 · 1 comment · Fixed by #169
Closed

Utilizar game con dependencias locales #119

fdodino opened this issue Dec 2, 2023 · 1 comment · Fixed by #169
Assignees
Labels
game good first issue Good for newcomers

Comments

@fdodino
Copy link
Contributor

fdodino commented Dec 2, 2023

Hoy el archivo index.html de game tiene estas dependencias:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.2.0/p5.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.5.0/addons/p5.sound.js"></script>
    <title>Wollok Game</title>

    <script ...>
  </head>

  <body>
    ...
    <script type="module">
      import { io } from "https://cdn.socket.io/4.4.1/socket.io.esm.min.js";

Hay que bajar

  • socket.io
  • p5

de la misma manera que lo hicimos para el diagrama dinámico.

@fdodino fdodino added the game label Dec 2, 2023
@fdodino
Copy link
Contributor Author

fdodino commented Dec 3, 2023

Esto implica

  • actualizar el archivo ./scripts/download-libs.sh para descargar en la carpeta game los archivos de la biblioteca
  • actualizar el index.html para referenciar a las copias locales

@fdodino fdodino added the good first issue Good for newcomers label Dec 3, 2023
@ivojawer ivojawer self-assigned this Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
game good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants