Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Platformer demo
#11
(06-18-2020, 12:25 PM)shicky256 Wrote: The TLCS-900/H has multiple timer peripherals, one with an external clock input. On the NGPC, this is clocked by the horizontal sync counter. If you tell it to fire an interrupt when the timer is at a certain value, you can manipulate the scroll position register to artificially induce screen tearing. None of the "multiple scrolling background planes" actually overlap each other on the y axis so this produces the illusion of more layers than there are. See my code for more information.

It sounds very intriguing.  I'm working exclusively in C in my NGPC platformer development, and have very little knowledge of asm.  I'll have to see if I can make sense of your code.  I would be interested in getting a method like this to work in the C framework.

If I'm understanding the method correctly, you've actually got a full scroll plane drawn, divided into a few horizontal sections that are then torn at the seam and overlapped on top of each other.  Normally the entire scroll plane would move as a single unit, but you can make use of interrupts to move segments of it separately.
Reply


Messages In This Thread
Platformer demo - by shicky256 - 06-10-2020, 11:25 AM
RE: Platformer demo - by Loïc - 06-10-2020, 05:59 PM
RE: Platformer demo - by shicky256 - 06-10-2020, 10:23 PM
RE: Platformer demo - by Loïc - 06-10-2020, 11:15 PM
RE: Platformer demo - by Flavor - 06-11-2020, 01:51 AM
RE: Platformer demo - by sodthor - 06-11-2020, 02:15 AM
RE: Platformer demo - by Ahchay - 06-11-2020, 04:30 AM
RE: Platformer demo - by KeiDash - 06-11-2020, 08:03 AM
RE: Platformer demo - by winteriscoming - 06-16-2020, 01:15 AM
RE: Platformer demo - by shicky256 - 06-18-2020, 12:25 PM
RE: Platformer demo - by winteriscoming - 06-18-2020, 11:30 PM
RE: Platformer demo - by sodthor - 06-19-2020, 01:55 AM
RE: Platformer demo - by winteriscoming - 06-21-2020, 11:18 AM
RE: Platformer demo - by winteriscoming - 06-22-2020, 06:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)