Controls the movement of a projectile.
float m_dx
Horizontal velocity component of the projectile.
float m_dy
Vertical velocity component of the projectile.
ProjectileScript(float dx, float dy)
Constructs a ProjectileScript with specified velocity components.
void update() override
Updates the position of the projectile based on its velocity.
Base class for scripting custom behaviors in game objects.
Defines the Script class for attaching behavior to game objects.