itch.io is community of indie game creators and players

Devlogs

#3.3 Upgrades: Attack Script

GB Space Jump -2.0
A browser game made in HTML5

When the player reaches upgrade level 2, the player upgrade script enables him to shoot a laser projectile at enemies by pressing (B) or [J]. 

For this purpose, the script triggers a launch projectile function at the appropriate upgrade level, which changes the sprite of the projectile and its flight direction depending on the player's line of sight.

Like the player upgrade script, the player attack script is activated in the logic of each scene as soon as the player touches colission group one.

Download GB Space Jump -2.0
Leave a comment