This is a complicated one to explain. Basically, we've got a 2D platformer game. So, your character can easily be in contact with two or more interactable items or characters at a time. When you hit 'enter' we'll try to intelligently choose the most likely option, but we need to make it quick/possible to choose another of the items within your radius. Keep in mind that items can be moving during this entire time (we can freeze piggies but not other players, for instance). All in all, a somewhat complex problem to solve!
A few notes: In this instance the pepper is what we determine you're most interested in. Also, the bright bright blue highlight on the upper pepper would switch to the piggy if you key-pressed to the right. And! You open the menu by hitting enter, but you can dismiss it by clicking anywhere off the menu or by key-press up/down. Key-press left/right would cycle the menu.
L or F like
Show and tell for designers
What are you working on? Dribbble is a community of designers sharing screenshots of their work, process, and projects.
Copyright © 2009–2017 Dribbble LLC. All screenshots © their respective owners. Shipped from Salem, Mass. USA.