Currently, this demonstrates two kinds of player nodes:
Area2D
and manual position changes, the naive approach that will "teleport" the player to the destination, clipping through walls;KineticBody2D
andmove_and_collide
to make the physics engine calculate collisions from the current position up to the destination.
You can
Public domain. See the LICENSE file.