I am trying to create space invaders using kaboom js in replit ide Err

71 Views Asked by At

I'm trying to change the scene to lose state when player runs out of time or aliens invades successfully but I'm getting this error

Error: scene not found : lose

Since I cannot put everything here ,I'm putting my replit link over here

https://replit.com/@shubhambarve/ConcernedDarkorchidTypes#code/main.js

1

There are 1 best solutions below

0
P-63 Kingcobra On

I think that you have to make a scene for lose

   scene("lose", () => {
    add([
    text(args.score),
    ])
   })