From ac1c501fa4b6b9973ab8e321406eaf232b6fdd56 Mon Sep 17 00:00:00 2001 From: pkali Date: Fri, 11 Nov 2022 01:26:11 -0500 Subject: [PATCH] angle 0 elliminated --- README.md | 6 +++--- grafproc.asm | 50 ++++++++++++++++++++++++++++++++------------------ scorch.xex | Bin 48879 -> 48879 bytes weapons.asm | 5 ++--- 4 files changed, 37 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 35a633e..464e40a 100644 --- a/README.md +++ b/README.md @@ -55,15 +55,15 @@ With the advent of [fujinet](https://fujinet.online/) we are thinking about maki 2022-11-07 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! -* 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. * 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. * 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! -* 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 diff --git a/grafproc.asm b/grafproc.asm index 498ae2b..10c3844 100644 --- a/grafproc.asm +++ b/grafproc.asm @@ -2109,10 +2109,23 @@ YangleUnder90 sta vy lda #0 ; all arithmetic to zero - sta vx+1 - sta vy+1 sta fx 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 ; in each step @@ -2124,42 +2137,43 @@ YangleUnder90 barrelLoop lda goleft - bne @+ + bne goright clc lda fx adc vx sta fx + bcc @+ lda xdraw - adc #0 + adc vx+1 sta xdraw - lda xdraw+1 - adc #0 - sta xdraw+1 - jmp ybarrel + bcc @+ + inc xdraw+1 @ + jmp ybarrel +goright sec lda fx sbc vx sta fx + bcs @+ lda xdraw - sbc #0 + sbc vx+1 sta xdraw - lda xdraw+1 - sbc #0 - sta xdraw+1 - + bne @+ + dec xdraw+1 +@ ybarrel sec lda fy sbc vy sta fy + bcs @+ lda ydraw - sbc #0 + sbc vy+1 sta ydraw - lda ydraw+1 - sbc #0 - sta ydraw+1 - + bcs @+ + dec ydraw+1 +@ jsr plot ;.MakePlot dec yc diff --git a/scorch.xex b/scorch.xex index 41b27e379a7f03fbcd5ac043e8c4150004aa83c3..f2ce16ba91f6a22b6840124d3d288cee55ac25c5 100644 GIT binary patch delta 92 zcmaF=m+AdqrVaIVZY{0tt-D*dFMWDJOk!zE>aNz730zB)Qg^o|O<;PK>@%;{Vrk1$ vpy&pm=u@ER1*T)k7E9ZoZfk7^3Z*>V-kP$3>DcC@bsxAH88&b0vNQnz{A@4? delta 92 zcmaF=m+AdqrVaIVZo6Bzx3;vlFMWDJOk!zE>aNz7rAe6#tw~Fhfn>7JyjqK;El