CheeseLord / warts

WAcky Real Time Strategy
MIT License
1 stars 0 forks source link

Add client mode to replace unit models with hitbox indicators #82

Open kronmillerg opened 7 years ago

kronmillerg commented 7 years ago

Basically just have a model that's a square, slightly raised off the ground, and in this mode change all unit models to it (appropriately scaled and distorted). Probably have it in different colors, like the unit selection halo.

Possible difficulty: does the graphics know the sizes of units? I think it just has the models and the scales. Someone's going to have to go through and change all the models when we switch. But I'm not sure if the graphics can just copy all of its scales from the real models or if we have to go back to the backend/gamestate to ask for the world rects and reconvert them.

Actually, I think the answer should be that we can copy the scales, because for units we should be assuming that the model bounds are [-1..1] x [-1..1]. But I'm not sure that we do.