Rev 5316 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5316 | Rev 5322 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | int w = 320; |
14 | int w = 320; |
15 | int h = 180; |
15 | int h = 180; |
Line 16... | Line 16... | ||
16 | 16 | ||
17 | - | ||
18 | int kk = 20; // (rskos_get_time()/1) % 160; |
- | |
19 | // |
- | |
20 | // unsigned char *c = game.framebuffer.data; |
- | |
21 | // |
- | |
22 | // int i; |
- | |
23 | // for (i = 0; i < w*h*4; i+=4) { |
- | |
24 | // c[i+0] = 10; // i/w/3; |
- | |
25 | // c[i+1] = (( (1*i)*(i + kk)/70) & 5) ? 70 : 0; |
- | |
26 | // c[i+2] = 50; |
- | |
Line 27... | Line 17... | ||
27 | // c[i+3] = i % 128; |
17 | |
Line 28... | Line 18... | ||
28 | // }; |
18 | int kk = 20; // (rskos_get_time()/1) % 160; |
Line 29... | Line -... | ||
29 | - | ||
30 | - | ||
31 | texture_clear(&game.framebuffer, game.bg_color ); |
- | |
32 | - | ||
33 | game.bg_color = COLOR_BLACK; |
- | |
34 | - | ||
35 | // texture_clear(&game.tex); |
- | |
36 | - | ||
Line 37... | Line 19... | ||
37 | // texture_draw(&game.framebuffer, &game.tex, 40, 40, DRAW_MODE_ADDITIVE); |
19 | |
38 | // texture_draw(&game.framebuffer, &game.tex, 70, 50, DRAW_MODE_ADDITIVE); |
20 | |
39 | // texture_draw(&game.framebuffer, &game.tex, 20, 60, DRAW_MODE_ADDITIVE); |
- | |
40 | // texture_draw(&game.framebuffer, &game.tex, 60, 70, DRAW_MODE_ADDITIVE); |
21 | texture_clear(&game.framebuffer, game.bg_color ); |
41 | // |
22 | |
42 | // texture_draw(&game.framebuffer, &game.tex, 111, 150, DRAW_MODE_ADDITIVE); |
23 | game.bg_color = COLOR_BLACK; |
43 | 24 | ||
44 | int i, c, c2, c3; |
25 | |
Line 207... | Line 188... | ||
207 | texture_draw_vline(&game.framebuffer, 8 + i*4 + 2, 20, 8, health_color ); |
188 | texture_draw_vline(&game.framebuffer, 8 + i*4 + 2, 20, 8, health_color ); |
208 | }; |
189 | }; |
Line 209... | Line -... | ||
209 | - | ||
210 | - | ||
211 | - | ||
212 | 190 | ||
Line 213... | Line 191... | ||
213 | // game_textout( 2, 12, 2, L_TECHDEMO_LINE2 ); |
191 | |
214 | 192 |