made game ready for presentation and cloned a version with changed phase durations for presentation
This commit is contained in:
14
webdev/js/Button.js
Normal file
14
webdev/js/Button.js
Normal 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()
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user