aboutsummaryrefslogtreecommitdiff
path: root/src/paperflight/static/update.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/paperflight/static/update.js')
-rw-r--r--src/paperflight/static/update.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/paperflight/static/update.js b/src/paperflight/static/update.js
index 642e993..8dec8e6 100644
--- a/src/paperflight/static/update.js
+++ b/src/paperflight/static/update.js
@@ -33,6 +33,11 @@ function updateVent() {
plane.y -= 2
}
}
+function updateDrip(){
+ if(this.drips.some(drip => isPlaneInCircle(drip))){
+ gameOver()
+ }
+}
function updateBlock() {
if (isPlaneInBox(this)) {
gameOver()