From 1037e58408889936eea1db2a02c66f2698fbc24d Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Sat, 13 Oct 2018 09:42:11 -0700 Subject: [PATCH] take damage on wall hit --- src/state/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/state/index.js b/src/state/index.js index ca23346..72176d4 100644 --- a/src/state/index.js +++ b/src/state/index.js @@ -245,6 +245,10 @@ AFRAME.registerState({ victory: function (state) { state.isVictory = true; + }, + + wallhitstart: function (state) { + takeDamage(state); } },