Been working on the title screen all day...
Posted: Wed Sep 01, 2004 7:27 pm
Yes, I've been trying to get images, and graphics to look perfect all day. Then I finally implemented user input so you could actually move the damn option thing. It works great. It might look bland, but I feel that this skeleton has plenty of rooms for improvement and fancy animation...
The blackness at the top is meant for some sort of beautiful art/logo made by one of the artists....
here is a screen straight from the dreamcast:
Don't forget people, everything I show you looks a bit different on the tv (different resolution, different colors) I personally think this looks WAY better on the TV.
And for you programming whores, this is your lucky day. Here is the source to the title screen:
Well, what do you think of it?
The blackness at the top is meant for some sort of beautiful art/logo made by one of the artists....
here is a screen straight from the dreamcast:
Don't forget people, everything I show you looks a bit different on the tv (different resolution, different colors) I personally think this looks WAY better on the TV.
And for you programming whores, this is your lucky day. Here is the source to the title screen:
Code: Select all
void TitleScreen() {
unsigned int counter = 0;
short int option = 0;
canvas_img = pvr_mem_malloc(128*64*2);
png_to_texture("/rd/menu/menu_canvas.png", canvas_img, PNG_FULL_ALPHA);
while(1) {
pvr_wait_ready();
pvr_scene_begin();
pvr_list_begin(PVR_LIST_TR_POLY);
counter++;
if (counter == 300000) break;
draw_sprite(320, 275, 128, 64, 50, 36, canvas_img, 1);
/* Text */
plx_fcxt_begin(cxt);
plx_fcxt_setsize(cxt,30);
if(option == 0) PrintText(219, 249, 2, 1, 255, 200, 1, "Game Start");
else PrintText(219, 249, 2, 1, 255, 1, 1, "Game Start");
if(option == 1) PrintText(238, 285, 2, 1, 255, 200, 1, "Continue");
else PrintText(238, 285, 2, 1, 255, 1, 1, "Continue");
if(option == 2) PrintText(246, 323, 2, 1, 255, 200, 1, "Credits");
else PrintText(246, 323, 2, 1, 255, 1, 1, "Credits");
plx_fcxt_setsize(cxt,15);
PrintText(168, 390, 2, 1, 1, 1, 1, "Copyright Team Chaos 2004-2005");
PrintText(218, 413, 2, 1, 1, 1, 1, "www.TheChaosRift.com");
plx_fcxt_end(cxt);
cont_cond_t cond;
cont_get_cond(maple_addr(0,0),&cond);
if(counter%12 == 0){
if(!(cond.buttons & CONT_DPAD_DOWN) || (cond.joyy > 150)) option += 1;
if(!(cond.buttons & CONT_DPAD_UP) || (cond.joyy < 100)) option -= 1;
if(!(cond.buttons & CONT_Y)) vid_screen_shot("/pc/screenshot.ppm");
}
if(option > 2) option = 0;
if(option < 0) option = 2;
pvr_list_finish();
pvr_scene_finish();
}
}