Lines Matching refs:pos_x

53   float pos_x,pos_y;  member
95 float dx = a->pos_x - b->pos_x; in collision()
139 player.pos_x = 0; in game_init()
183 enemy[j].pos_x = rnd()*200 - 100; in game_play()
215 player.pos_x += player.vel_x * game_tick; in game_play()
218 if (player.pos_x < -100) { in game_play()
219 player.pos_x = -100; in game_play()
222 if (player.pos_x > 100) { in game_play()
223 player.pos_x = 100; in game_play()
241 p_bullet[i].pos_x = player.pos_x + player.radius*dx; in game_play()
259 particle[i].pos_x = player.pos_x - player.radius*dx; in game_play()
274 player.pos_x = 0; in game_play()
286 x = player.pos_x - enemy[i].pos_x; in game_play()
310 enemy[i].pos_x += enemy[i].vel_x * game_tick; in game_play()
313 if (enemy[i].pos_x < -100) { in game_play()
314 enemy[i].pos_x = -100; in game_play()
317 if (enemy[i].pos_x > 100) { in game_play()
318 enemy[i].pos_x = 100; in game_play()
336 e_bullet[j].pos_x = enemy[i].pos_x + enemy[i].radius*dx; in game_play()
361 vortex[i].pos_x += vortex[i].vel_x * game_tick; in game_play()
364 if (vortex[i].pos_x < -100) { in game_play()
365 vortex[i].pos_x = -200 - vortex[i].pos_x; in game_play()
368 if (vortex[i].pos_x > 100) { in game_play()
369 vortex[i].pos_x = 200 - vortex[i].pos_x; in game_play()
399 vortex[i].pos_x = 200*rnd()-100; in game_play()
417 p_bullet[i].pos_x += p_bullet[i].vel_x * game_tick; in game_play()
420 if (p_bullet[i].pos_x < -115 || in game_play()
421 p_bullet[i].pos_x > 115 || in game_play()
452 e_bullet[i].pos_x += e_bullet[i].vel_x * game_tick; in game_play()
455 if (e_bullet[i].pos_x < -115 || in game_play()
456 e_bullet[i].pos_x > 115 || in game_play()
485 particle[i].pos_x += particle[i].vel_x * game_tick; in game_play()
549 glTranslatef(player.pos_x, player.pos_y, 0); in game_render()
576 glTranslatef(enemy[i].pos_x, enemy[i].pos_y, 0); in game_render()
604 glTranslatef(vortex[i].pos_x, vortex[i].pos_y, 0); in game_render()
630 glTranslatef(p_bullet[i].pos_x, p_bullet[i].pos_y, 0); in game_render()
647 glTranslatef(e_bullet[i].pos_x, e_bullet[i].pos_y, 0); in game_render()
665 glVertex2f(particle[i].pos_x, particle[i].pos_y); in game_render()