diff options
| author | arngo <[email protected]> | 2022-01-23 02:11:54 -0500 |
|---|---|---|
| committer | arngo <[email protected]> | 2022-01-23 02:11:54 -0500 |
| commit | 3d141be357e0e3fb5bfd75b1f79e4e6a34e8ccb5 (patch) | |
| tree | 0f02fac13de4f6712a62b7065d5d4942c08b4a08 /src/components/player.rb | |
| parent | 7a34805a0dbb1238c742263438f01408fcf3c7f0 (diff) | |
| download | orc-arena-of-time-3d141be357e0e3fb5bfd75b1f79e4e6a34e8ccb5.tar.gz orc-arena-of-time-3d141be357e0e3fb5bfd75b1f79e4e6a34e8ccb5.zip | |
rect -> rec, test drawing rectangles
Diffstat (limited to 'src/components/player.rb')
| -rw-r--r-- | src/components/player.rb | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/components/player.rb b/src/components/player.rb deleted file mode 100644 index 3de1b7a..0000000 --- a/src/components/player.rb +++ /dev/null @@ -1,34 +0,0 @@ -FECS::Cmp.new('Player') -FECS::Cmp.new('Velocity', x: 0, y: 0) -FECS::Cmp.new('Position', x: 0, y: 0) -FECS::Cmp.new('Movement', deceleration: 3, acceleration: 8, max_speed: 15) -FECS::Cmp.new('Sprite', - :texture, - :origin, - :source_rect, - :dest_rect, - :rotation, - :tint) -FECS::Cmp.new('Hp', value: 0) - -@player = FECS::Ent.new( - FECS::Cmp::Player.new, - FECS::Cmp::Position.new, - FECS::Cmp::Velocity.new, - FECS::Cmp::Sprite.new( - texture: Rl::Texture.new('./assets/lancelot_.png'), - source_rect: Rl::Rectangle.new(0,0,24,24), - dest_rect: Rl::Rectangle.new(0,0,48,48), - origin: Rl::Vector2.new(0,0), - tint: Rl::Color.new(255,255,255,255), - rotation: 0 - ), - FECS::Cmp::Movement.new( - deceleration: 1.1, - acceleration: 1.5, - max_speed: 900, - ), -) - - - |
