🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #55

Speeding up sample game from GAMETP10.ZIP

#55
From: Scott Ramsay
Date: Sat, 31 Oct 1992 19:31
27 lines
1333 bytes
I left out three lines that will greatly speed up RSAMPLE.EXE.
Of course you'll have to recompile RSAMPLE.PAS.

 In the file RSAMPLE.PAS, procedure SETPARMS has the following line:

       MyCycle := new(PMyCycle,init(34,24));

 Right after that line enter the following lines:

        MyCycle^.cyc_x := 13;
        MyCycle^.cyc_y := 20;
        MyCycle^.cyc_height := 127;

 What this does is change the size of the paralax scrolling
background.  By default it draws on the entire virtual page.
 Modifying the above variables, draws the wave background only
to the updated window size.

      cyc_x,cyc_y    is the top-left positon to draw the scroll.
      cyc_height     is the height of the scroll area.
      cyc_height     (not shown) is the width of the scroll area.
                     which applies only to horizontal scrolls.

  Hope this helps.

  Scott Ramsay
  ramsays@access.digex.com
Technical Details
Message-ID: <Bx03Jw.BEz@access.digex.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!digex.com!ramsays

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!digex.com!ramsays
From: ramsays@access.digex.com (Scott Ramsay)
Subject: Speeding up sample game from GAMETP10.ZIP
Message-ID: <Bx03Jw.BEz@access.digex.com>
Sender: usenet@access.digex.com
Nntp-Posting-Host: access.digex.com
Organization: Express Access Online Communications, Greenbelt, MD USA
Date: Sat, 31 Oct 1992 19:31:08 GMT
Lines: 28