All the mechanics so far seem to work, buying, tooltips, hovering over buttons. It’s also already pretty optimized, e.g. not checking if you can afford a talent if the talent is still locked. The nasty part about making 2D menu's is that they need to work on any resolution and screen size. To make sure they do, all coordinates need to be based on the center of the screen, which in turn is based on the size of the screen. Also all scales need to be adjusted accordingly.
You can see what I mean in the next screens. The interface elements already have coordinates that scale correctly, the icons and texts do not.
We really going on with the circle thingy? cant we just get a basic upgrade system layout so we wont have to waste to much time on the hassle with resolutions degrees etc?
BeantwoordenVerwijderenlike Alien swarm, just a scroll menu or something? .___.
BeantwoordenVerwijderenI believe it adds something and isn't all that hard once you figure out the formula. Especially since its a circle, calculating positions from the center should be the preferred way of doing it.
BeantwoordenVerwijderenBTW, Alien Swarm doesn't have an upgrade system to compare with, the system they use is mainly suitable for selecting a single entity from a list of entities.
The upper image is 1199 by 599 (?) Is that the resolution you're working with or did Blogspot mess it up? Anyway, love it so far. Seems to work pretty well by the looks of it :)
Just a heads-up: A small change in the AI manager proved to be a significant performance boost. The frame rate issues seen earlier are now completely gone. (approx. 10-15 fps gain!)
BeantwoordenVerwijderenThanks to a change in link-testing, we're now effectively saving ourselves 800 ray-casts* per frame, in addition to a total of 8000 loop iterations that was previously used to determine if a certain link was blocked.
* In our current level prototype with 200 waypoints and 10 active drones)
Nice one Tom, thats marvelous! The reason the screen have weird sizes is that I use printscreen and paint te make screenshots :p guess I cropped an extra line of pixels...
BeantwoordenVerwijderen