SHARE
TWEET

Untitled

a guest Sep 11th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //敵の攻撃パターンの関数宣言
  2. extern void enemy_atk0(int); extern void enemy_atk1(int); extern void enemy_atk2(int);
  3.  
  4. //敵の攻撃パターンの配列宣言
  5. void (*eny_atk_pattern[ENY_ATK_PATTERN_MAX])(int)={
  6.     enemy_atk0, enemy_atk1, enemy_atk2
  7. }
  8.  
  9. //敵ショットの処理
  10. void eny_shot_calc() {
  11.     for(int i=0; i<ENEMY_MAX; i++) {
  12.         if(eny_shot[i].flag==1) {
  13.             // 敵のショット
  14.             eny_atk_pattern[eny_shot[i].knd](i);
  15.         }
  16.     }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top