View Single Post
Old 21 October 2021, 12:42   #247
chadderack
Registered User
 
chadderack's Avatar
 
Join Date: Jul 2021
Location: Sandy, UT
Age: 55
Posts: 230
Cheers, jotd

Scroller "working" with joystick input. I'm using an XBOX 360 controller (USB) and it seems very responsive.

(video demonstrating joystick input w/scroll)
https://www.dropbox.com/s/p7pgqzefgp...oller.mp4?dl=0

Quick changes of direction seem to leave unblitted blocks. That's because I don't "finish" blitting unblitted blocks when switching directions (yet). Scrolling up and right leaves a trail of diagonal (unblitted) blocks from the top right corner.

I'm concerned that scrolling just a pixel in either or both directions per frame might seem slow. Seems like MAME runs Black Tiger a bit faster and scrolling one pixel is "faster," if that makes sense. But you can't go faster than the video refresh rate for frame rate. I can modify the code to scroll "faster" by implementing a scroll velocity--but 2 pixels per frame might seem excessive. I'd have to use a frame counter and scroll 3 pixels every two frames or something, which might seem too jerky.

Otherwise, things are working pretty well.

Guess the next step is to sort the "unblitted blocks" when switching direction and then... maybe the real fun begins
chadderack is offline  
 
Page generated in 0.04310 seconds with 11 queries