Javascript 无法读取播放错误的属性,不确定这意味着什么

Javascript 无法读取播放错误的属性,不确定这意味着什么,javascript,Javascript,stack overflow的开发者们,我希望你们一切顺利 我是一名高中生,正在完成本学年的最后一个项目,遇到了一个问题 我一直在关注这个问题: TypeError:无法读取未定义的属性“play” 在Sound.play(/gamelib.js:18:16) 在Game.main[作为状态](/flappybird.js:434:12) 在gameloop(/script.js:55:10) 有两次我得到相同的错误 1) 当我运行Flappy Bird Duos时:(上面的错误)(修复了Mo

stack overflow的开发者们,我希望你们一切顺利

我是一名高中生,正在完成本学年的最后一个项目,遇到了一个问题

我一直在关注这个问题: TypeError:无法读取未定义的属性“play” 在Sound.play(/gamelib.js:18:16) 在Game.main[作为状态](/flappybird.js:434:12) 在gameloop(/script.js:55:10)

有两次我得到相同的错误

1) 当我运行Flappy Bird Duos时:(上面的错误)(修复了Mosh Feu修复) 有关如何加载的说明: 玩 飞鸟 Flappy Bird Duo's 预期产出: 按空格键时,理想情况下,两个精灵(直升机和小鸟)都会加载游戏 如期发挥作用

2) 当我运行僵尸感恩节:(上面的错误)(修复感谢Mosh Feu)


在高级游戏中谢谢你。audios.gobble是
未定义的,所以它不能玩。audios.gobble是
未定义的,所以它不能玩
Instructions on how to load:
   Play
   Zombie Thanksgiving
      Once you get through all the dialogue you would get the same error as the duo's issue
      When you press space ideally both sprites (turkey and zombie) would bounce into each other and 
      all around the screen colliding and health decreasing and the crosshair would follow the mouse 
      and when you left-click whatever sprite you were hovering over would lose health
      [Zombie Thanksgiving in a separate file][3]