2014 ソフトウェア設計及び演習用の班Wiki
gr12::弾
Bullet.h
#define BULLET_WIDTH 11 #define BULLET_HEIGHT 21 #define ENEMY1_BULLET_WIDTH 10 #define ENEMY1_BULLET_HEIGHT 10 #define PLAYER_BULLET_LIMIT 20 #define ENEMY_BULLET_LIMIT 60 #define STRAIGHT_BULLET_1 1 #define STRAIGHT_BULLET_2 2 #define HOMING_BULLET_1 3 #define HOMING_BULLET_2 4 struct bullet { int move_pattern; int picture_number; double x; double y; double x_speed; double y_speed; int used; int explosion; int img; }; void PlayerBullet_1(int fire, cairo_t *cr, GdkPixbuf *picture); void EnemyBullet(cairo_t *cr); struct bullet *ReturnBulletData(int data_number); struct bullet *ReturnEnemyBulletData(int data_number); void ResetBulletData();
最終更新日:2015/02/18 13:03:55