home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 1: Collection A
/
17Bit_Collection_A.iso
/
files
/
709.dms
/
709.adf
/
Scrolling_text_demo.AMOS
/
Scrolling_text_demo.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1978-10-10
|
5KB
|
172 lines
Rem ------------------------------------------------------------------------
Rem This scrolling text demo was written by SENTINEL (Jason Shipman)
Rem After receiving AMOS it only took him 3 days to get this far!
Rem We decided to share his creation with you so that you can see how
Rem he did it and to give you encouragement.
Rem
Rem Can you do better?
Rem
Rem Send in your adaptations of this program - a free COMPILER will go
Rem to the best entry. You have upto the release of the Compiler to do
Rem your best. Try to make it work on an A500 and send it in on a RAMOS
Rem boot disc.
Rem
Rem Suggestions:
Rem
Rem * Remove the flicker! (Double Buffer will help)
Rem * Bounce the scroll
Rem * Alter the font
Rem * Add jazzy music
Rem * Add flying sprites
Rem * Procedure it!
Rem * Make it stand out from the crowd...
Rem ------------------------------------------------------------------------
SETUP:
Led Off
Close Editor
Curs Off
Dim X$(51),X(51),Y(51),XX(20),YY(20),O(4)
SCNT=1
CNT=31
SC$="5........4........3........2........1........AMOS ON LINE AND "
SC$=SC$+"FULLY OPERATIONAL..........CHECKING SENTINEL INPUT FREQUENCY"
SC$=SC$+".......SENTINEL OFFLINE???......NOW ONLINE!......SET FREQUENCY:10000"
SC$=SC$+"...OK.....NOW RECEIVING VERBAL MESSAGE FROM SENTINEL AKA "
SC$=SC$+"JASON SHIPMAN..........HI TO ALL PURCHASERS OF AMOS BY FRANCIOS LIONET (C)1990 MANDARIN/JAWX. "
SC$=SC$+"THIS DEMO IS DEDICATED TO CHRIS PAYNE, M.D. OF MANDARIN, FOR HIS "
SC$=SC$+"ENTHUSIASM AND INTEREST IN A DEMO MADE BY MYSELF (JASON SHIPMAN OR SENTINEL). "
SC$=SC$+"IT TOOK ME 3 DAYS TO GET MY SKILLS WITH AMOS THIS FAR, BUT FOR THOSE "
SC$=SC$+"OF YOU WHO MAY MOCK, I ALSO HAVE AN EIGHT HOUR A DAY JOB TO DO AS WELL. "
SC$=SC$+"I AM THE 21 YEAR YOUNG MANAGER OF A COMPUTER SHOP IN ELLESMERE PORT, "
SC$=SC$+"MERSEYSIDE. I AM A GRAPHICS ARTIST BY COMPUTER SKILL, AND WHO KNOWS, "
SC$=SC$+"MAYBE EVEN AN AMOS PROGRAMMER! I REALLY AM ENJOYING MYSELF WITH AMOS, "
SC$=SC$+"AND I INTEND TO WRITE A GAME THIS YEAR SO WATCH OUT FOR IT. "
SC$=SC$+"I AM IN A GAME PROGRAMMING TEAM AT THE MOMENT CALLED ATOMIC SOFTWARE, "
SC$=SC$+"AND I AM DOING THE GRAPHICS FOR A MAJOR 8 TO 16-BIT CONVERSION. "
SC$=SC$+"I WILL LET YOU KNOW WHAT IT IS WHEN AND IF WE GET A RELEASE DATE. "
SC$=SC$+" THANK YOU TO CHRIS PAYNE FOR THE HELP WITH SOUNDTRACKER CONVERSION, "
SC$=SC$+"MANDARIN PROJECTS MANAGER FOR HELP WITH UNDERSTANDING INTERRUPTS, "
SC$=SC$+"MUM FOR MAKING ME A STEADY STREAM OF CUPS OF TEA, UZ! FOR EXTRA "
SC$=SC$+"PROGRAMMING HELP, ARRON FOR GIVING ME INCENTIVE TO MIX NEW EFFECTS, "
SC$=SC$+"AND TO ME FOR BEING ME. GREETZ AND ALWIGHT MATES GO TO:- "
SC$=SC$+"ALLISTER BRIMBLE FOR BEING A GREAT MUSICIAN, ADAM AUREX FOR ALSO BEING "
SC$=SC$+"A GREAT MUSICIAN AND FRIEND, ALAN MITCHELL, ARRON(ST OWNER!), "
SC$=SC$+"PARADROID OF ILLUSIONS UK, MIKE, FITZY, BLADE, SNOWMAN, "
SC$=SC$+"PHOTON, VELKRO, TEKNICHIAN, PANTHER, PENGUIN, AVALANCHE, DIRE FIST, "
SC$=SC$+"KATWEAZLE, MOZART AND ANYONE ELSE WHO KNOWS ME!..........YOU CAN "
SC$=SC$+"CALL ME AFTER 6.30PM ON (051) 356 0015, BUT PLEASE, NO PIRATES, "
SC$=SC$+"BECAUSE I DONT COLLECT, TRADE OR ANYTHING LIKE THAT, THANKS...."
SC$=SC$+"BUT I WILL TRY TO HELP FELLOW AMOS PROGRAMMERS WHO NEED A HAND. "
SC$=SC$+"IF YOU WANT TO BUY AMOS, YOU CAN BUY IT FROM MANDARIN. "
SC$=SC$+"WELL THAT ABOUT WRAPS IT UP "
SC$=SC$+"UP FOR THIS SCROLL TEXT, TILL THE NEXT TIME. NOW I AM OFF TO "
SC$=SC$+"TRY AND MIX MY SCROLLY WITH 8+ BOBS WITHOUT FLICKER......BYEEEE!"
SC$=SC$+"..............."
Unpack 6 To 0
Screen Open 1,354,Screen Height,Screen Colour,Lowres
Screen Display 1,134,43,319,256
Def Scroll 1,1,223 To 353,255,-4,0
Curs Off
Cls 0
Flash Off
Screen Copy 0,0,160,256,205 To 1,40,0
Get Palette 0
SCRL$="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ@,!.:?/+-()#{} "
Gosub PIXD
Wait Vbl
For R=16 To 31
Colour R,Colour(R-16)
Next R
Hide On
Screen Copy 0,0,205,223,255 To 1,50,100
Curs Off
Get Bob 0,9,288,128 To 319,159
Paper 0 : Pen 5 : Locate 0,7 : Centre "AKA JASON SHIPMAN"
ROO:
Gosub STEXT :
Wait Vbl
Goto ROO
PIXD:
For F=1 To 51
Read X$(F),X(F),Y(F)
Next F
Return
Data "0",0,0
Data "1",32,0
Data "2",64,0
Data "3",96,0
Data "4",128,0
Data "5",160,0
Data "6",192,0
Data "7",224,0
Data "8",256,0
Data "9",288,0
Data "A",0,32
Data "B",32,32
Data "C",64,32
Data "D",96,32
Data "E",128,32
Data "F",160,32
Data "G",192,32
Data "H",224,32
Data "I",256,32
Data "J",288,32
Data "K",0,64
Data "L",32,64
Data "M",64,64
Data "N",96,64
Data "O",128,64
Data "P",160,64
Data "Q",192,64
Data "R",224,64
Data "S",256,64
Data "T",288,64
Data "U",0,96
Data "V",32,96
Data "W",64,96
Data "X",96,96
Data "Y",128,96
Data "Z",160,96
Data "@",192,96
Data ",",224,96
Data "!",256,96
Data ".",288,96
Data ":",0,128
Data "?",32,128
Data "/",64,128
Data "+",96,128
Data "-",128,128
Data "(",160,128
Data ")",192,128
Data "#",224,128
Data "{",256,128
Data "}",288,128
Data " ",288,223
Rem
Rem ********* SCROLL TEXT ROUTINE **********
STEXT:
Scroll 1
Add CNT,4
If CNT>31 Then Gosub NCHAR : CNT=0 : Inc SCNT : If SCNT>Len(SC$) Then SCNT=1
If Mouse Key=1 Then Goto EXIDEMO
Return
NCHAR:
E$=Mid$(SC$,SCNT,1)
E=Instr(SCRL$,E$)
Screen Copy 0,X(E),Y(E),X(E)+31,Y(E)+31 To 1,320,223
Return
EXIDEMO:
Screen Hide 0
XW=1 : YW=1 : XS=134 : YS=43
Amal Off
DDD:
Screen Display 1,XS,YS,319-XW,256-YW
Rem YS=YS+1
Rem If XW<319 Then XW=XW+1
If YW<255 Then YW=YW+1
If YW>=255 Then Goto FFF
Goto DDD
FFF:
Cls 0
Music Off
End