A generic text scroller! YAY!

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

Post Reply
CartCollector
Posts: 122
Joined: Mon Oct 30, 2006 8:32 pm

A generic text scroller! YAY!

Post by CartCollector »

Look, I finished something! For once. It scrolls text across the screen, and it comes with the source and a readme. Link
Last edited by CartCollector on Wed Aug 20, 2008 12:09 pm, edited 1 time in total.
Celius
Posts: 2159
Joined: Sun Jun 05, 2005 2:04 pm
Location: Minneapolis, Minnesota, United States
Contact:

Post by Celius »

Nice job! Scrolling's a pain, isn't it? I've been tweaking my 4-way scrolling engine for about 8 months off and on, because there are so many stupid things to deal with when scrolling. Anyways, keep up the good work!
User avatar
blargg
Posts: 3717
Joined: Mon Sep 27, 2004 8:33 am
Location: Central Texas, USA
Contact:

Post by blargg »

You left out the "Init.txt" file:

Code: Select all

        sei
        cld
        ldx #$40
        stx $4017
        ldx #$ff
        txs
        inx
        stx $2000
        stx $2001
        stx $4010
        
        bit $2002
vwait1: bit $2002
        bpl vwait1
        
        txa
clearram:
        sta $0000,x
        sta $0100,x
        sta $0200,x
        sta $0300,x
        sta $0400,x
        sta $0500,x
        sta $0600,x
        sta $0700,x
        inx
        bne clearram
        
vwait2: bit $2002
        bpl vwait2
CartCollector
Posts: 122
Joined: Mon Oct 30, 2006 8:32 pm

Post by CartCollector »

Thanks Blargg! File updated.

And yes, Celius, scrolling on the NES is a pain. Whenever I write a tile to the name table, in order to scroll it in, I have to write the address of the OPPOSITE name table after I've done that. And I imagine trying to do 8-way scrolling with the NES is even worse. I was able to find this article about 8-way scrolling techniques used on the C64.
Last edited by CartCollector on Wed Aug 20, 2008 1:36 pm, edited 2 times in total.
User avatar
Dwedit
Posts: 4470
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Post by Dwedit »

No builtin ASCII conversion? The shame!
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
CartCollector
Posts: 122
Joined: Mon Oct 30, 2006 8:32 pm

Post by CartCollector »

Yes, but 0-9 is, actually, $00 - $09. It makes using BCD for scores easier and faster. That, and I had to make the char set <= 85 tiles so I could fit all three versions in.
CartCollector
Posts: 122
Joined: Mon Oct 30, 2006 8:32 pm

Post by CartCollector »

UPDATE: The Generic Text Scroller is now version 0.2! It now comes with a program that allows you to convert text files into the .bin files that the program uses. Tedious hex editing is no longer necessary to change the .bin file.

Download

Screenshot:
Image
Post Reply