From c7d45ec085086ab86192a7890b9622320d57b89d Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 3 Jun 2016 10:30:38 -0300 Subject: Removed demos they go to their own project now --- demos/2d/motion/motion.gd | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 demos/2d/motion/motion.gd (limited to 'demos/2d/motion/motion.gd') 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) -- cgit v1.2.3