multi-directional smooth scrolling routine for Screen 5

Page 2/2
1 |

By Grauw

Enlighted (6159)

Grauw's picture

12-08-2017, 00:06

Here’s example code in Basic:

100 DEFINT A-Z
110 SCREEN 5
120 CIRCLE (127,105),127,8,,,212 / 256
130 FOR X = 0 TO 255
140 XM = X \ 16 : XL = X AND 15 : XC = XL * 16
150 SP = XM AND 1 : DP = SP XOR 1
160 SET PAGE SP,DP
170 VDP(19) = XL XOR 8
180 COPY (XC,0)-(XC + 15,211),SP TO (XC - 16 AND 240,0),DP
190 NEXT

Please handle the translation to assembly yourself. The basis is simple, using it in practice and at 60 fps is hard. I think it’s best to implement the method yourself.

By Pippo

Master (241)

Pippo's picture

12-08-2017, 06:09

Many, many thanks, Grauw. Smile
You have been very, very kind, really. Smile
I will try that too and I hope to succeed.
Thanks a lot again! Smile

By JohnHassink

Ambassador (4923)

JohnHassink's picture

12-08-2017, 07:02

Hey Pippo, you're going to make a game or a demo? Smile

By Pippo

Master (241)

Pippo's picture

12-08-2017, 12:34

Hello John,
neither of both for now. Smile
I'm trying to make a simple smooth text scrolling. Smile

By Maggoo

Paragon (1164)

Maggoo's picture

12-08-2017, 15:55

This may be what you are looking for:

http://abyssmsx.com/Scroller.zip

Source code is in the .gen fine (compiles with Gen80.com)

By Pippo

Master (241)

Pippo's picture

12-08-2017, 18:06

Dear Maggoo,
did you know your kindness is very high? Smile Smile
Many, many thanks to you too. Smile

(- As I always thought, this Community is to the FIRST PLACE in the Web for a lot of reasons.)

Page 2/2
1 |
My MSX profile