среда, 6 мая 2015 г.

Composable big weapons

When developing current big weapons I have hard time to make it work again and again.

All logic from it basically identical. But art must be drawn for each of 1xN, 2xN, ..., MxN.
I think that will be easier to make this towers images when it needed and cache it.

Unity has buttons, made this way. You have image with static corners, stretchy/repeated borders and wrap around texture for center.

Introduction of this function can help lower effort next time I want to make bigger weapon. And it will be easy to do. Only dimensions will be said and software generate it from underlying texture.

And division of rotable/static weapons is easy: rectangular - static, square - rotable.

Missiles can use this mechanic also. It simply has wide rectangle with zooming out borders (each stage has smaller wings).

After I implement all missile weapons and nanolathe them in place, this idea will be developed.