diff options
Diffstat (limited to 'demos/2d/kinematic_col')
-rw-r--r-- | demos/2d/kinematic_col/colworld.scn | bin | 4073 -> 0 bytes | |||
-rw-r--r-- | demos/2d/kinematic_col/engine.cfg | 12 | ||||
-rw-r--r-- | demos/2d/kinematic_col/icon.png | bin | 1426 -> 0 bytes | |||
-rw-r--r-- | demos/2d/kinematic_col/obstacle.png | bin | 453 -> 0 bytes | |||
-rw-r--r-- | demos/2d/kinematic_col/player.gd | 31 | ||||
-rw-r--r-- | demos/2d/kinematic_col/player.png | bin | 502 -> 0 bytes | |||
-rw-r--r-- | demos/2d/kinematic_col/player.scn | bin | 1625 -> 0 bytes |
7 files changed, 0 insertions, 43 deletions
diff --git a/demos/2d/kinematic_col/colworld.scn b/demos/2d/kinematic_col/colworld.scn Binary files differdeleted file mode 100644 index 06607b7efd..0000000000 --- a/demos/2d/kinematic_col/colworld.scn +++ /dev/null diff --git a/demos/2d/kinematic_col/engine.cfg b/demos/2d/kinematic_col/engine.cfg deleted file mode 100644 index 654288a9bd..0000000000 --- a/demos/2d/kinematic_col/engine.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[application] - -name="Kinematic Collision" -main_scene="res://colworld.scn" -icon="res://icon.png" - -[input] - -move_up=[key(Up)] -move_left=[key(Left)] -move_right=[key(Right)] -move_bottom=[key(Down)] diff --git a/demos/2d/kinematic_col/icon.png b/demos/2d/kinematic_col/icon.png Binary files differdeleted file mode 100644 index 2774de6110..0000000000 --- a/demos/2d/kinematic_col/icon.png +++ /dev/null diff --git a/demos/2d/kinematic_col/obstacle.png b/demos/2d/kinematic_col/obstacle.png Binary files differdeleted file mode 100644 index 693f115a98..0000000000 --- a/demos/2d/kinematic_col/obstacle.png +++ /dev/null diff --git a/demos/2d/kinematic_col/player.gd b/demos/2d/kinematic_col/player.gd deleted file mode 100644 index ce09e1509e..0000000000 --- a/demos/2d/kinematic_col/player.gd +++ /dev/null @@ -1,31 +0,0 @@ - -extends KinematicBody2D - -# This is a simple collision demo showing how -# the kinematic controller works. -# move() will allow to move the node, and will -# always move it to a non-colliding spot, -# as long as it starts from a non-colliding spot too. - -# Member variables -const MOTION_SPEED = 160 # Pixels/second - - -func _fixed_process(delta): - var motion = Vector2() - - if (Input.is_action_pressed("move_up")): - motion += Vector2(0, -1) - if (Input.is_action_pressed("move_bottom")): - motion += Vector2(0, 1) - if (Input.is_action_pressed("move_left")): - motion += Vector2(-1, 0) - if (Input.is_action_pressed("move_right")): - motion += Vector2(1, 0) - - motion = motion.normalized()*MOTION_SPEED*delta - move(motion) - - -func _ready(): - set_fixed_process(true) diff --git a/demos/2d/kinematic_col/player.png b/demos/2d/kinematic_col/player.png Binary files differdeleted file mode 100644 index 0e7d843899..0000000000 --- a/demos/2d/kinematic_col/player.png +++ /dev/null diff --git a/demos/2d/kinematic_col/player.scn b/demos/2d/kinematic_col/player.scn Binary files differdeleted file mode 100644 index 28ad204472..0000000000 --- a/demos/2d/kinematic_col/player.scn +++ /dev/null |