mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-01 02:22:39 +00:00
why
This commit is contained in:
parent
7597a7ea75
commit
e2743e98b0
20 changed files with 128873 additions and 128593 deletions
15706
po/furnace.pot
15706
po/furnace.pot
File diff suppressed because it is too large
Load diff
Binary file not shown.
16268
po/pt_BR.po
16268
po/pt_BR.po
File diff suppressed because it is too large
Load diff
BIN
res/tile.gif
BIN
res/tile.gif
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 21 KiB |
3119
src/gui/tileData.h
3119
src/gui/tileData.h
File diff suppressed because it is too large
Load diff
|
@ -391,6 +391,8 @@ struct FurnaceCV {
|
||||||
int hiScore;
|
int hiScore;
|
||||||
short lastPlayerX, lastPlayerY;
|
short lastPlayerX, lastPlayerY;
|
||||||
short fxChanBase, fxInsBase;
|
short fxChanBase, fxInsBase;
|
||||||
|
|
||||||
|
FixedQueue<unsigned char,16> weaponStack;
|
||||||
|
|
||||||
// graphics
|
// graphics
|
||||||
unsigned short tile0[56][80];
|
unsigned short tile0[56][80];
|
||||||
|
@ -1630,7 +1632,12 @@ void FurnaceCVPlayer::collision(FurnaceCVObject* other) {
|
||||||
if (!invincible) {
|
if (!invincible) {
|
||||||
dead=true;
|
dead=true;
|
||||||
cv->respawnTime=48;
|
cv->respawnTime=48;
|
||||||
cv->shotType=0;
|
if (cv->weaponStack.empty()) {
|
||||||
|
cv->shotType=0;
|
||||||
|
} else {
|
||||||
|
cv->shotType=cv->weaponStack.front();
|
||||||
|
cv->weaponStack.pop_front();
|
||||||
|
}
|
||||||
cv->soundEffect(SE_DEATH_C1);
|
cv->soundEffect(SE_DEATH_C1);
|
||||||
cv->soundEffect(SE_DEATH_C2);
|
cv->soundEffect(SE_DEATH_C2);
|
||||||
cv->createObject<FurnaceCVExplMedium>(x-8,y);
|
cv->createObject<FurnaceCVExplMedium>(x-8,y);
|
||||||
|
@ -2093,7 +2100,7 @@ void FurnaceCVEnemy1::collision(FurnaceCVObject* other) {
|
||||||
if (other->type==CV_BULLET || other->type==CV_PLAYER) {
|
if (other->type==CV_BULLET || other->type==CV_PLAYER) {
|
||||||
if (--health<=0) {
|
if (--health<=0) {
|
||||||
dead=true;
|
dead=true;
|
||||||
if ((rand()%7)==0) {
|
if ((rand()%7)==0 || (enemyType>1 && (rand()%7)==3)) {
|
||||||
switch (rand()%10) {
|
switch (rand()%10) {
|
||||||
case 0:
|
case 0:
|
||||||
cv->createObject<FurnaceCVExtraLife>(x+(enemyType>=2?8:0),y+(enemyType>=2?8:0));
|
cv->createObject<FurnaceCVExtraLife>(x+(enemyType>=2?8:0),y+(enemyType>=2?8:0));
|
||||||
|
@ -2782,6 +2789,9 @@ void FurnaceCVMine::collision(FurnaceCVObject* other) {
|
||||||
void FurnaceCVPowerupP::collision(FurnaceCVObject* other) {
|
void FurnaceCVPowerupP::collision(FurnaceCVObject* other) {
|
||||||
if (other->type==CV_PLAYER) {
|
if (other->type==CV_PLAYER) {
|
||||||
dead=true;
|
dead=true;
|
||||||
|
if (cv->shotType) {
|
||||||
|
cv->weaponStack.push_front(cv->shotType);
|
||||||
|
}
|
||||||
cv->shotType=1;
|
cv->shotType=1;
|
||||||
cv->soundEffect(SE_PICKUP2);
|
cv->soundEffect(SE_PICKUP2);
|
||||||
cv->addScore(200);
|
cv->addScore(200);
|
||||||
|
@ -2809,6 +2819,9 @@ void FurnaceCVPowerupP::tick() {
|
||||||
void FurnaceCVPowerupS::collision(FurnaceCVObject* other) {
|
void FurnaceCVPowerupS::collision(FurnaceCVObject* other) {
|
||||||
if (other->type==CV_PLAYER) {
|
if (other->type==CV_PLAYER) {
|
||||||
dead=true;
|
dead=true;
|
||||||
|
if (cv->shotType) {
|
||||||
|
cv->weaponStack.push_front(cv->shotType);
|
||||||
|
}
|
||||||
cv->shotType=2;
|
cv->shotType=2;
|
||||||
cv->soundEffect(SE_PICKUP2);
|
cv->soundEffect(SE_PICKUP2);
|
||||||
cv->addScore(200);
|
cv->addScore(200);
|
||||||
|
|
Loading…
Reference in a new issue