This commit is contained in:
mitteneer 2024-07-21 23:09:03 -04:00
parent 68bb75644b
commit 28dc209134
14 changed files with 41 additions and 35 deletions

View file

@ -88,7 +88,7 @@ pub fn main() void {
for (&aliens) |*alien| {
// *** Zap the alien with the heat ray here! ***
???.zap(???);
heat_ray.zap(alien);
// If the alien's health is still above 0, it's still alive.
if (alien.health > 0) aliens_alive += 1;