;*********
Conrad
;*********
.attendreDroite
ld hl,conradDroite : ld (.animation),hl
ld hl,.attendreDroiteManage : ld (.routine),hl
.attendreDroiteManage
bit 1,a : jp z,.assisDroite
bit 2,a : jp z,.retournerGauche
;bit 3,a : jp z,.marcherDroite
bit 4,a : jp z,.degainerDeboutDroite
jp .execute
.attendreGauche
ld hl,conradGauche : ld (.animation),hl
ld hl,.attendreGaucheManage : ld (.routine),hl
.attendreGaucheManage
bit 1,a : jp z,.assisGauche
;bit 2,a : jp z,.marcherGauche
bit 3,a : jp z,.retournerDroite
bit 4,a : jp z,.degainerDeboutGauche
jp .execute
;-----------------------------------------------------------------
.assisDroite
ld hl,conradAssisDroite : ld (.animation),hl ; animation
ld a,5 : ld hl,.assisDroiteManage : jp .executeMouvementInit
.assisDroiteManage
bit 1,a : jp z,.execute ; si on continue d'appuyer sur BAS, on reste assis
ld hl,conradRemonteDroite : ld (.animation),hl ; animation
ld a,5 : ld hl,.attendreDroite : jp .executeMouvementInit
.assisGauche
ld hl,conradAssisGauche : ld (.animation),hl ; animation
ld a,5 : ld hl,.assisGaucheManage : jp .executeMouvementInit
.assisGaucheManage
bit 1,a : jp z,.execute ; si on continue d'appuyer sur BAS, on reste assis
ld hl,conradRemonteGauche : ld (.animation),hl ; animation
ld a,5 : ld hl,.attendreGauche : jp .executeMouvementInit
;-----------------------------------------------------------------
.retournerGauche
ld hl,conradRetournerGauche : ld (.animation),hl ; animation
ld a,5 : ld hl,.attendreGauche : jp .executeMouvementInit
.retournerDroite
ld hl,conradRetournerDroite : ld (.animation),hl ; animation
ld a,5 : ld hl,.attendreDroite : jp .executeMouvementInit
;-----------------------------------------------------------------
.degainerDeboutDroite
ld hl,conradDegaineDroite : ld (.animation),hl ; animation
ld a,8 : ld hl,.attendreDroiteGun : jp .executeMouvementInit
.attendreDroiteGun
bit 1,a : jp z,.assisDroiteGun
bit 2,a : jp z,.retournerGunGauche
bit 4,a : jp z,.rengainerDeboutDroite
bit 5,a : jp z,.tirerDroite
jp .execute
.rengainerDeboutDroite
ld hl,conradRengaineDroite : ld (.animation),hl ; animation
ld a,8 : ld hl,.attendreDroite : jp .executeMouvementInit
.degainerDeboutGauche
ld hl,conradDegaineGauche : ld (.animation),hl ; animation
ld a,8 : ld hl,.attendreGaucheGun : jp .executeMouvementInit
.attendreGaucheGun
bit 1,a : jp z,.assisGaucheGun
bit 3,a : jp z,.retournerGunDroite
bit 4,a : jp z,.rengainerDeboutGauche
bit 5,a : jp z,.tirerGauche
jp .execute
.rengainerDeboutGauche
ld hl,conradRengaineGauche : ld (.animation),hl ; animation
ld a,8 : ld hl,.attendreGauche : jp .executeMouvementInit
.retournerGunGauche
ld hl,conradRetournerGunGauche : ld (.animation),hl ; animation
ld a,10 : ld hl,.attendreGaucheGun : jp .executeMouvementInit
.retournerGunDroite
ld hl,conradRetournerGunDroite : ld (.animation),hl ; animation
ld a,10 : ld hl,.attendreDroiteGun : jp .executeMouvementInit
.tirerDroite
ld hl,conradTirDroite : ld (.animation),hl ; animation
ld a,19 : ld hl,.attendreDroiteGun : jp .executeMouvementInit
.tirerGauche
ld hl,conradTirGauche : ld (.animation),hl ; animation
ld a,19 : ld hl,.attendreGaucheGun : jp .executeMouvementInit
;-----------------------------------------------------------------
.assisDroiteGun
ld hl,conradAssisGunDroite : ld (.animation),hl ; animation
ld a,6 : ld hl,.attendreDroiteAssisGun : jp .executeMouvementInit
.attendreDroiteAssisGun
bit 5,a : jp z,.tirerAssisDroite
bit 2,a : jp z,.retournerGunAssisGauche
bit 1,a : jp z,.execute ; tant qu'on appuie bas, on reste bas
ld hl,conradRemonteGunDroite : ld (.animation),hl ; animation
ld a,6 : ld hl,.attendreDroiteGun : jp .executeMouvementInit
.assisGaucheGun
ld hl,conradAssisGunGauche : ld (.animation),hl ; animation
ld a,6 : ld hl,.attendreGaucheAssisGun : jp .executeMouvementInit
.attendreGaucheAssisGun
bit 5,a : jp z,.tirerAssisGauche
bit 3,a : jp z,.retournerGunAssisDroite
bit 1,a : jp z,.execute ; tant qu'on appuie bas, on reste bas
ld hl,conradRemonteGunGauche : ld (.animation),hl ; animation
ld a,6 : ld hl,.attendreGaucheGun : jp .executeMouvementInit
.retournerGunAssisGauche
ld hl,conradRetournerGunAssisGauche : ld (.animation),hl ; animation
ld a,8 : ld hl,.attendreGaucheAssisGun : jp .executeMouvementInit
.retournerGunAssisDroite
ld hl,conradRetournerGunAssisDroite : ld (.animation),hl ; animation
ld a,8 : ld hl,.attendreDroiteAssisGun : jp .executeMouvementInit
.tirerAssisDroite
ld hl,conradTirAssisDroite : ld (.animation),hl ; animation
ld a,13 : ld hl,.attendreDroiteAssisGun : jp .executeMouvementInit
.tirerAssisGauche
ld hl,conradTirAssisGauche : ld (.animation),hl ; animation
ld a,13 : ld hl,.attendreGaucheAssisGun : jp .executeMouvementInit
|