summaryrefslogtreecommitdiffhomepage
path: root/app/lib/test.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2021-05-20 05:04:21 -0400
committerrealtradam <[email protected]>2021-05-20 05:04:21 -0400
commitf97a9ca95e464e728bba9337b579bc380c33bc7d (patch)
treedd45a6e615e6e873cee15cb41daaca24b3357ea6 /app/lib/test.rb
parentfee80f42f0889f2d484e25f4366f14b68c65ba70 (diff)
downloadtypemon-code-f97a9ca95e464e728bba9337b579bc380c33bc7d.tar.gz
typemon-code-f97a9ca95e464e728bba9337b579bc380c33bc7d.zip
implemented hitboxes
Diffstat (limited to 'app/lib/test.rb')
-rw-r--r--app/lib/test.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/lib/test.rb b/app/lib/test.rb
new file mode 100644
index 0000000..13fd401
--- /dev/null
+++ b/app/lib/test.rb
@@ -0,0 +1,18 @@
+require_relative './entity_manager.rb'
+require_relative './component_manager.rb'
+require_relative './system_manager.rb'
+
+move = '0001'.to_i(2)
+base = '0010'.to_i(2)
+both = '0011'.to_i(2)
+Entity.new(move)
+Entity.new(base)
+Entity.new(both)
+
+3.times do
+ Systems.constants.each do |constant|
+ puts "|----#{constant.to_s.upcase}----|"
+ Systems::const_get(constant).run
+ end
+ #ECS::Entity.destroy_entity(ECS::Entity.all.last.id) unless ECS::Entity.all.empty?
+end