Noah2610 / deathfloor

Work-in-progress Mega Man inspired game.
MIT License
2 stars 0 forks source link

Remove solid tile hitboxes and instead set their types to "Ground" #18

Closed Noah2610 closed 4 years ago

Noah2610 commented 4 years ago

It's always better to give tiles a type and set their appropriate properties in the resources/settings/tiles.ron config file. This will make it much easier to change properties for a bunch of tiles all at once.

We should remove all hitboxes for solid tiles set via the tiled collision-editor. Also remove their is_solid: true property. Instead, we should give all of those tiles the type Ground, which will make them all solid and give them all a hitbox of their full tile size (8x8).

I've looked into doing this via some script, but in this case this would be a bit complicated. I think it would be quicker to just do this manually once. Then going forward, we should try to prioritize giving tiles a type, and only giving properties for specific cases, where a tile needs to overwrite some value (like if a specific jumppad needs to have a higher y velocity strength than usual).

Noah2610 commented 4 years ago

https://github.com/Noah2610/deathfloor/blob/master/docs/LEVEL-CREATION.md#tile-types