Project

General

Profile

Revision 239

commented out some parts under development

View differences:

proj/src/proj.c
231 231
                            #ifdef TELMO
232 232
                            if (i == 0) {
233 233
                                if (no_interrupts % refresh_count_value == 0) {
234
                                    update_movement(map1, shooter_list);
234
                                    //update_movement(map1, shooter_list);
235 235
                                    //bullet_update_movement(bullet);
236 236

  
237 237
                                    if (no_interrupts % 180 == 0) gunner_set_pos(shooter2, 775, 75);
proj/src/proj_func.c
50 50
    ver_mov = key_presses.s_pressed - key_presses.w_pressed;
51 51
    hor_mov = key_presses.d_pressed - key_presses.a_pressed;
52 52
}
53

  
53
/*
54 54
void update_movement(const map_t *map, list_t *shooter_list){
55 55
    list_node_t *it1 = list_begin(shooter_list);
56 56
    while(it1 != list_end(shooter_list)){
......
67 67
        }
68 68
    }
69 69
}
70

  
70
*/
71 71
void (shoot_bullet)(const gunner_t *shooter, list_t *bullet_list, const basic_sprite_t *bsp_bullet) {
72 72
    double angle = gunner_get_angle(shooter);
73 73
    double vx = -BULLET_SPEED * fm_sin(angle);

Also available in: Unified diff