Project

General

Profile

Revision 228

bullet gunner collision

View differences:

proj.c
179 179
                            if (i == 0) {
180 180
                                if (no_interrupts % refresh_count_value == 0) {
181 181
                                    update_movement(map1, shooter1);
182
                                    bullet_update_movement(bullet);
182
                                    //bullet_update_movement(bullet);
183 183

  
184 184
                                    if(map_collides_gunner(map1, shooter1)){
185 185
                                        printf("COLLIDING\n");
186 186
                                    }
187 187

  
188
                                    if (gunner_collides_bullet(shooter1, bullet)) {
189
                                        printf("Bullet Collide with Shooter\n");
190
                                    }
191

  
188 192
                                    update_scale();
189 193

  
190 194
                                    ent_set_origin(gunner_get_x(shooter1)-ent_get_XLength()/2.0,

Also available in: Unified diff