Graphics Demo

This is a discussion on Graphics Demo within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hi... i'm trying to write a program like the old Amiga Demos and i need to scroll text across the ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    2

    Question Graphics Demo

    Hi... i'm trying to write a program like the old Amiga Demos and i need to scroll text across the screen.
    I have know clue where 2 start? it doesn't need 2 be fancy or use BGI graphics.

    note: i'm using Borland C++ 3.0 for dos.

  2. #2
    muttski
    Guest
    In text mode or graphics mode??? Hey thats a good idea for a feature for MuttDosLibrary (damn good graphics+everything else library)

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    2
    graphics mode

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    140
    Im sure BGI has a DisplayTextXY() function, use that to display tour text then every time you go through a loop decrement the X value to move the text left, increment it to go right. Thats the basic idea.
    Acos is good

  5. #5
    Unregistered
    Guest
    yeah but i think displaytextxy() only goes to the edge of the screen?

  6. #6
    Unregistered
    Guest
    so, the only problem is if it wraps around

  7. #7
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    What you could do is act like the screen is 2x the width of the string, and just have black space for the other half. That way, you display everything you need to, but the user is unaware of the string actually still travelling elsewhere - so it can't wrap around before the first character is finished. I liked those old games.... sure there's nothing like blwoing off some dude's head, but Police/Space/King's Quest and all those games were awesome!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Second MoA Demo Tomorrow
    By harryP in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 09-30-2002, 07:22 PM
  2. SkyLock graphics demo (scrolling, etc.)
    By jdinger in forum Game Programming
    Replies: 9
    Last Post: 06-30-2002, 08:18 PM
  3. SkyLock graphics engine demo
    By jdinger in forum Game Programming
    Replies: 18
    Last Post: 06-26-2002, 07:58 AM
  4. Graphics Devices and Cprintf clash
    By etnies in forum C Programming
    Replies: 6
    Last Post: 05-09-2002, 11:14 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21