pull/2/head
parent
a65cee3ba9
commit
4864274169
|
@ -474,7 +474,6 @@ import Layout from '../../layouts/Layout.astro';
|
||||||
function clearDrawing() {
|
function clearDrawing() {
|
||||||
graphics.clear();
|
graphics.clear();
|
||||||
}
|
}
|
||||||
let alertTriggered = false;
|
|
||||||
function update() {
|
function update() {
|
||||||
const slider = document.querySelector('input[type="range"]');
|
const slider = document.querySelector('input[type="range"]');
|
||||||
if (slider && !isDrawing) {
|
if (slider && !isDrawing) {
|
||||||
|
@ -491,11 +490,6 @@ import Layout from '../../layouts/Layout.astro';
|
||||||
// Position the cursor at the current mouse pointer coordinates
|
// Position the cursor at the current mouse pointer coordinates
|
||||||
customCursor.x = this.input.x;
|
customCursor.x = this.input.x;
|
||||||
customCursor.y = this.input.y;
|
customCursor.y = this.input.y;
|
||||||
// Check the condition for triggering the alert
|
|
||||||
if (!alertTriggered && game.input.x > game.scale.width / 2 + 200) {
|
|
||||||
alert('Alert triggered!');
|
|
||||||
alertTriggered = true; // Ensure the alert is triggered only once
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Reference in New Issue