Project

General

Profile

Revision 364

added title

View differences:

proj.c
81 81
        sp_crosshair = sprite_ctor(bsp_crosshair); if(sp_crosshair == NULL) printf("Failed to get crosshair sprite\n");
82 82
    }
83 83

  
84
    text_t *title     = text_ctor(font_get_default(), "LabWars");
85
    text_set_color(title, TEXT_COLOR);
86
    text_set_size(title, 70);
87
    text_set_pos(title, graph_get_XRes()/2, graph_get_YRes()*0.17);
88
    text_set_valign(title, text_valign_center);
89
    text_set_halign(title, text_halign_center);
90

  
84 91
    menu_t *main_menu = menu_ctor(font_get_default());
85 92
    menu_add_item(main_menu, "Single player");
86 93
    menu_add_item(main_menu, "Multiplayer");
......
115 122
                        case  3: good = false; break;
116 123
                    }
117 124
                    menu_draw(main_menu);
125
                    text_draw(title);
118 126

  
119 127
                    click = 0;
120 128

  
......
140 148
        }
141 149
    }
142 150

  
151
    text_dtor(title);
152
    menu_dtor(main_menu);
153

  
143 154
    basic_sprite_dtor      (bsp_crosshair); bsp_crosshair = NULL;
144 155
    basic_sprite_dtor      (bsp_shooter  ); bsp_shooter   = NULL;
145 156
    basic_sprite_dtor      (bsp_zombie   ); bsp_zombie    = NULL;

Also available in: Unified diff