summaryrefslogtreecommitdiffhomepage
path: root/app/components
diff options
context:
space:
mode:
authorArnold <[email protected]>2021-12-26 18:39:15 -0500
committerGitHub <[email protected]>2021-12-26 18:39:15 -0500
commitb7dea8016b5b1328808e28b76cc12343907de63e (patch)
tree5339c23bbde03c4d6c8c79d96b2033ab9e838ec0 /app/components
parentf70283e5ad5f5a5744ca0695a184f72f88803aca (diff)
downloadSteelWings-b7dea8016b5b1328808e28b76cc12343907de63e.tar.gz
SteelWings-b7dea8016b5b1328808e28b76cc12343907de63e.zip
implement ai randomizer, gameover screen, and other bug fixes
* Cleaned up factory. Fixed most bugs with death(last bug should be with move camera). * check if player entity is nil before shooting or moving camera * implement ai randomizer * separate button click detection to new system * implement gameover screen with button to return to menu * use reverse_each instead of cloning Co-authored-by: realtradam <[email protected]>
Diffstat (limited to 'app/components')
-rw-r--r--app/components/debug/singleton_debug_vector_arrow.rb1
-rw-r--r--app/components/singleton_ai_timer.rb5
-rw-r--r--app/components/singleton_move_camera.rb3
-rw-r--r--app/components/singleton_random_ai_pick.rb2
4 files changed, 11 insertions, 0 deletions
diff --git a/app/components/debug/singleton_debug_vector_arrow.rb b/app/components/debug/singleton_debug_vector_arrow.rb
index f06cd27..d6d6de9 100644
--- a/app/components/debug/singleton_debug_vector_arrow.rb
+++ b/app/components/debug/singleton_debug_vector_arrow.rb
@@ -1,3 +1,4 @@
FF::Cmp.new('SingletonDebugVectorArrow',
singleton: true,
length: 1)
+FF::Cmp::SingletonDebugVectorArrow.new(length: 5)
diff --git a/app/components/singleton_ai_timer.rb b/app/components/singleton_ai_timer.rb
new file mode 100644
index 0000000..ce14380
--- /dev/null
+++ b/app/components/singleton_ai_timer.rb
@@ -0,0 +1,5 @@
+FF::Cmp.new('SingletonAITimer',
+ timer: 0,
+ interval: 200,
+ singleton: true)
+FF::Cmp::SingletonAITimer.new
diff --git a/app/components/singleton_move_camera.rb b/app/components/singleton_move_camera.rb
new file mode 100644
index 0000000..88cd8e1
--- /dev/null
+++ b/app/components/singleton_move_camera.rb
@@ -0,0 +1,3 @@
+FF::Cmp.new('SingletonMoveCamera', singleton: true)
+
+FF::Cmp::SingletonMoveCamera.new
diff --git a/app/components/singleton_random_ai_pick.rb b/app/components/singleton_random_ai_pick.rb
new file mode 100644
index 0000000..19f2ca8
--- /dev/null
+++ b/app/components/singleton_random_ai_pick.rb
@@ -0,0 +1,2 @@
+FF::Cmp.new('SingletonRandomAIPick', singleton: true)
+FF::Cmp::SingletonRandomAIPick.new