summaryrefslogtreecommitdiffhomepage
path: root/components/03_player_control.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2021-05-26 07:41:45 -0400
committerrealtradam <[email protected]>2021-05-26 07:41:45 -0400
commit1531c393a0b8b7c7a0451820fe3905b0b4e71079 (patch)
tree2133bf8614d8cecab84b5fae37561710f9c11375 /components/03_player_control.rb
parent7bec71db2680e0503f39c31047f5f90ca89433df (diff)
downloadFelECS-1531c393a0b8b7c7a0451820fe3905b0b4e71079.tar.gz
FelECS-1531c393a0b8b7c7a0451820fe3905b0b4e71079.zip
dynamic components can be created
Diffstat (limited to 'components/03_player_control.rb')
-rw-r--r--components/03_player_control.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/03_player_control.rb b/components/03_player_control.rb
index d5d8f7a..f48b155 100644
--- a/components/03_player_control.rb
+++ b/components/03_player_control.rb
@@ -1,3 +1,7 @@
+
+FelFlame::Components.new :PlayerControl, north: 'up', south: 'down', east: 'right',
+ west: 'left', interact: 'space', menu: 'enter'
+=begin
class Components
# Gives control(keyboard or otherwise) over an object
class PlayerControl < Helper::BaseComponent
@@ -19,3 +23,4 @@ class Components
end
end
end
+=end