Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Dynamically Repositioned UI, now in ToyMaker

Dynamically Repositioned UI, now in ToyMaker

raynmetal
raynmetal
raynmetal's Blog · · 1 min read
414 0

I thought making simple resizable UI layouts for ToyMaker would be easy, after implementing 3D graphics and physics. Apparently not.

Here's what I've been working on the past week or two. The idea is pretty simple: There's a UI container whose size matches the size of the viewport (the window). UI elements are positioned relative to specific reference coordinates on the container.

Elements anchored to the top-left of the container, stay at the top left, likewise with elements at the center and other parts of the container.

My implementation isn't particularly sophisticated, and it kinda just gets the job done. Thankfully, that's all I need for the next round of polish I'm planning for Game of Ur.

Discussion

Loading comments...