Subversion Repositories Kolibri OS

Rev

Rev 5315 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5315 Rev 5316
Line 109... Line 109...
109
                texture_set_pixel(&game.framebuffer, obj->x+1, obj->y-1, 0xFFFF0000);
109
                texture_set_pixel(&game.framebuffer, obj->x+1, obj->y-1, 0xFFFF0000);
110
                texture_set_pixel(&game.framebuffer, obj->x+1, obj->y-0, 0xFFFF6600);
110
                texture_set_pixel(&game.framebuffer, obj->x+1, obj->y-0, 0xFFFF6600);
Line 111... Line 111...
111
                
111
                
112
            }
112
            }
113
            else if (obj->obj_type == OBJ_EXPLOSION) {
-
 
114
                
-
 
115
//                char s[] = "00 ";
-
 
116
//                s[0] += obj->t / 10;
-
 
117
//                s[1] += obj->t % 10;
-
 
118
//                game_textout( obj->x, obj->y, 0, s );
-
 
119
 
113
            else if (obj->obj_type == OBJ_EXPLOSION) {
120
                texture_draw( &game.framebuffer, &game.tex_explosions[ obj->t ], obj->x - obj->radius, obj->y - obj->radius, DRAW_MODE_ALPHA );
114
                texture_draw( &game.framebuffer, &game.tex_explosions[ obj->t ], obj->x - obj->radius, obj->y - obj->radius, DRAW_MODE_ALPHA );
-
 
115
            }
-
 
116
            else if (obj->obj_type == OBJ_HUGE_EXPLOSION) {
121
                
117
                texture_draw( &game.framebuffer, &game.tex_huge_explosions[ obj->t ], obj->x - obj->radius, obj->y - obj->radius, DRAW_MODE_ALPHA );
122
            }
118
            }
123
            else if (obj->obj_type == OBJ_ROCK) {
119
            else if (obj->obj_type == OBJ_ROCK) {
124
                texture_draw( &game.framebuffer, &game.tex_rocks[ obj->tag ], obj->x - obj->radius, obj->y - obj->radius, DRAW_MODE_ALPHA );
120
                texture_draw( &game.framebuffer, &game.tex_rocks[ obj->tag ], obj->x - obj->radius, obj->y - obj->radius, DRAW_MODE_ALPHA );
125
            }
121
            }