diff options
author | Chris Xiong <chirs241097@gmail.com> | 2015-10-11 22:04:05 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2015-10-11 22:04:05 +0800 |
commit | 627d814f487ac38d4f9b9b71da9bef46f33b3dad (patch) | |
tree | 8fe9ffba654b40ede31575874793b735df0fdf2e /src/core/bullet.hpp | |
parent | f54345e4fc889471513cba99151a5e6a2dcef2d8 (diff) | |
download | bullet-lab-remix-627d814f487ac38d4f9b9b71da9bef46f33b3dad.tar.xz |
Implement the collision system and a simple effect.
Fixed a problem that keeps the screen black on start up.
Replace the build script in dtputil with makefile.
Sync with the newest SMELT revision.
Diffstat (limited to 'src/core/bullet.hpp')
-rw-r--r-- | src/core/bullet.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/bullet.hpp b/src/core/bullet.hpp index afba038..a917b95 100644 --- a/src/core/bullet.hpp +++ b/src/core/bullet.hpp @@ -16,8 +16,8 @@ public: //extborder: true=not removed if out of screen. //invincible: true=not removed if collided with player or in range of CLR. bool exist,addblend,special; - int attrd[8]; - double attrf[8]; + int attrd[16],scb,cscb,cb,ccb; + double attrf[16]; TColors basecolor; DWORD rendercolor; virtual void init(char fstarg,...); @@ -31,6 +31,12 @@ public: void init(char fstarg,...)override; void update()override; }; +class bulletFX:public bulletBase +{ +public: + void init(char fstarg,...)override; + void update()override; +}; class bulletManager { private: @@ -74,6 +80,7 @@ public: } void updateBullet(); void renderBullet(); + void addFXBullet(TColors col); bulletBase* getHandle(int id); smEntity2D* getBulEntity2D(TColors col); smEntity3D* getBulEntity3D(TColors col); |