diff options
Diffstat (limited to 'demos/2d/dynamic_collision_shapes')
-rw-r--r-- | demos/2d/dynamic_collision_shapes/ball.gd | 17 | ||||
-rw-r--r-- | demos/2d/dynamic_collision_shapes/ball.png | bin | 321 -> 0 bytes | |||
-rw-r--r-- | demos/2d/dynamic_collision_shapes/ball.scn | bin | 1857 -> 0 bytes | |||
-rw-r--r-- | demos/2d/dynamic_collision_shapes/box.png | bin | 253 -> 0 bytes | |||
-rw-r--r-- | demos/2d/dynamic_collision_shapes/circle.png | bin | 889 -> 0 bytes | |||
-rw-r--r-- | demos/2d/dynamic_collision_shapes/dynamic_colobjs.gd | 19 | ||||
-rw-r--r-- | demos/2d/dynamic_collision_shapes/dynamic_colobjs.scn | bin | 4399 -> 0 bytes | |||
-rw-r--r-- | demos/2d/dynamic_collision_shapes/engine.cfg | 5 | ||||
-rw-r--r-- | demos/2d/dynamic_collision_shapes/icon.png | bin | 1563 -> 0 bytes | |||
-rw-r--r-- | demos/2d/dynamic_collision_shapes/poly.png | bin | 1638 -> 0 bytes |
10 files changed, 0 insertions, 41 deletions
diff --git a/demos/2d/dynamic_collision_shapes/ball.gd b/demos/2d/dynamic_collision_shapes/ball.gd deleted file mode 100644 index 169079ea46..0000000000 --- a/demos/2d/dynamic_collision_shapes/ball.gd +++ /dev/null @@ -1,17 +0,0 @@ - -extends RigidBody2D - -# Member variables -var timeout = 5 - - -func _process(delta): - timeout -= delta - if (timeout < 1): - set_opacity(timeout) - if (timeout < 0): - queue_free() - - -func _ready(): - set_process(true) diff --git a/demos/2d/dynamic_collision_shapes/ball.png b/demos/2d/dynamic_collision_shapes/ball.png Binary files differdeleted file mode 100644 index b7cf71da29..0000000000 --- a/demos/2d/dynamic_collision_shapes/ball.png +++ /dev/null diff --git a/demos/2d/dynamic_collision_shapes/ball.scn b/demos/2d/dynamic_collision_shapes/ball.scn Binary files differdeleted file mode 100644 index 51a91d5bc0..0000000000 --- a/demos/2d/dynamic_collision_shapes/ball.scn +++ /dev/null diff --git a/demos/2d/dynamic_collision_shapes/box.png b/demos/2d/dynamic_collision_shapes/box.png Binary files differdeleted file mode 100644 index f29b83ce38..0000000000 --- a/demos/2d/dynamic_collision_shapes/box.png +++ /dev/null diff --git a/demos/2d/dynamic_collision_shapes/circle.png b/demos/2d/dynamic_collision_shapes/circle.png Binary files differdeleted file mode 100644 index 9fdfa550b1..0000000000 --- a/demos/2d/dynamic_collision_shapes/circle.png +++ /dev/null diff --git a/demos/2d/dynamic_collision_shapes/dynamic_colobjs.gd b/demos/2d/dynamic_collision_shapes/dynamic_colobjs.gd deleted file mode 100644 index 25db51642b..0000000000 --- a/demos/2d/dynamic_collision_shapes/dynamic_colobjs.gd +++ /dev/null @@ -1,19 +0,0 @@ - -extends Node2D - -# Member variables -const EMIT_INTERVAL = 0.1 -var timeout = EMIT_INTERVAL - - -func _process(delta): - timeout -= delta - if (timeout < 0): - timeout = EMIT_INTERVAL - var ball = preload("res://ball.scn").instance() - ball.set_pos(Vector2(randf()*get_viewport_rect().size.x, 0)) - add_child(ball) - - -func _ready(): - set_process(true) diff --git a/demos/2d/dynamic_collision_shapes/dynamic_colobjs.scn b/demos/2d/dynamic_collision_shapes/dynamic_colobjs.scn Binary files differdeleted file mode 100644 index 6d17e2209f..0000000000 --- a/demos/2d/dynamic_collision_shapes/dynamic_colobjs.scn +++ /dev/null diff --git a/demos/2d/dynamic_collision_shapes/engine.cfg b/demos/2d/dynamic_collision_shapes/engine.cfg deleted file mode 100644 index 76a074f346..0000000000 --- a/demos/2d/dynamic_collision_shapes/engine.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[application] - -name="Run-Time CollisionShape" -main_scene="res://dynamic_colobjs.scn" -icon="res://icon.png" diff --git a/demos/2d/dynamic_collision_shapes/icon.png b/demos/2d/dynamic_collision_shapes/icon.png Binary files differdeleted file mode 100644 index b47506d7c8..0000000000 --- a/demos/2d/dynamic_collision_shapes/icon.png +++ /dev/null diff --git a/demos/2d/dynamic_collision_shapes/poly.png b/demos/2d/dynamic_collision_shapes/poly.png Binary files differdeleted file mode 100644 index 49ed55cc7d..0000000000 --- a/demos/2d/dynamic_collision_shapes/poly.png +++ /dev/null |