fixed text
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user