Sometimes I wonder what non-coders would think if they read my code.

Published September 24, 2014
Advertisement
Programming languages have their own meaning, and then sometimes I realize I've written something in English as well.
This may or may not be the best way to go about drawing buttons in a main menu screen; either way, I bet Freud would have something to say about it.

day03_01.jpg
3 likes 3 comments

Comments

BlackShark33

*Gasps* Vectors are your friend!!

September 24, 2014 06:46 PM
el_juan

Please explain?

I know of two types of vectors:

1) directed quantity, which I've never heard of being used for this but that would be a neat trick;

2) resizable arrays, which I've heard take up a lot of memory, and would seem to me to be unnecessary when dealing with values that will stay the same forever.

My reasoning for having a lot of positioning variables is so that I can easily change them in the future. It's very likely that I'll want to change things in the next few days, including, for instance, the size of every GUI element. If there's a better way to deal with relative-position UI drawing and interaction, I'd love to know what it is!

September 24, 2014 07:14 PM
riuthamus

My head hurts, thats what we think... in fact it might just explode..

September 24, 2014 07:51 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement