Changeset 1032


Ignore:
Timestamp:
Oct 24, 2011, 9:18:46 AM (9 years ago)
Author:
sam
Message:

monsterz: fix title screen layout.

Location:
trunk/monsterz
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/title.cpp

    r1030 r1032  
    141141    data->logo = Tiler::Register(PNG_TITLE_LOGO, ivec2(380, 181), 0, 1.0f);
    142142    data->logo_sprite = new Sprite(data->logo, 0);
    143     data->logo_sprite->position = vec3(226, 450, 3);
     143    data->logo_sprite->position = vec3(640 / 2 - 380 / 2, 250, 10);
    144144    Ticker::Ref(data->logo_sprite);
    145145
    146146    data->ground = Tiler::Register(PNG_TITLE_GROUND, ivec2(384, 80), 0, 1.0f);
    147147    data->ground_pos = ivec2((vec2)(bbox[1] - bbox[0]) / ivec2(2, 4))
    148                      - ivec2(384, 80);
     148                     - ivec2(192, 80);
    149149
    150150    data->rocks = Tiler::Register(PNG_TITLE_ROCKS, ivec2(640, 155), 0, 1.0f);
     
    399399{
    400400    Input::UntrackMouse(this);
     401    Ticker::Unref(data->logo_sprite);
    401402    Tiler::Deregister(data->logo);
    402     Ticker::Unref(data->logo_sprite);
    403403    Tiler::Deregister(data->ground);
    404404    Tiler::Deregister(data->rocks);
Note: See TracChangeset for help on using the changeset viewer.