mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-23 07:58:09 +00:00
added the game
This commit is contained in:
8
Scripts/Classes/Entities/Enemies/CannonBall.gd
Normal file
8
Scripts/Classes/Entities/Enemies/CannonBall.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
extends Enemy
|
||||
|
||||
var direction_vector := Vector2.UP
|
||||
|
||||
const MOVE_SPEED := 70.0
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
global_position += direction_vector * MOVE_SPEED * delta
|
Reference in New Issue
Block a user