angle 0 elliminated

This commit is contained in:
2022-11-11 01:26:11 -05:00
parent f67656c5aa
commit ac1c501fa4
4 changed files with 37 additions and 24 deletions
+3 -3
View File
@@ -55,15 +55,15 @@ With the advent of [fujinet](https://fujinet.online/) we are thinking about maki
2022-11-07 2022-11-07
Possibly the final single-player version of the game, unless our dear players find another breaking issue! Possibly the final single-player version of the game, unless our dear players find another breaking issue!
* 5200 keypad works as it should. You can now press these finicky foils to your hearth's desire. * 5200 keypad works as it should. You can now press these finicky foils to your heart's desire.
* "Unknown" type Robotanks were attacking with Nuclear Winter every time. Fixed! * "Unknown" type Robotanks were attacking with Nuclear Winter every time. Fixed!
* One of variables was declared as a byte but used as a word which might cause some rare instabilities. * One of the variables was declared as a byte but used as a word that might cause some rare instabilities.
* Page zero variables are cleared prior to the game start to eliminate rare issues in some software/hardware configurations. * Page zero variables are cleared prior to the game start to eliminate rare issues in some software/hardware configurations.
* The new version of music in NTSC eliminates issues with tempo (not that anyone but the artist noticed that, but still it is an improvement!) * The new version of music in NTSC eliminates issues with tempo (not that anyone but the artist noticed that, but still it is an improvement!)
* You can now wrap around inventory and shop to faster access these options far down below. * You can now wrap around inventory and shop to faster access these options far down below.
* Visual improvement of the main menu and fixed some color issues with the title headers. * Visual improvement of the main menu and fixed some color issues with the title headers.
* Hovercraft was always flying to the top of the screen, it was not intended, it is now hovering just above the mountains! * Hovercraft was always flying to the top of the screen, it was not intended, it is now hovering just above the mountains!
* The main menu does not blink now when changing options. This was a very minor thing but it bothered me to some extend. Fixing it required a complete rewrite of this portion of the menu. * The main menu does not blink now when changing options. This was a very minor thing but it bothered me to some extent. Fixing it required a complete rewrite of this portion of the menu.
###### Version 1.17 ###### Version 1.17
+32 -18
View File
@@ -2109,10 +2109,23 @@ YangleUnder90
sta vy sta vy
lda #0 ; all arithmetic to zero lda #0 ; all arithmetic to zero
sta vx+1
sta vy+1
sta fx sta fx
sta fy sta fy
sta vx+1
sta vy+1
;; add 0.5 to vx and vy for better rounding
;clc
;lda vx
;adc #128 ; 1/2
;sta vx
;scc:inc vx+1
;
;clc
;lda vy
;adc #128 ; 1/2
;sta vy
;scc:inc vy+1
; draw by vx vy ; draw by vx vy
; in each step ; in each step
@@ -2124,42 +2137,43 @@ YangleUnder90
barrelLoop barrelLoop
lda goleft lda goleft
bne @+ bne goright
clc clc
lda fx lda fx
adc vx adc vx
sta fx sta fx
bcc @+
lda xdraw lda xdraw
adc #0 adc vx+1
sta xdraw sta xdraw
lda xdraw+1 bcc @+
adc #0 inc xdraw+1
sta xdraw+1
jmp ybarrel
@ @
jmp ybarrel
goright
sec sec
lda fx lda fx
sbc vx sbc vx
sta fx sta fx
bcs @+
lda xdraw lda xdraw
sbc #0 sbc vx+1
sta xdraw sta xdraw
lda xdraw+1 bne @+
sbc #0 dec xdraw+1
sta xdraw+1 @
ybarrel ybarrel
sec sec
lda fy lda fy
sbc vy sbc vy
sta fy sta fy
bcs @+
lda ydraw lda ydraw
sbc #0 sbc vy+1
sta ydraw sta ydraw
lda ydraw+1 bcs @+
sbc #0 dec ydraw+1
sta ydraw+1 @
jsr plot ;.MakePlot jsr plot ;.MakePlot
dec yc dec yc
BIN
View File
Binary file not shown.
+2 -3
View File
@@ -1305,9 +1305,8 @@ pressedRight
mva #sfx_set_power_2 sfx_effect mva #sfx_set_power_2 sfx_effect
mva #1 Erase mva #1 Erase
jsr DrawTankNr.BarrelChange jsr DrawTankNr.BarrelChange
dec AngleTable,x dec:lda AngleTable,x
lda AngleTable,x cmp #0
cmp #255 ; -1
jne BeforeFire jne BeforeFire
lda #179 lda #179
sta AngleTable,x sta AngleTable,x