made game ready for presentation and cloned a version with changed phase durations for presentation

This commit is contained in:
Sam
2024-01-23 22:25:48 +01:00
parent b606b2a0d6
commit 09530eac15
14 changed files with 880 additions and 394 deletions

14
webdev/js/Button.js Normal file
View File

@@ -0,0 +1,14 @@
class Button{
button(r, g, b, buttonX, buttonY, buttonText) {
push()
noFill()
rectMode(CENTER);
rect(buttonX, buttonY, buttonWidth, buttonHeight)
textSize(25)
fill(r, g, b)
textAlign(CENTER);
text(buttonText, buttonX, buttonY)
pop()
}
}