-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* missing error field * menu scene images completed * js changes * upgraded go and deps * upgraded to latest version of ethereum * upgraded deps --------- Co-authored-by: Ale Kennedy <[email protected]>
- Loading branch information
1 parent
7d7fcf2
commit 53b8cb7
Showing
535 changed files
with
28,092 additions
and
66,182 deletions.
There are no files selected for viewing
This file contains 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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script> | ||
<script src="https://c0f4f41c-2f55-4863-921b-sdk-docs.github.io/cdn/metamask-sdk.js"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> | ||
<script type="module" src="scripts/backend/backend.js"></script> | ||
<script type="module" src="scripts/frontend/index.js"></script> | ||
</head> | ||
<body> | ||
|
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,48 @@ | ||
import Backend from './backend.js'; | ||
import MenuScene from './menu.js'; | ||
import GameScene from './game.js'; | ||
// import EndScene from './end.js'; | ||
|
||
// Construct the backend to have access to the backend API. | ||
const backend = new Backend('http://0.0.0.0:3000'); | ||
|
||
// ============================================================================= | ||
|
||
const config = { | ||
type: Phaser.AUTO, | ||
width: 800, | ||
height: 600, | ||
scene: [MenuScene, GameScene], | ||
}; | ||
|
||
const game = new Phaser.Game(config); | ||
const game = new Phaser.Game(config); | ||
|
||
// ============================================================================= | ||
|
||
// Throw Away Code | ||
|
||
window.onload = function () { | ||
$('#gameConnect').click(handlerGameConnect); | ||
$('#gameTables').click(handlerGameTables); | ||
}; | ||
|
||
async function handlerGameConnect() { | ||
const err = await backend.GameConnect(); | ||
if (err != null) { | ||
$('#error').text(err); | ||
return; | ||
} | ||
|
||
// For now display the token. | ||
$('#error').text(backend.Engine.Token()); | ||
} | ||
|
||
async function handlerGameTables() { | ||
const [tables, err] = await backend.Engine.Tables(); | ||
if (err != null) { | ||
$('#error').text(err); | ||
return; | ||
} | ||
|
||
$('#error').text(JSON.stringify(tables)); | ||
} |
This file contains 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
Oops, something went wrong.