fixed text

This commit is contained in:
Mees Roelofsz
2023-11-26 16:48:40 +01:00
parent 328f494da0
commit b65d21dca1

View File

@@ -132,7 +132,6 @@ function shoot(directionX, directionY) {
// the function draw() is called every frame // the function draw() is called every frame
function draw() { function draw() {
textSize(10); textSize(10);
textAlign(LEFT);
keyPressed(); keyPressed();
life(); life();
// draw background // draw background
@@ -148,6 +147,7 @@ function draw() {
circle(500, 100, 50); circle(500, 100, 50);
score(); score();
textAlign(LEFT);
text(time, 10, 20); text(time, 10, 20);
if (shot == false || hit == true) { if (shot == false || hit == true) {