Menu system started.

I’ve done a menu in XNA before, so working from that code and the gamestate management sample as examples of how to proceed, I built the following menu. Getting all of the animations and transitions right was a surprisingly long trial and error process. Of course, there is a bunch of game state code that needs to be written in order for the menus to do anything, and that was a big part of the time cost, it’s not just a GUI.

The background is animated and consists of several layers. The menu entries are animated. The blue glow behind the selected entry is a particle effect. (Which looks really cool by the way, although its hard to make particle effects that don’t look cool.) The black tentacle background is procedurally created (and cached) on the fly, so creating new menus is just a matter of a few lines of code — which should greatly speed things up later, when I want to use these menus for in-game operations.

I worked from some concepts written in my binder of ideas (if I was just winging it, this would have taken a lot longer!):

Region definitions of menu sections used to detect when the thumbstick is moved over a menu entry. Also precise planning of how the background texture will be used to draw multiple cloud layers.

Game Programming Gems 5 chapter 1.17 “Choose Your Path — A Menu System” was also helpful in designing something clean and reusable, using the factory model of a menu manager that produces menus on request.

I’ve also started defining how the game engine will be organised, which is also something that I’ve had plenty of time to think about over the last couple of years.

This entry was posted in DBP2011, XNA and tagged , , . Bookmark the permalink.

105 Responses to Menu system started.

  1. Hi, its pleasant paragraph regarding media
    print, we all know media is a impressive source of facts.

  2. Catharine says:

    Ahaa, seine schön Diaalog Impressum diesem Artikel an dieser
    Stelle ann diesem weblog, Icch habe alle, die sso gelesen jetzt mic auch zu kommentieren hier.

  3. Marco says:

    Hallo, ich glaube, dids ist ein ausgezeichnetews Webseite. Ich stumbledupon it;
    ) Ichh wiederkommen erneut da ich Lesezeichen es.
    Geld und Freiheit isst der beste Weeg zzu ändern, können Sie
    reich sewin und weiterhin guide andere.

  4. Tһat іs a realⅼy goߋd tip partiсularly to thοѕe fresh
    tto the blogosphere. Short Ƅut very accurate information… Μany thanks for sharing tһіs one.

    A must read article!

  5. A propaganda that questions progress or work would exfite
    distain and rwach no one; it would immediately be branded ass an ideology of the intellectuals, since the
    majoreity of people feel that the major things are material things because they belong
    too labor, and so on.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>