Changeset 69
- Timestamp:
- Feb 9, 2003, 12:17:40 PM (20 years ago)
- Location:
- libcaca/trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/TODO
r67 r69 41 41 * the nuke should break the tunnel 42 42 43 * the laser stays alive when the ship explode d43 * the laser stays alive when the ship explodes 44 44 -
libcaca/trunk/src/Makefile.am
r61 r69 22 22 aliens.c \ 23 23 bonus.c \ 24 box.c \ 24 25 ceo.c \ 25 26 collide.c \ -
libcaca/trunk/src/common.h
r63 r69 4 4 * All Rights Reserved 5 5 * 6 * $Id: common.h,v 1.1 5 2002/12/23 16:21:38sam Exp $6 * $Id: common.h,v 1.16 2003/02/09 11:17:40 sam Exp $ 7 7 * 8 8 * This program is free software; you can redistribute it and/or modify … … 144 144 { 145 145 int w, h; 146 int x, y; 147 int frame; 148 149 } box; 150 151 typedef struct 152 { 153 int w, h; 146 154 147 155 starfield *sf; … … 183 191 184 192 /* 193 * From box.c 194 */ 195 box * create_box( game *g, int x, int y, int w, int h ); 196 void draw_box( game *g, box *b ); 197 void free_box( box *b ); 198 199 /* 185 200 * From ceo.c 186 201 */ … … 221 236 * From overlay.c 222 237 */ 223 void draw_ overlay( game *g );238 void draw_status( game *g ); 224 239 225 240 /* -
libcaca/trunk/src/main.c
r63 r69 4 4 * All Rights Reserved 5 5 * 6 * $Id: main.c,v 1.1 6 2002/12/23 16:21:38sam Exp $6 * $Id: main.c,v 1.17 2003/02/09 11:17:40 sam Exp $ 7 7 * 8 8 * This program is free software; you can redistribute it and/or modify … … 61 61 int skip = 0; 62 62 int purcompteur = 0; 63 64 box *pausebox = NULL; 63 65 64 66 g->sf = create_starfield( g ); … … 91 93 case 'p': 92 94 poz = !poz; 95 if( poz ) 96 { 97 pausebox = create_box( g, g->w / 2, g->h / 2, 98 g->w - 16, 8 ); 99 } 100 else 101 { 102 free_box( pausebox ); 103 } 93 104 break; 94 105 case '\t': … … 216 227 draw_weapons( g, g->wp ); 217 228 draw_player( g, g->p ); 218 draw_overlay( g ); 229 draw_status( g ); 230 231 /* Print pause box if needed */ 232 if( poz ) 233 { 234 pausebox->frame++; 235 draw_box( g, pausebox ); 236 } 219 237 220 238 /* Refresh */ … … 222 240 223 241 purcompteur++; 242 } 243 244 if( pausebox ) 245 { 246 free_box( pausebox ); 224 247 } 225 248 -
libcaca/trunk/src/overlay.c
r63 r69 4 4 * All Rights Reserved 5 5 * 6 * $Id: overlay.c,v 1. 2 2002/12/23 16:21:38sam Exp $6 * $Id: overlay.c,v 1.3 2003/02/09 11:17:40 sam Exp $ 7 7 * 8 8 * This program is free software; you can redistribute it and/or modify … … 25 25 #include "common.h" 26 26 27 void draw_ overlay( game *g )27 void draw_status( game *g ) 28 28 { 29 29 static char dots30[] = "------------------------------";
Note: See TracChangeset
for help on using the changeset viewer.