-
Notifications
You must be signed in to change notification settings - Fork 0
ESM, Howler y base64 assets #29
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
Conversation
fdodino
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
banco fuerte esta movida, es la que va!!!
Bien ahí Ivo!!
| <script>var process = {};</script> | ||
| <link rel="stylesheet" href="game.css" /> | ||
| <script> | ||
| var process = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahora que lo veo, no debería ser let process = {};? O la queremos así, hoisted?
no tengo ni idea qué hace acá
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si tengo que adivinar esto debe ser por p5 que usa mucho las variables globales de node (malisimo). Pero realmente no tengo contexto, el que sabe de esto es @PalumboN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eso estaba así porque sino rompía algo de p5, habría que probar sacándolo y viendo que todo funcione :P
PalumboN
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alto perriiiiiiii 🚀
Para mí debería exportarse el SocketGame para usarlo desde CLI y estamos 💯
src/index.ts
Outdated
| export * from './game/utils' No newline at end of file | ||
| export * from './game/utils.js' | ||
|
|
||
| export { LocalGame } from './game/game.js' No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Y el SocketGame ?
| keyboard.space().onPressDo({ | ||
| game.say(pepita, "Ouch") | ||
| // game.sound('musica.mp3').play() | ||
| game.sound('musica.mp3').play() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😆
Cambios para poder correr
LocalGameen una aplicacion React, que es lo que estuve laburando aca con la intencion de no tener que cargarLocalGamecomo parte del objetowindowsi no como una clase comun y corriente que existe en el mundo typescriptes2022/dist/web) sigue siendo commonjs (para no romper todos los uses que le damos), en un futuro probablemente deberiamos separar en 2 packages lo bundleado y el esm porque ahora el package debe estar pesando ~2x lo que deberiawindow), empezamos a usar HowlerA esto le falta lo que @fdodino propuso en #28 pero creo que puede ir por separado