diff options
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.scn | bin | 2738 -> 0 bytes |
5 files changed, 0 insertions, 45 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 6e660572d6..0000000000 --- a/demos/2d/motion/engine.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[application] - -name="Motion Test" -main_scene="res://motion.scn" -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.scn b/demos/2d/motion/motion.scn Binary files differdeleted file mode 100644 index 6e19356674..0000000000 --- a/demos/2d/motion/motion.scn +++ /dev/null |