From 015f4c2da1ae5e5de674239bd3029d95ce97f43d Mon Sep 17 00:00:00 2001 From: blondie7575 Date: Tue, 5 Sep 2017 12:55:27 -0700 Subject: [PATCH] Added power level controls --- gamemanager.s | 27 ++++++++++++++++++++++++++- gscats.2mg | Bin 819264 -> 819264 bytes input.s | 16 ++++++++++++++++ player.s | 31 +++++++++++++++++++++++++++++++ 4 files changed, 73 insertions(+), 1 deletion(-) diff --git a/gamemanager.s b/gamemanager.s index fbfee23..3fb8dd6 100644 --- a/gamemanager.s +++ b/gamemanager.s @@ -66,9 +66,15 @@ gameplayLoopKbd: gameplayLoopAngle: ; Update aim angle if needed lda angleDeltaRequested - beq gameplayLoopFire + beq gameplayLoopPower jsr changeAngle +gameplayLoopPower: + ; Update power if needed + lda powerDeltaRequested + beq gameplayLoopFire + jsr changePower + gameplayLoopFire: lda fireRequested beq gameplayLoopProjectiles @@ -171,6 +177,23 @@ changeAngle: rts +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; changePower +; +; Handles changing a player's power +; +changePower: + ldy currentPlayer + tax + jsr playerDeltaPower + + ldy currentPlayer + jsr renderPlayerHeader + + stz powerDeltaRequested + rts + + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; fire ; @@ -191,6 +214,8 @@ mapScrollRequested: .word $FFFF angleDeltaRequested: .word $0000 +powerDeltaRequested: + .word $0000 fireRequested: .word $0000 turnRequested: diff --git a/gscats.2mg b/gscats.2mg index 42c85f552a952f60a3a2ad182d8a7db2900d357f..75945a2a7d88085dea3c5d97cd44c58e355ec5b0 100644 GIT binary patch delta 1635 zcmZvcZ%i9y9LJxwtdtHy(I|z4^jL?u&BbFlff2MUi(^}5Y{C_qiYK!5_weWSqA%9l z7`m99uv|=RECGocie9pW7fUrr$D-*aTkM-D;f=6lY{VFE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