summaryrefslogtreecommitdiff
path: root/demos/2d/texscreen
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-03 10:30:38 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-03 10:30:38 -0300
commitc7d45ec085086ab86192a7890b9622320d57b89d (patch)
tree0a764a6a2b7bded960a652c81a4b5a6815dd3c31 /demos/2d/texscreen
parentf9af57f3bdb16e015ee10b979fe18cf2195077f9 (diff)
Removed demos
they go to their own project now
Diffstat (limited to 'demos/2d/texscreen')
-rw-r--r--demos/2d/texscreen/OpenCV_Chessboard.pngbin44884 -> 0 bytes
-rw-r--r--demos/2d/texscreen/bubble.pngbin18619 -> 0 bytes
-rw-r--r--demos/2d/texscreen/bubbles.gd11
-rw-r--r--demos/2d/texscreen/bubbles.tscn32
-rw-r--r--demos/2d/texscreen/burano.pngbin974437 -> 0 bytes
-rw-r--r--demos/2d/texscreen/engine.cfg12
-rw-r--r--demos/2d/texscreen/icon.pngbin9245 -> 0 bytes
-rw-r--r--demos/2d/texscreen/lens.gd32
-rw-r--r--demos/2d/texscreen/lens.tscn29
9 files changed, 0 insertions, 116 deletions
diff --git a/demos/2d/texscreen/OpenCV_Chessboard.png b/demos/2d/texscreen/OpenCV_Chessboard.png
deleted file mode 100644
index 31b7f8ccd8..0000000000
--- a/demos/2d/texscreen/OpenCV_Chessboard.png
+++ /dev/null
Binary files differ
diff --git a/demos/2d/texscreen/bubble.png b/demos/2d/texscreen/bubble.png
deleted file mode 100644
index 021abba601..0000000000
--- a/demos/2d/texscreen/bubble.png
+++ /dev/null
Binary files differ
diff --git a/demos/2d/texscreen/bubbles.gd b/demos/2d/texscreen/bubbles.gd
deleted file mode 100644
index c0c7d892e6..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.tscn").instance()
- add_child(bubble)
diff --git a/demos/2d/texscreen/bubbles.tscn b/demos/2d/texscreen/bubbles.tscn
deleted file mode 100644
index 72b7874b92..0000000000
--- a/demos/2d/texscreen/bubbles.tscn
+++ /dev/null
@@ -1,32 +0,0 @@
-[gd_scene load_steps=3 format=1]
-
-[ext_resource path="res://bubbles.gd" type="Script" id=1]
-[ext_resource path="res://burano.png" type="Texture" id=2]
-
-[node name="texscreen_demo" type="Control"]
-
-anchor/right = 1
-anchor/bottom = 1
-focus/ignore_mouse = false
-focus/stop_mouse = true
-size_flags/horizontal = 2
-size_flags/vertical = 2
-margin/left = 0.0
-margin/top = 0.0
-margin/right = 0.0
-margin/bottom = 0.0
-script/script = ExtResource( 1 )
-
-[node name="burano" type="TextureFrame" parent="."]
-
-focus/ignore_mouse = true
-focus/stop_mouse = true
-size_flags/horizontal = 2
-size_flags/vertical = 2
-margin/left = 0.0
-margin/top = 0.0
-margin/right = 800.0
-margin/bottom = 600.0
-texture = ExtResource( 2 )
-
-
diff --git a/demos/2d/texscreen/burano.png b/demos/2d/texscreen/burano.png
deleted file mode 100644
index 6eec09d585..0000000000
--- a/demos/2d/texscreen/burano.png
+++ /dev/null
Binary files differ
diff --git a/demos/2d/texscreen/engine.cfg b/demos/2d/texscreen/engine.cfg
deleted file mode 100644
index 0a3f084270..0000000000
--- a/demos/2d/texscreen/engine.cfg
+++ /dev/null
@@ -1,12 +0,0 @@
-[application]
-
-name="Glass Bubbles (Texscreen)"
-main_scene="res://bubbles.tscn"
-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
deleted file mode 100644
index d74d025ced..0000000000
--- a/demos/2d/texscreen/icon.png
+++ /dev/null
Binary files differ
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.tscn b/demos/2d/texscreen/lens.tscn
deleted file mode 100644
index 7f449e46ae..0000000000
--- a/demos/2d/texscreen/lens.tscn
+++ /dev/null
@@ -1,29 +0,0 @@
-[gd_scene load_steps=5 format=1]
-
-[ext_resource path="res://lens.gd" type="Script" id=1]
-[ext_resource path="res://bubble.png" type="Texture" id=2]
-
-[sub_resource type="CanvasItemShader" id=1]
-
-_code = { "fragment":"vec4 normal = tex(TEXTURE,UV);\nvec2 offset = normal.xy * 2.0 - vec2(1.0);\nCOLOR.rgb=texscreen(SCREEN_UV+offset*0.03);\nCOLOR.a=normal.a;\nCOLOR.rgb*=vec3(1.0,0.8,0.7);\n", "fragment_ofs":0, "light":"", "light_ofs":0, "vertex":"", "vertex_ofs":0 }
-
-[sub_resource type="CanvasItemMaterial" id=2]
-
-shader/shader = SubResource( 1 )
-shader/shading_mode = 0
-
-[node name="glass" type="BackBufferCopy"]
-
-transform/pos = Vector2( 482.908, 346.807 )
-transform/scale = Vector2( 1.31289, 1.34009 )
-copy_mode = 1
-rect = Rect2( -100, -100, 200, 200 )
-script/script = ExtResource( 1 )
-
-[node name="lens" type="Sprite" parent="."]
-
-material/material = SubResource( 2 )
-transform/pos = Vector2( 1.6427, -2.90363 )
-texture = ExtResource( 2 )
-
-