diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-03 10:30:38 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-03 10:30:38 -0300 |
commit | c7d45ec085086ab86192a7890b9622320d57b89d (patch) | |
tree | 0a764a6a2b7bded960a652c81a4b5a6815dd3c31 /demos/2d/motion | |
parent | f9af57f3bdb16e015ee10b979fe18cf2195077f9 (diff) |
Removed demos
they go to their own project now
Diffstat (limited to 'demos/2d/motion')
-rw-r--r-- | demos/2d/motion/car.png | bin | 2086 -> 0 bytes | |||
-rw-r--r-- | demos/2d/motion/engine.cfg | 12 | ||||
-rw-r--r-- | demos/2d/motion/icon.png | bin | 2621 -> 0 bytes | |||
-rw-r--r-- | demos/2d/motion/motion.gd | 33 | ||||
-rw-r--r-- | demos/2d/motion/motion.tscn | 135 |
5 files changed, 0 insertions, 180 deletions
diff --git a/demos/2d/motion/car.png b/demos/2d/motion/car.png Binary files differdeleted file mode 100644 index 7ea973ceeb..0000000000 --- a/demos/2d/motion/car.png +++ /dev/null diff --git a/demos/2d/motion/engine.cfg b/demos/2d/motion/engine.cfg deleted file mode 100644 index 5395398e16..0000000000 --- a/demos/2d/motion/engine.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[application] - -name="Motion Test" -main_scene="res://motion.tscn" -icon="res://icon.png" - -[display] - -width=800 -height=600 -stretch_mode="2d" -stretch_aspect="keep" diff --git a/demos/2d/motion/icon.png b/demos/2d/motion/icon.png Binary files differdeleted file mode 100644 index 9e64961d3c..0000000000 --- a/demos/2d/motion/icon.png +++ /dev/null diff --git a/demos/2d/motion/motion.gd b/demos/2d/motion/motion.gd deleted file mode 100644 index f9bbd6f90d..0000000000 --- a/demos/2d/motion/motion.gd +++ /dev/null @@ -1,33 +0,0 @@ - -extends Sprite - -# Member variables -const BEGIN = -113 -const END = 907 -const TIME = 5.0 # Seconds -const SPEED = (END - BEGIN)/TIME - -export var use_idle = true - - -func _process(delta): - var ofs = get_pos() - ofs.x += delta*SPEED - if (ofs.x > END): - ofs.x = BEGIN - set_pos(ofs) - - -func _fixed_process(delta): - var ofs = get_pos() - ofs.x += delta*SPEED - if (ofs.x > END): - ofs.x = BEGIN - set_pos(ofs) - - -func _ready(): - if (use_idle): - set_process(true) - else: - set_fixed_process(true) diff --git a/demos/2d/motion/motion.tscn b/demos/2d/motion/motion.tscn deleted file mode 100644 index 920ee55423..0000000000 --- a/demos/2d/motion/motion.tscn +++ /dev/null @@ -1,135 +0,0 @@ -[gd_scene load_steps=4 format=1] - -[ext_resource path="res://car.png" type="Texture" id=1] -[ext_resource path="res://motion.gd" type="Script" id=2] - -[sub_resource type="Animation" id=1] - -resource/name = "motion" -length = 5.0 -loop = true -step = 0.1 -tracks/0/type = "value" -tracks/0/path = NodePath(".:transform/pos") -tracks/0/interp = 1 -tracks/0/keys = { "cont":true, "times":FloatArray( 0, 5 ), "transitions":FloatArray( 1, 1 ), "values":[ Vector2( -113, 154 ), Vector2( 907, 154 ) ] } - -[node name="Node2D" type="Node2D"] - -[node name="idle" type="Node2D" parent="."] - -[node name="car" type="Sprite" parent="idle"] - -transform/pos = Vector2( -113, 154 ) -texture = ExtResource( 1 ) - -[node name="anim" type="AnimationPlayer" parent="idle/car"] - -playback/process_mode = 1 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/motion = SubResource( 1 ) -playback/active = true -playback/speed = 1.0 -blend_times = [ ] -autoplay = "motion" - -[node name="Label" type="Label" parent="idle"] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 27.0 -margin/top = 80.0 -margin/right = 104.0 -margin/bottom = 93.0 -text = "Idle Process Animation" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="fixed" type="Node2D" parent="."] - -transform/pos = Vector2( 0, 106 ) - -[node name="car" type="Sprite" parent="fixed"] - -transform/pos = Vector2( -113, 154 ) -texture = ExtResource( 1 ) - -[node name="anim" type="AnimationPlayer" parent="fixed/car"] - -playback/process_mode = 0 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/motion = SubResource( 1 ) -playback/active = true -playback/speed = 1.0 -blend_times = [ ] -autoplay = "motion" - -[node name="Label1" type="Label" parent="fixed"] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 27.0 -margin/top = 80.0 -margin/right = 104.0 -margin/bottom = 93.0 -text = "Fixed Process Animation" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="code_idle" type="Node2D" parent="."] - -transform/pos = Vector2( 0, 215 ) - -[node name="car" type="Sprite" parent="code_idle"] - -transform/pos = Vector2( -113, 154 ) -texture = ExtResource( 1 ) -script/script = ExtResource( 2 ) -use_idle = true - -[node name="Label1" type="Label" parent="code_idle"] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 27.0 -margin/top = 80.0 -margin/right = 104.0 -margin/bottom = 93.0 -text = "Idle Process Code" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="code_fixed" type="Node2D" parent="."] - -transform/pos = Vector2( 0, 324 ) - -[node name="car" type="Sprite" parent="code_fixed"] - -transform/pos = Vector2( -113, 154 ) -texture = ExtResource( 1 ) -script/script = ExtResource( 2 ) -use_idle = false - -[node name="Label1" type="Label" parent="code_fixed"] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 27.0 -margin/top = 80.0 -margin/right = 104.0 -margin/bottom = 93.0 -text = "Fixed Process Code" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - - |