Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
e895a6256e | |||
a30b7119ad | |||
3b49a1f948 | |||
116d900cb8 | |||
ceac23fb00 | |||
f25b89aa52 | |||
574c18499c | |||
4d48ebc46a |
@ -7,8 +7,6 @@ const MIN_JUMP_DURATION = 0.01
|
||||
const GRAVITY = 980
|
||||
const FALL_GRAVITY_MULTIPLIER = 2
|
||||
|
||||
var isFacingRight: bool
|
||||
|
||||
var jump_timer = 0.0
|
||||
var is_jumping = false
|
||||
|
||||
@ -38,19 +36,6 @@ func _physics_process(delta):
|
||||
|
||||
# Handle horizontal movement
|
||||
var direction = Input.get_axis("move_left", "move_right")
|
||||
|
||||
if direction < 0:
|
||||
isFacingRight = false
|
||||
elif direction > 0:
|
||||
isFacingRight = true
|
||||
|
||||
if isFacingRight:
|
||||
$Marker2D.scale.x = 1
|
||||
$AnimatedSprite2D.scale.x = 1 * 0.2
|
||||
else:
|
||||
$Marker2D.scale.x = -1
|
||||
$AnimatedSprite2D.scale.x = -1 * 0.2
|
||||
|
||||
if direction:
|
||||
velocity.x = direction * SPEED
|
||||
else:
|
||||
|
@ -11,7 +11,10 @@ config_version=5
|
||||
[application]
|
||||
|
||||
config/name="lakewood"
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
run/main_scene="res://world.tscn"
|
||||
>>>>>>> f25b89aa52bc76423cd04483e3b0644fe3df1dc6
|
||||
config/features=PackedStringArray("4.3", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user