Tried to improve performance by canceling collision directions that were already checked. Don’t worry, they still work. I also found out the big check (where it checks if it’s inside the tile on the next frame) isn’t what’s causing the big fps drop.
Enemies and items are no longer duplicated to the other side if the level width is 16.
When did I say that? All I remember saying is the code is not ideal (it’s a lot of calculations, but doesn’t cause lag), but it does function, even when scaled I think
I’m guessing it’s probably not what the project is aimed at, but I think it would be a fun project to remix it and make Peggle. I might try it if I have time, once it’s released
I got going into the slope working, in both directions. Going down will be the hardest, and be the part that requires a lot of checks. I also made sure to down-grade the player version, which is why I unpublished it last time.
Oh, and I didn’t account for jumping (yeah, I didn’t add it here).
There is an large invisible collision plane below the slope, btw… this is why the player doesn’t just keep falling.
Edit: releases slope test 3, player is no longer slowed down at the top, and would now be able to jump even if they were inside the collision area… I think…
Admittedly, it’s not perfect. There are some obvious edge cases i missed, like when the player is moving down the slope, for example. They’ll just snap into position when they get into range the way I did it… or just freeze in place…
It’s actually easy. Just make it despawn when the player slams it. It would be the same code as the Mega Chomper, but without the insane bounce.
The slam broadcast is only for shaking the screen, btw…
I won’t do that in my game because they might be used for puzzle potential. I might also repurpose the ground slam button so you can hold it to move the box around…
What is impossible is getting stacked crates, since there’s no way to check for a collision with itself. Mostly because of ID issue.
Ground Slamming will now make the enemies and crates bounce a little, giving the illusion that the slam is very powerful.
If you jump at about the right moment after slamming on a crate, you’ll be able to clear 1 extra block. It is a little hard to pull off, but still doable. You just need to do is as the crate is giving you the boost…
Beta 02b
tweaked the slam bounce value from 8 to 9 to make it easier to do the crate boost trick.
Beta 02c
each entity is now bounced differently due to the slam impact. Large enemies are bounced less because they are heavy, small enemies are bounce more. The crate is bounced most because they are lightweight.
I got some bugs when I buy something with cash on Funcity the Buy button disappears, but I can’t move anything like the city map after I buy something with cash like parks.