From 1f38730c969641e8cf43f493c293b56b03b8ca0e Mon Sep 17 00:00:00 2001 From: Ethan Adams Date: Tue, 25 Jun 2024 15:40:17 -0400 Subject: [PATCH] Added normal parameter for easier knockback implemention script-side Moved scripts to more descriptive location --- Resources/scenes/debugScene.xml | 6 ++-- Resources/scripts/.grunt_behaviour.lua.swp | Bin 12288 -> 0 bytes .../scripts/{ => ai}/grunt_behaviour.lua | 0 .../scripts/{ => ai}/scared_behaviour.lua | 0 .../scripts/{ => weapons}/shotgun_script.lua | 16 +++++---- Resources/weapons/bubblegun.xml | 2 +- .../include/gameplay/weapons/weapon.h | 3 +- YuppleMayham/include/utility/events.h | 5 ++- YuppleMayham/src/gameplay/physics.cpp | 10 +++--- YuppleMayham/src/gameplay/scene.cpp | 3 +- YuppleMayham/src/gameplay/weapons/weapon.cpp | 4 +-- YuppleMayham/src/utility/script.cpp | 33 ++++++++++++++++-- 12 files changed, 61 insertions(+), 21 deletions(-) delete mode 100644 Resources/scripts/.grunt_behaviour.lua.swp rename Resources/scripts/{ => ai}/grunt_behaviour.lua (100%) rename Resources/scripts/{ => ai}/scared_behaviour.lua (100%) rename Resources/scripts/{ => weapons}/shotgun_script.lua (52%) diff --git a/Resources/scenes/debugScene.xml b/Resources/scenes/debugScene.xml index 456c249..62da31c 100644 --- a/Resources/scenes/debugScene.xml +++ b/Resources/scenes/debugScene.xml @@ -39,15 +39,15 @@ -