-
Notifications
You must be signed in to change notification settings - Fork 1
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
Changes from 7 commits
b248325
a3ac43d
0eba7fa
ea3b024
7337678
3e7daa1
3e4699b
595ed02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| // Module Dependencies | ||
|
|
||
| // Dynamic Diagram | ||
| export * from './dynamicDiagram/diagram-generator' | ||
| export * from './dynamicDiagram/diagram-generator.js' | ||
|
|
||
| // Game | ||
| export * from './game/utils' | ||
| export * from './game/utils.js' | ||
|
|
||
| export { LocalGame } from './game/game.js' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Y el |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| <html> | ||
| <head> | ||
| <link rel="stylesheet" href="game.css"> | ||
| <script>var process = {};</script> | ||
| <link rel="stylesheet" href="game.css" /> | ||
| <script> | ||
| var process = {}; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ahora que lo veo, no debería ser no tengo ni idea qué hace acá
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| </script> | ||
| <script src="../../dist/web/game-index.js"></script> | ||
| </head> | ||
| <body> | ||
|
|
@@ -10,4 +12,4 @@ | |
| </main> | ||
| <script src="./test.js"></script> | ||
| </body> | ||
| </html> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ program juego { | |
| game.addVisualCharacter(pepita) | ||
| keyboard.space().onPressDo({ | ||
| game.say(pepita, "Ouch") | ||
| // game.sound('musica.mp3').play() | ||
| game.sound('musica.mp3').play() | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 😆 |
||
| }) | ||
| game.start() | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { | ||
| "extends": "./tsconfig.json", | ||
| "compilerOptions": { | ||
| "target": "es2017", | ||
| "module": "commonjs", | ||
| }, | ||
| } | ||
| "target": "ES2020", | ||
| "module": "ES2022" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,17 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "target": "es2017", | ||
| "module": "commonjs", | ||
| "target": "ES2020", | ||
| "module": "ES2022", | ||
| "outDir": "temp", | ||
| "lib": [ | ||
| "es2021" | ||
| ], | ||
| "lib": ["ES2021"], | ||
| "declaration": true, | ||
| "strict": true, | ||
| "removeComments": true, | ||
| "moduleResolution": "node", | ||
| "moduleResolution": "bundler", | ||
| "resolveJsonModule": true, | ||
| "esModuleInterop": true, | ||
| "experimentalDecorators": true | ||
| }, | ||
| "include": [ | ||
| "./test/**/*.ts", | ||
| ], | ||
| "exclude": [ | ||
| "**/*.js", | ||
| "build", | ||
| "node_modules", | ||
| ] | ||
| } | ||
| "include": ["./test/**/*.ts"], | ||
| "exclude": ["**/*.js", "build", "node_modules"] | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.