ajout d'un nouveau monstre

This commit is contained in:
suruq 2016-06-11 15:47:35 +02:00
parent cc1c05c508
commit dd7487048f
4 changed files with 111 additions and 5 deletions

View File

@ -31,6 +31,13 @@ int Jeu()
MonsterPattern P_Slime("Slime",A_Slime,3,10,10,0);
MonsterPattern P_Tab[]={P_Slime};
MonsterPattern P_SacPV("SacPV",A_SacPV,3,10,10,0);
MonsterPattern P_Tab1[]={P_SacPv};
Object * GenerateurSlime1 = new Object;
Generateur * ScriptGenerateur1 = new Generateur;
GenerateurSlime1->AffectScript(ScriptGenerateur1);
@ -39,9 +46,9 @@ int Jeu()
Generateur * ScriptGenerateur2 = new Generateur;
GenerateurSlime2->AffectScript(ScriptGenerateur2);
Object * GenerateurSlime3 = new Object;
Generateur * ScriptGenerateur3 = new Generateur;
GenerateurSlime3->AffectScript(ScriptGenerateur3);
Object * GenerateurSacPV = new Object;
Generateur * GenerateurSacPV = new Generateur;
GenerateurSacPV->AffectScript(ScriptGenerateur3);
ScriptGenerateur1->SetBox(0,156,210,419);
ScriptGenerateur1->ShowBox();
@ -51,7 +58,7 @@ int Jeu()
ScriptGenerateur2->SetTab(1,P_Tab);
ScriptGenerateur3->SetBox(266,419,0,56);
ScriptGenerateur3->SetTab(1,P_Tab);
ScriptGenerateur3->SetTab(1,P_Tab1);
//*************Map*************\\
@ -87,7 +94,7 @@ int Jeu()
Game.AddObject(GenerateurSlime1,0);
Game.AddObject(GenerateurSlime2,0);
Game.AddObject(GenerateurSlime3,0);
Game.AddObject(GenerateurSacPV,0);
Game.AddObject(Perso , 0);
Game.AddObject(epee , 0);

View File

@ -105,6 +105,74 @@
Animation A_Slime[]={A_SlimeFace,A_SlimeDos,A_SlimeCote};
const unsigned char SacPV0[]={0xff, 0xc7, 0xd7, 0x83, 0xbb, 0x83, 0xff, 0xff, };
const unsigned char SacPV1[]={0xff, 0xc7, 0xd7, 0x83, 0xbb, 0x83, 0xff, 0xff, };
const unsigned char SacPV2[]={0xff, 0xc7, 0xd7, 0x83, 0xbb, 0x83, 0xff, 0xff, };
const unsigned char SacPV3[]={0xff, 0xc7, 0xc7, 0x83, 0x83, 0x83, 0xff, 0xff, };
const unsigned char SacPV4[]={0xff, 0xc7, 0xc7, 0x83, 0x83, 0x83, 0xff, 0xff, };
const unsigned char SacPV5[]={0xff, 0xc7, 0xc7, 0x83, 0x83, 0x83, 0xff, 0xff, };
const unsigned char SacPV6[]={0xff, 0xc7, 0xc7, 0x8b, 0x83, 0x83, 0xff, 0xff, };
const unsigned char SacPV7[]={0xff, 0xc7, 0xc7, 0x8b, 0x83, 0x83, 0xff, 0xff, };
const unsigned char SacPV8[]={0xff, 0xc7, 0xc7, 0x8b, 0x83, 0x83, 0xff, 0xff, };
const unsigned char SacPV0_n[]={0x38, 0x7c, 0xff, 0xff, 0xff, 0xff, 0xff, 0x6c, };
const unsigned char SacPV1_n[]={0x38, 0x7c, 0xff, 0xff, 0xff, 0xff, 0xff, 0x60, };
const unsigned char SacPV2_n[]={0x39, 0x7d, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd, };
const unsigned char SacPV3_n[]={0x38, 0x7c, 0xff, 0xff, 0xff, 0xff, 0xff, 0x6c, };
const unsigned char SacPV4_n[]={0x38, 0x7c, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc, };
const unsigned char SacPV5_n[]={0x39, 0x7d, 0xff, 0xff, 0xff, 0xff, 0xff, 0x61, };
const unsigned char SacPV6_n[]={0x38, 0x7c, 0xff, 0xff, 0xff, 0xff, 0xff, 0x38, };
const unsigned char SacPV7_n[]={0x38, 0x7c, 0xff, 0xff, 0xff, 0xff, 0xff, 0x2c, };
const unsigned char SacPV8_n[]={0x39, 0x7d, 0xff, 0xff, 0xff, 0xff, 0xff, 0x35, };
Sprite S_SacPV0 (SacPV0,SacPV0_n ,7,8);
Sprite S_SacPV1 (SacPV1, SacPV1_n,7,8);
Sprite S_SacPV2 (SacPV2, SacPV2_n,7,8);
Sprite S_SacPV3 (SacPV3, SacPV3_n,7,8);
Sprite S_SacPV4 (SacPV4,SacPV4_n ,7,8);
Sprite S_SacPV5 (SacPV5, SacPV5_n,7,8);
Sprite S_SacPV6 (SacPV6,SacPV6_n ,7,8);Sprite S_SacPV6.CreateReverse();
Sprite S_SacPV7 (SacPV7,SacPV7_n ,7,8);Sprite S_SacPV7.CreateReverse();
Sprite S_SacPV8 (SacPV8,SacPV8_n ,7,8);Sprite S_SacPV8.CreateReverse();
Sprite S_Sac_avant[]={S_SacPV0,S_SacPV1,S_SacPV2};
Sprite S_Sac_arriere[]={S_SacPV3,S_SacPV4,S_SacPV5};
Sprite S_Sac_cote[]={S_SacPV6,S_SacPV7,S_SacPV8};
Animation A_Sac_avant(S_Sac_avant,3,200);
Animation A_Sac_arriere(S_Sac_arriere,3,200);
Animation A_Sac_cote(S_Sac_cote,3,200);
Animation A_SacPV[]={A_Sac_avant,A_Sac_arriere,A_Sac_cote};
const unsigned char tileset[]={0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0xff, 0xff, 0xc0, 0x3, 0xc0, 0x3, 0xcf, 0xe3, 0xc8, 0x23, 0xca, 0x23, 0xc9, 0x23, 0xc8, 0xa3, 0xc8, 0x23, 0xcf, 0xe3, 0xc0, 0x3, 0x40, 0x3, 0x60, 0x3, 0x3f, 0xff, 0xff, 0xff, 0x0, 0xf, 0x0, 0xf, 0x1f, 0xcf, 0x10, 0x4f, 0x14, 0x4f, 0x12, 0x4f, 0x11, 0x4f, 0x10, 0x4f, 0x1f, 0xcf, 0x0, 0xf, 0x0, 0xb, 0x0, 0x1b, 0xff, 0xf3, 0xff, 0xff, 0x0, 0x3, 0x3f, 0xf3, 0x20, 0x13, 0x3f, 0xf3, 0x18, 0x63, 0x10, 0x23, 0x10, 0x23, 0x11, 0xa3, 0x10, 0xa3,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, 0x5, 0x3, 0x5, 0x3, 0x7, 0x3, 0x0, 0x3, 0x83, 0x3, 0xc4, 0x8f, 0xa8, 0x57, 0x9b, 0x67, 0xac, 0xd7, 0x94, 0xa7, 0x4c, 0xcb, 0x3f, 0xf3, 0xcf, 0xcb, 0x95, 0xe7, 0x89, 0x47, 0x78, 0x7f, 0x8, 0x43, 0x7, 0x83, 0x80, 0x3, 0x78, 0x3, 0x64, 0x3, 0x54, 0x3, 0x4a, 0x3, 0x21, 0x3, 0x1f, 0x3, 0x0, 0x7f, 0x0, 0x9b, 0x0, 0xab, 0x1, 0x4b, 0x2, 0x13, 0x3, 0xe3, 0x0, 0x3, 0x0, 0x3, 0x8, 0x3, 0x14, 0x3, 0x8, 0x3, 0x0, 0x23, 0x0, 0x73, 0x4, 0x23, 0xa, 0x3, 0x4, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x2, 0x3, 0x0, 0x3, 0x20, 0x13, 0x0, 0x3, 0x0, 0x3, 0x2, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, };
bool tileprop[]={ 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0};

View File

@ -29,3 +29,21 @@ void IaSlime::Update()
}
}
void IaSacPV::Start()
{
}
void IaSacPV::UpdateEverySecond()
{
}
void IaSacPV::Update()
{
}

View File

@ -16,6 +16,19 @@ class IaSlime: public Script
};
class IaSacPV: public Script
{
public:
void Start();
void UpdateEverySecond();
void Update();
int Direction;
};
#endif