All the Changes for 1.2.1

Sorry forgot to commit once again.
Just look in the changelog of the release
This commit is contained in:
Andre Schweiger 2016-02-29 14:19:32 +01:00
parent 9a8c8bc714
commit 73775f875a
9 changed files with 27 additions and 12 deletions

View file

@ -32,9 +32,9 @@ SOURCES := source source/minizip
DATA := data DATA := data
INCLUDES := include INCLUDES := include
APP_TITLE := Test APP_TITLE := Minicraft 3DS
APP_DESCRIPTION := ??? APP_DESCRIPTION := Minicraft was originally created by Markus "Notch" Perrson. This was ported to the 3DS by Davideesk.
APP_AUTHOR := Davideesk APP_AUTHOR := Davideesk and andre111
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# options for code generation # options for code generation

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 B

View file

@ -385,6 +385,7 @@ bool ItemVsEntity(Item* item, Entity* e, int dir){
return true; return true;
case ENTITY_MAGIC_PILLAR: case ENTITY_MAGIC_PILLAR:
playSound(snd_monsterHurt);
removeEntityFromList(e, e->level, &eManager); removeEntityFromList(e, e->level, &eManager);
return true; return true;
} break; } break;
@ -402,6 +403,7 @@ bool ItemVsEntity(Item* item, Entity* e, int dir){
return true; return true;
case ENTITY_MAGIC_PILLAR: case ENTITY_MAGIC_PILLAR:
playSound(snd_monsterHurt);
removeEntityFromList(e, e->level, &eManager); removeEntityFromList(e, e->level, &eManager);
return true; return true;
} break; } break;
@ -418,6 +420,7 @@ bool ItemVsEntity(Item* item, Entity* e, int dir){
return true; return true;
case ENTITY_MAGIC_PILLAR: case ENTITY_MAGIC_PILLAR:
playSound(snd_monsterHurt);
removeEntityFromList(e, e->level, &eManager); removeEntityFromList(e, e->level, &eManager);
return true; return true;
} break; } break;
@ -1277,7 +1280,7 @@ void tickEntity(Entity* e){
if (e->hurtTime > 0) e->hurtTime--; if (e->hurtTime > 0) e->hurtTime--;
e->dragon.animTimer++; e->dragon.animTimer++;
if(e->dragon.animTimer>=20) { if(e->dragon.animTimer>=4*4) {
e->dragon.animTimer = 0; e->dragon.animTimer = 0;
} }
@ -1285,8 +1288,8 @@ void tickEntity(Entity* e){
if (e->dragon.attackDelay > 0) { if (e->dragon.attackDelay > 0) {
e->dragon.attackDelay--; e->dragon.attackDelay--;
if (e->dragon.attackDelay <= 0) { if (e->dragon.attackDelay <= 0) {
e->wizard.attackType = rand()%2; e->dragon.attackType = rand()%2;
e->wizard.attackTime = 121; e->dragon.attackTime = 121;
} }
return; return;
} }

View file

@ -66,7 +66,6 @@
#define ITEM_BONE 68 #define ITEM_BONE 68
#define ITEM_DUNGEON_KEY 69 #define ITEM_DUNGEON_KEY 69
#define ITEM_WIZARD_SUMMON 70 #define ITEM_WIZARD_SUMMON 70
//TODO - implement icon
#define ITEM_DRAGON_EGG 71 #define ITEM_DRAGON_EGG 71
#define ITEM_DRAGON_SCALE 72 #define ITEM_DRAGON_SCALE 72

View file

@ -1133,19 +1133,18 @@ void renderEntity(Entity* e, int x, int y) {
renderr(x, y, 200, 152, 0, e->spark.age * 0.0349); renderr(x, y, 200, 152, 0, e->spark.age * 0.0349);
break; break;
case ENTITY_DRAGON: case ENTITY_DRAGON:
//TODO - render dragon(maybe with flying animation)
switch (e->dragon.dir) { switch (e->dragon.dir) {
case 0: // down case 0: // down
render32(x - 16, y - 16, 0+(e->dragon.animTimer<10 ? 0 : 64), 256, 2); render32(x - 16, y - 16, 0+(e->dragon.animTimer/4 * 32), 256, 2);
break; break;
case 1: // up case 1: // up
render32(x - 16, y - 16, 0+(e->dragon.animTimer<10 ? 0 : 64), 256, 0); render32(x - 16, y - 16, 0+(e->dragon.animTimer/4 * 32), 256, 0);
break; break;
case 2: // left case 2: // left
render32(x - 16, y - 16, 0+(e->dragon.animTimer<10 ? 0 : 64), 288, 1); render32(x - 16, y - 16, 0+(e->dragon.animTimer/4 * 32), 288, 1);
break; break;
case 3: // right case 3: // right
render32(x - 16, y - 16, 0+(e->dragon.animTimer<10 ? 0 : 64), 288, 0); render32(x - 16, y - 16, 0+(e->dragon.animTimer/4 * 32), 288, 0);
break; break;
} }
break; break;
@ -1486,6 +1485,12 @@ void renderItemIcon(int itemID, int countLevel, int x, int y) {
case ITEM_WIZARD_SUMMON: case ITEM_WIZARD_SUMMON:
render(x, y, 152, 160, 0); render(x, y, 152, 160, 0);
break; break;
case ITEM_DRAGON_EGG:
render(x, y, 160, 160, 0);
break;
case ITEM_DRAGON_SCALE:
render(x, y, 168, 160, 0);
break;
case TOOL_BUCKET: case TOOL_BUCKET:
render(x, y, 200 + countLevel * 8, 144, 0); render(x, y, 200 + countLevel * 8, 144, 0);
break; break;

View file

@ -20,6 +20,11 @@ void playMusic(Sound snd){
csndPlaySound(10, SOUND_FORMAT_16BIT | SOUND_REPEAT, 44100, 1, 0, snd.buffer, snd.buffer, snd.size); csndPlaySound(10, SOUND_FORMAT_16BIT | SOUND_REPEAT, 44100, 1, 0, snd.buffer, snd.buffer, snd.size);
} }
void stopMusic() {
CSND_SetPlayState(8, 0);
CSND_SetPlayState(10, 0);
}
void updateMusic(int lvl, int time) { void updateMusic(int lvl, int time) {
switch(lvl) { switch(lvl) {
case 0: case 0:

View file

@ -15,6 +15,7 @@ void playSound(Sound snd);
void playMusic(Sound snd); void playMusic(Sound snd);
void updateMusic(int lvl, int time); void updateMusic(int lvl, int time);
void stopMusic();
void loadSounds(); void loadSounds();
void freeSounds(); void freeSounds();

View file

@ -297,6 +297,8 @@ int main() {
sf2d_swapbuffers(); sf2d_swapbuffers();
} }
stopMusic();
freeRecipes(); freeRecipes();
freeLightBakes(); freeLightBakes();