Created
November 28, 2023 14:33
-
-
Save felipebastosweb/fffafe1e7b76d4d3d054fffcbf8f3605 to your computer and use it in GitHub Desktop.
Integração com o MithrilJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// acrescente <script src="https://unpkg.com/mithril/mithril.js"></script> no index.html | |
export class Game | |
{ | |
constructor(self) | |
{ | |
// lista de levels do usuário (página) | |
this.levelList = {}; | |
} | |
run(self) | |
{ | |
return m.route(document.body, "/", this.levelList) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment