New Main Menu Button Code
On god i'm not the best at ui code. So when I write some, it usually takes me a little bit to figure out the best way to write my code.
As of now, i'm doing what most people refer to "immediate mode user interface" style where you just re-run probably the same code that represents a button an unnecessarily large number of times to make it so your code can easily create button(s) as the function or w/e will re-create the button on "demand".
This is in contrast to the retained mode user interfaces where they'd probably be faster in CPU execuation speed since they'd retain information about what your UI needs, but they end up being REALLY ANNOYING to maintain in my experience (wrote 2 of them in the past and hated it each time).
Anyways, my code atm isn't that good in terms of the UI code. I only wrote one draw button routine that works for the most part, but this semi-forced me to do some interesting tricks on top of that code to make today's main menu work properly. The good news is that if I don't need to change the main menu's underlying code (just the graphics part later), i'll not be SOL. Bad news aka the news that will come later since when making a project of scale, you often go back to old code and change it often, is that when changing the menu later, i'll have to deal with the not so nice jank I wrote today. I did "compress" my code down a bit to ensure that it isn't too unnecessarily bad in terms of complexity (I did dodge a bad decision I made while writing the code today by doing this!) which is nice.
Anyways, the new menu element aka the display of the planned "challenge" list is fully functional and ready to get some challenges associated with each button or well not exactly. The buttons simply display from a list of challenges so the challenges can "scroll" up or down to change the currently selectable set of challenges. So really all I did was set some "button slots" today that'll get some values that represent the challenges to explain it simply.
Anyways, I hope most of what I wrote was clear enough. I am more than happy to elaborate especially once I have actually ate some food because I haven't in a good while so i'm quite tired lol
But, please do let me know what you think about the new main menu! Is it too boring? Is it too annoying? Is it quite easy to use?
Tell me any opinion you have on it!
Thank you for reading and have an awesome day!
Files
Get Funmi
Funmi
Rotate the boat in air to get a high score
Status | In development |
Author | AndrewNReinke |
Genre | Action |
Tags | 3D, Arcade, DRM Free, handmade-engine, High Score, Low-poly, Retro, Rotation, Singleplayer, Third Person |
Languages | English, Japanese |
More posts
- Steam ReleaseDec 24, 2021
- Lots Of Changes With Text and StuffNov 19, 2021
- Text Texture AtlasNov 16, 2021
- Very Smol FixNov 15, 2021
- Font GenerationNov 14, 2021
- Added Fade In / Out And New Particle SystemNov 13, 2021
- Circular TextureNov 12, 2021
- I Wrote This Technique Thingy While Being Really Tired lmaoNov 11, 2021
- Collapsing UI Code Into One PipeNov 09, 2021
- Fixed Timers & Collision Volume BugsNov 08, 2021
Leave a comment
Log in with itch.io to leave a comment.