Prev: 42623 Up: Map Next: 42677
42639: Set Up Player
Used by the routine at SetUpPlayers.
Gives the current player the starting values for a new game: four lives, level zero, a bounty of $280, and the first stage, in which the player shoots twenty money bags.
Give the player four lives and start at level zero.
SetUpPlayer 42639 LD A,4 Write 4 to Lives to give the player four lives.
42641 LD (41571),A
42644 XOR A Write 0 to Level to start on level zero.
42645 LD (41568),A
42648 LD (41569),A Write 0 to Skill to start at the easiest difficulty.
Set the starting bounty and the first stage.
42651 LD BC,640 Set the starting bounty of $280 in BC.
42654 CALL AddToBounty Add it to the bounty.
42657 LD HL,276 Set the number of targets to twenty and the stage type to the money bag shoot.
42660 LD (41572),HL Store them.
42663 LD A,70 Write 70 to ScreenAttribute to colour the border and screen yellow.
42665 LD (41574),A
Make sure the prices are set.
42668 CALL ResetBulletPrice Make sure the price of a bullet is set.
42671 CALL ResetHorsePrice Make sure the price of a horse is set.
42674 JP ResetFine Jump to ResetFine.
Prev: 42623 Up: Map Next: 42677