summaryrefslogtreecommitdiff
path: root/demos/2d/hdr/beach_cave.gd
diff options
context:
space:
mode:
Diffstat (limited to 'demos/2d/hdr/beach_cave.gd')
-rw-r--r--demos/2d/hdr/beach_cave.gd21
1 files changed, 0 insertions, 21 deletions
diff --git a/demos/2d/hdr/beach_cave.gd b/demos/2d/hdr/beach_cave.gd
deleted file mode 100644
index fcc878e565..0000000000
--- a/demos/2d/hdr/beach_cave.gd
+++ /dev/null
@@ -1,21 +0,0 @@
-
-extends Node2D
-
-# Member variables
-const CAVE_LIMIT = 1000
-
-
-func _input(event):
- if (event.type == InputEvent.MOUSE_MOTION and event.button_mask&1):
- var rel_x = event.relative_x
- var cavepos = get_node("cave").get_pos()
- cavepos.x += rel_x
- if (cavepos.x < -CAVE_LIMIT):
- cavepos.x = -CAVE_LIMIT
- elif (cavepos.x > 0):
- cavepos.x = 0
- get_node("cave").set_pos(cavepos)
-
-
-func _ready():
- set_process_input(true)