Prev: 6462 Up: Map Next: 649E
6478: Handle collision with fuel depot
Used by the routine at check_missile_vs_objects.
Handles both missile hits and plane refueling at fuel depots.
If in GAMEPLAY_MODE_REFUEL: marks the depot slot as empty and calls add_fuel to add fuel to the player's tank.
Otherwise (missile hit): awards POINTS_FUEL and spawns 4 explosion fragments vertically (fuel depot is the tallest object).
hit_fuel 6478 LD A,($5F68) Check if in REFUEL mode; if so, jump to refuel_from_depot.
647B CP $06
647D JP Z,refuel_from_depot
Missile hit on fuel depot - destroy it.
6480 LD A,$08 Award POINTS_FUEL to player.
6482 CALL add_points
6485 LD BC,($5F8B) Load coordinates from collision_coordinates and spawn explosion 1.
6489 CALL spawn_explosion_fragment
648C LD A,B Move Y+8 and spawn explosion 2.
648D ADD A,$08
648F LD B,A
6490 CALL spawn_explosion_fragment
6493 LD A,B Move Y+8 and spawn explosion 3.
6494 ADD A,$08
6496 LD B,A
6497 CALL spawn_explosion_fragment
649A INC B Move Y+1 and spawn explosion 4.
649B CALL spawn_explosion_fragment
Prev: 6462 Up: Map Next: 649E