Transaction 68002b4b3e738e61a2ba3702e28995f6db8ca8fad89da4c6cc4233053eec833f
1 Input
-
91265eaa3e09997311c554dcd9d204ea141bf56c01c50baa1d8ed263a10532b1:0
OP_DATA_32(32) 9298ff00a9ac02554af3a529357230be03d3eb5eeab07d0b57f3e2f111141656OP_CHECKSIG(172)OP_0(0)OP_IF(99)OP_DATA_3(3) ordOP_DATA_1(1)OP_DATA_23(23) text/html;charset=utf-8OP_0(0)OP_PUSHDATA2(77) <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Bubble Pop Game</title> <style> body { margin: 0; overflow: hidden; } </style> </head> <body> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script> <script> // <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Bubble Pop Game</title> <OP_PUSHDATA2(77) style> body { margin: 0; overflow: hidden; } </style> </head> <body> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script> <script> let bubbles = []; let score = 0; function setup() { createCanvas(windowWidth, windowHeight); for (let i = 0; i < 100; i++) { createBubble(); } // Create the reset button let resetButton = createButton("Reset Score"); resetButton.position(20, 50); resetButton.mousePressedOP_PUSHDATA2(77) (resetScore); } function draw() { background(0); // Set background color to black for (let i = bubbles.length - 1; i >= 0; i--) { bubbles[i].update(); bubbles[i].display(); } // Display the score fill(255); textSize(20); text(`Score: ${score}`, 20, 30); } function createBubble() { let size = random(20, 60); // Random size between 20 and 60 pixels let x = random(size, width - size); let y = random(size, height - size);OP_PUSHDATA2(77) let color = randomColor(); // Random neon green, orange, or yellow color let velocityX = random(-2, 2); // Random positive or negative horizontal velocity let velocityY = random(-2, 2); // Random positive or negative vertical velocity bubbles.push(new Bubble(x, y, size, color, velocityX, velocityY)); } function mouseClicked() { for (let i = bubbles.length - 1; i >= 0; i--) { if (bubbles[i].contains(mouseX, mouseY)) { bubbles.splice(i, 1); // Remove the bubble iOP_PUSHDATA2(77) f the mouse is clicked inside it score++; // Increment the score break; // Exit the loop after removing the first bubble found } } // Add new bubbles after popping createBubble(); } function resetScore() { score = 0; } class Bubble { constructor(x, y, size, color, velocityX, velocityY) { this.x = x; this.y = y; this.size = size; this.color = color; this.velocityX = velocityX; this.velocityY =OP_PUSHDATA2(77) velocityY; } update() { this.x += this.velocityX; this.y += this.velocityY; // Bounce off edges if (this.x - this.size / 2 < 0 || this.x + this.size / 2 > width) { this.velocityX *= -1; } if (this.y - this.size / 2 < 0 || this.y + this.size / 2 > height) { this.velocityY *= -1; } } display() { fill(this.color); // Set bubble color noStroke(); ellipse(this.x, this.y, this.size * 2); }OP_PUSHDATA2(77) contains(x, y) { let distance = dist(x, y, this.x, this.y); return distance < this.size; } } function windowResized() { resizeCanvas(windowWidth, windowHeight); } function randomColor() { // Generate random neon green, orange, or yellow color let colors = ['#00ff00', '#ff9900', '#ffff00']; return random(colors); } </script> </body> </html> // ... </script> </body> </html>OP_ENDIF(104)
1 Outputs
- 68002b4b3e738e61a2ba3702e28995f6db8ca8fad89da4c6cc4233053eec833f:0
value 10000
address bc1q2z58exm8rjrpn9yruq3f6gc88xyjxg0ydpjw4l