Skip to content

Commit

Permalink
Few more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitanga Nday committed Dec 22, 2021
1 parent 3d72258 commit 4e11bff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Design.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ The game looks fine on mobile, with a few exceptions, the formations might have
- [x] UPDATE: Move the "Click ME to start Game" to after assets load
- [ ] UPDATE: Make game over scene background translucent
- [ ] UPDATE: Allow user to move past input prompt and menu scene by pressing spacebar or controller buttons
- [ ] UPDATE: Change "click on THIS..." to an audio prompt instead.
- [ ] ~UPDATE: Change "click on THIS..." to an audio prompt instead.~
- [ ] NEW: Add a way for controller to pick between the two options (A for yes and B for no)
- [ ] NEW: Added firebase analytics to measure session time.
- [ ] NEW: Add explosion animations
Expand Down
10 changes: 6 additions & 4 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
* Module dependencies.
*/

const express = require('express');
const path = require('path');
const express = require("express");
const path = require("path");
const app = express();

const PORT = process.env.PORT || 3000;

app.use(express.static(path.join(__dirname, 'dist')));
app.use(express.static(path.join(__dirname, "dist")));

app.listen(PORT);
app.listen(PORT, () => {
console.log("Listening at port:", PORT);
});
9 changes: 8 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,14 @@ function resetStage(): void {

function showBoot(): void {
resetStage();
const readyText = new Text("Click on THIS text to start game!");

const audioPrompt = "Click on THIS text to start game!";

const utterance = new SpeechSynthesisUtterance(audioPrompt);
// utterance.voice =
speechSynthesis.speak(utterance);

const readyText = new Text(audioPrompt);

readyText.x = app.renderer.width * 0.5;
readyText.y = app.renderer.height * 0.5;
Expand Down

0 comments on commit 4e11bff

Please sign in to comment.