made game ready for presentation and cloned a version with changed phase durations for presentation
This commit is contained in:
@@ -113,7 +113,7 @@ async function keyPressed() {
|
||||
if (keyCode == ENTER) {
|
||||
homescreenOn = false;
|
||||
scorescreenOn = true;
|
||||
reset();
|
||||
requesteddata = [];
|
||||
keyReleasedFlag = false;
|
||||
}
|
||||
}
|
||||
|
@@ -3,10 +3,10 @@ class database{
|
||||
fetch(`https://oege.ie.hva.nl/~hossan/postData.php?name=${naam}&score=${score}`)
|
||||
}
|
||||
|
||||
getData(name) {
|
||||
getData(naam) {
|
||||
// Fetch data from the database, put it in an array, and log it to the console
|
||||
//met backticks als " " kan je variabelen in een string zetten
|
||||
return fetch(`https://oege.ie.hva.nl/~hossan/getData.php?name=${name}`) // Add return here
|
||||
return fetch(`https://oege.ie.hva.nl/~hossan/getData.php?name=${naam}`) // Add return here
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
requesteddata = data;
|
||||
|
Reference in New Issue
Block a user