diff options
Diffstat (limited to 'demos/2d/texscreen')
-rw-r--r-- | demos/2d/texscreen/OpenCV_Chessboard.png | bin | 44884 -> 0 bytes | |||
-rw-r--r-- | demos/2d/texscreen/bubble.png | bin | 18619 -> 0 bytes | |||
-rw-r--r-- | demos/2d/texscreen/bubbles.gd | 11 | ||||
-rw-r--r-- | demos/2d/texscreen/bubbles.scn | bin | 2626 -> 0 bytes | |||
-rw-r--r-- | demos/2d/texscreen/burano.png | bin | 974437 -> 0 bytes | |||
-rw-r--r-- | demos/2d/texscreen/engine.cfg | 12 | ||||
-rw-r--r-- | demos/2d/texscreen/icon.png | bin | 9245 -> 0 bytes | |||
-rw-r--r-- | demos/2d/texscreen/lens.gd | 32 | ||||
-rw-r--r-- | demos/2d/texscreen/lens.scn | bin | 1850 -> 0 bytes |
9 files changed, 0 insertions, 55 deletions
diff --git a/demos/2d/texscreen/OpenCV_Chessboard.png b/demos/2d/texscreen/OpenCV_Chessboard.png Binary files differdeleted file mode 100644 index 31b7f8ccd8..0000000000 --- a/demos/2d/texscreen/OpenCV_Chessboard.png +++ /dev/null diff --git a/demos/2d/texscreen/bubble.png b/demos/2d/texscreen/bubble.png Binary files differdeleted file mode 100644 index 021abba601..0000000000 --- a/demos/2d/texscreen/bubble.png +++ /dev/null diff --git a/demos/2d/texscreen/bubbles.gd b/demos/2d/texscreen/bubbles.gd deleted file mode 100644 index 400da1a205..0000000000 --- a/demos/2d/texscreen/bubbles.gd +++ /dev/null @@ -1,11 +0,0 @@ - -extends Control - -# Member variables -const MAX_BUBBLES = 10 - - -func _ready(): - for i in range(MAX_BUBBLES): - var bubble = preload("res://lens.scn").instance() - add_child(bubble) diff --git a/demos/2d/texscreen/bubbles.scn b/demos/2d/texscreen/bubbles.scn Binary files differdeleted file mode 100644 index 8509b3811c..0000000000 --- a/demos/2d/texscreen/bubbles.scn +++ /dev/null diff --git a/demos/2d/texscreen/burano.png b/demos/2d/texscreen/burano.png Binary files differdeleted file mode 100644 index 6eec09d585..0000000000 --- a/demos/2d/texscreen/burano.png +++ /dev/null diff --git a/demos/2d/texscreen/engine.cfg b/demos/2d/texscreen/engine.cfg deleted file mode 100644 index 92d0e98d5b..0000000000 --- a/demos/2d/texscreen/engine.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[application] - -name="Glass Bubbles (Texscreen)" -main_scene="res://bubbles.scn" -icon="res://icon.png" - -[display] - -width=800 -height=600 -stretch_mode="2d" -stretch_aspect="keep" diff --git a/demos/2d/texscreen/icon.png b/demos/2d/texscreen/icon.png Binary files differdeleted file mode 100644 index d74d025ced..0000000000 --- a/demos/2d/texscreen/icon.png +++ /dev/null diff --git a/demos/2d/texscreen/lens.gd b/demos/2d/texscreen/lens.gd deleted file mode 100644 index d1007553b0..0000000000 --- a/demos/2d/texscreen/lens.gd +++ /dev/null @@ -1,32 +0,0 @@ - -extends BackBufferCopy - -# Member variables -const MOTION_SPEED = 150 - -var vsize -var dir - - -func _process(delta): - var pos = get_pos() + dir*delta*MOTION_SPEED - - if (pos.x < 0): - dir.x = abs(dir.x) - elif (pos.x > vsize.x): - dir.x = -abs(dir.x) - - if (pos.y < 0): - dir.y = abs(dir.y) - elif (pos.y > vsize.y): - dir.y = -abs(dir.y) - - set_pos(pos) - - -func _ready(): - vsize = get_viewport_rect().size - var pos = vsize*Vector2(randf(), randf()) - set_pos(pos) - dir = Vector2(randf()*2.0 - 1, randf()*2.0 - 1).normalized() - set_process(true) diff --git a/demos/2d/texscreen/lens.scn b/demos/2d/texscreen/lens.scn Binary files differdeleted file mode 100644 index 530a0b1eb0..0000000000 --- a/demos/2d/texscreen/lens.scn +++ /dev/null |