Search found 245 matches

by glitchapp
Mon Feb 14, 2022 6:36 am
Forum: General
Topic: Help implementing game logic from fish fillets
Replies: 193
Views: 106244

Re: Help implementing game logic from fish fillets

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 (...
by glitchapp
Mon Feb 14, 2022 1:16 am
Forum: General
Topic: Help implementing game logic from fish fillets
Replies: 193
Views: 106244

Re: Help implementing game logic from fish fillets

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 (...
by glitchapp
Sun Feb 13, 2022 3:15 pm
Forum: General
Topic: Help implementing game logic from fish fillets
Replies: 193
Views: 106244

Re: Help implementing game logic from fish fillets

Hmm, in darkfrei's demo I could not move the U shaped piece with the big fish from the inside. There's something fishy (excuse the pun). Haha absolutely, I don't know which one of the demos you tested, he already did 5 versions I think the last one (number 5) contains all the new functions and impl...
by glitchapp
Sun Feb 13, 2022 3:02 pm
Forum: General
Topic: Help implementing game logic from fish fillets
Replies: 193
Views: 106244

Re: Help implementing game logic from fish fillets

I don't mean to copy all the rules of the game, indeed the ports changed the rules, but one particular rule of the original game sets that the small fish not only can not push heavy objects, it dies instanlty if try to sustain one. but don't worry, I'm not even sure if that rule is ok because it ma...
by glitchapp
Sun Feb 13, 2022 12:05 pm
Forum: General
Topic: Help implementing game logic from fish fillets
Replies: 193
Views: 106244

Re: Help implementing game logic from fish fillets

Here are heavy blocks, that can be moved with heavy agents (both with cyan outline). 2022-02-13T12_56_19-Untitled.png Yes!!! that was the last thing needed to be implemented! Amazing. I don't mean to copy all the rules of the game, indeed the ports changed the rules, but one particular rule of the ...
by glitchapp
Sun Feb 13, 2022 11:22 am
Forum: General
Topic: Help implementing game logic from fish fillets
Replies: 193
Views: 106244

Re: Help implementing game logic from fish fillets

Thanks glitchapp! Yes, it will be nice for credits me. Be sure that you call the pb:keypressed in the love.keypressed. Done! Press the key "6" to open the documentation tool, the first section is credits so you'll see it right away. There is no other menu created yet so that's why I wrote...
by glitchapp
Sun Feb 13, 2022 9:47 am
Forum: General
Topic: Help implementing game logic from fish fillets
Replies: 193
Views: 106244

Re: Help implementing game logic from fish fillets

I now realize how hard is all of this game logic man, Not that you weren't warned ;) I know what you mean, the game rules seems easier before you start coding. I had never done this without help. It's amazing that all the rules are implemented. I updated the game with a new resolution, now it can b...
by glitchapp
Sun Feb 13, 2022 4:30 am
Forum: General
Topic: Help implementing game logic from fish fillets
Replies: 193
Views: 106244

Re: Help implementing game logic from fish fillets

Oh I can't believe it! you implemented gravity too! the game logic is almost done! Thank you!, I will implement it soon and update the game and upload it here. Wait! WTF! you implemented everything! the deadly flag, the second player, wow! I can't believe it, I now realize how hard is all of this ga...
by glitchapp
Sat Feb 12, 2022 5:12 pm
Forum: General
Topic: Help implementing game logic from fish fillets
Replies: 193
Views: 106244

Re: Help implementing game logic from fish fillets

done, now I have the following error: Error: game/logic/push-blocks.lua:357: attempt to perform arithmetic on local 'dx' (a nil value) Press right to test it, I only implemented it to the right movement I am using the ZeroBrain Studio, as you see the line 407 has dx an dy with underscore, it means ...
by glitchapp
Sat Feb 12, 2022 4:37 pm
Forum: General
Topic: Help implementing game logic from fish fillets
Replies: 193
Views: 106244

Re: Help implementing game logic from fish fillets

done, now I have the following error: Error: game/logic/push-blocks.lua:357: attempt to perform arithmetic on local 'dx' (a nil value) Press right to test it, I only implemented it to the right movement Wait I found why, local dx, dy = 0, 0 is inside the conditional, I have to put it outside, once I...