| Prev: 6453 | Up: Map | Next: 6478 |
6462: Handle missile hit on balloon
|
Used by the routine at check_missile_vs_objects.
|
||||
|
Awards POINTS_BALLOON and spawns 2 explosion fragments vertically (balloon is taller than other objects).
|
||||
| hit_balloon | 6462 | LD A,$06 | Award POINTS_BALLOON to player. | |
| 6464 | CALL add_points | |||
| 6467 | LD BC,($5F8B) | Load coordinates from collision_coordinates and spawn explosion 1 (top). | ||
| 646B | CALL spawn_explosion_fragment | |||
| 646E | LD A,B | Move Y+8 and spawn explosion 2 (bottom). | ||
| 646F | ADD A,$08 | |||
| 6471 | LD B,A | |||
| 6472 | CALL spawn_explosion_fragment | |||
| 6475 | JP process_collision_hit | Finalize collision. | ||
| Prev: 6453 | Up: Map | Next: 6478 |