diff options
Diffstat (limited to 'src/logic.rb')
| -rw-r--r-- | src/logic.rb | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/logic.rb b/src/logic.rb index 2af10d8..3ed886f 100644 --- a/src/logic.rb +++ b/src/logic.rb @@ -77,6 +77,8 @@ FECS::Cmp.new('EndGoal', :rec) FECS::Cmp::ScissorTime.new(time: 0) EndGoal = FECS::Cmp::EndGoal.new Input = FECS::Cmp::Input.new +MapTexture = FECS::Cmp::Sprite.new +OverhangTexture = FECS::Cmp::OverhangTexture.new OrcTextures = [ Rl::Texture.new('./assets/orc_.png'), @@ -126,18 +128,6 @@ end PlayerTileset.frames = PlayerAnimations[:standing_right] -FECS::Cmp::Sprite.new( - texture: Rl::Texture.new('./assets/mapinit.png'), - source_rec: Rl::Rectangle.new(0,0,448,336), - dest_rec: Rl::Rectangle.new(0,0,448*2,336*2) -) - -FECS::Cmp::OverhangTexture.new( - texture: Rl::Texture.new('./assets/mapinit-overhang.png'), - source_rec: Rl::Rectangle.new(0,0,140,220), - dest_rec: Rl::Rectangle.new(0,0,140*2,220*2) -) - =begin MovingHitbox1 = FECS::Cmp::Hitbox.new( rec: Rl::Rectangle.new(150,50,35,150), @@ -746,7 +736,7 @@ FECS::Scn::Play.add( end ) -CurrentLevel.level = 0 +CurrentLevel.level = 1 FelECS::Order.sort( FECS::Sys::PlayerInput, |
