mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-25 17:00:54 +00:00
Fix Original Lakitu throw not going straight up (#663)
This commit is contained in:
committed by
GitHub
parent
fcdf729e23
commit
9f19571475
@@ -12,8 +12,6 @@ var lakitu_point := Vector2.ZERO
|
||||
|
||||
const BLOCK_DISTANCE := 64
|
||||
|
||||
static var fixed_throw := true
|
||||
|
||||
var player: Player = null
|
||||
|
||||
var retreat := false
|
||||
@@ -28,7 +26,6 @@ func _ready() -> void:
|
||||
can_enter = false
|
||||
$ThrowTimer.start()
|
||||
lakitu_point = to_local(global_position)
|
||||
fixed_throw = Settings.file.difficulty.lakitu_style == 1
|
||||
get_parent().move_child(self, 0)
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
@@ -80,7 +77,7 @@ func throw_spiny() -> void:
|
||||
node.set("in_egg", true)
|
||||
node.global_position = $Cloud/Sprite.global_position
|
||||
node.velocity = Vector2(0, -150)
|
||||
if fixed_throw:
|
||||
if Settings.file.difficulty.lakitu_style == 1:
|
||||
node.velocity.x = 50 * (sign(player.global_position.x - global_position.x))
|
||||
node.set("direction", sign(node.velocity.x))
|
||||
add_sibling(node)
|
||||
|
||||
Reference in New Issue
Block a user