I implemented everything in my game with all the tools, it works but there are a pair of bugs that do not react like in your code:darkfrei wrote: ↑Sun Feb 13, 2022 4:45 pm Yes, here was an issue that the block cannot be moved if it (after moving) collides with the agent. Added the exception for active agent.
Maybe some issue with two E-shaped blocks, but I think that the list of moving blocks solve this problem.
Update:
Easy levels, how to call it and how to switch (press any key to start the next one) them:
levels-01.love
Update 2: graphics
2022-02-13T23_21_07-Untitled.png
1. Graphics are not loaded, I just set up a different folder but even keeping the same structure they don't load...
Code: Select all
local path = 'assets/players'
Update:
Code: Select all
local path = 'assets/players/'
The other bug still remain, and the reason must be here:
Code: Select all
pb:keypressedMoving (scancode)
if key == 'space' then
pb:switchAgent ()
elseif key == 'return' then
package.loaded['levels.level-1'] = nil
level = require ('game/levels.level-1')
pb:load (level)
elseif key == "escape" then
love.event.quit()
end