From: Julien Meyer <meyert@club-internet.fr>
Newsgroups: comp.sys.hp48
Subject: Re: ML animation question
Date: Thu, 16 Jul 1998 14:08:34 +0200
Organization: JADEWARE 1998
Lines: 221
Message-ID: <35ADED42.EB7956FA@club-internet.fr>
References: <6okhmg$v02$1@nnrp1.dejanews.com>
NNTP-Posting-Host: cergy3-48.club-internet.fr
Mime-Version: 1.0
X-Trace: front3.grolier.fr 900590676 32 194.158.126.48 (16 Jul 1998 12:04:36 GMT)
NNTP-Posting-Date: 16 Jul 1998 12:04:36 GMT
X-Mailer: Mozilla 4.05 [fr] (Win95; I)
Xref: republic.btigate.com comp.sys.hp48:13390


Hello

Daniel Lidstrom a crit:

> Hello,
>
> has anyone made the kind of animation where a name (usually) "waves". That is
> about the best description I can make. The letters of the name move like a
> vertical sinus wave. If anyone has done this, can you send some source or
> maybe just explain how it is done? I am just interested in doing one with my
> name, of course!

You may see such an animation playing my WARIOHP LAND game, this is in the intro one could
see my artist name moving using waves.

I'm glad to extract and fix a part of WarioHP source to help you, but I'm afraid you will need Jasm
or ADS to build this source code.. But at least, this will help you to see how to program waves.

Here is the ML sub-program dealing with Waves:


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SUNHP wave display subprogram %
% Extracted and fixed from the  %
% WARIOHP LAND game by J.MEYER  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% [LCD1] == @ of the screen (i.e. #8068Dh).			%
% R1 is used as a counter.						%
% R2 is the 48x15 Grob @ (i.e. SUNHP).				%
% R3 is the wave string: 00112234566778888877665432211000	%
% R4 is waves position in the screen. (@scr + #0035Dh).	%
% #80129h									%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


*WAVE

D0= [LCD1] A=DAT0.A 
LC 0035D A=A+C.A R4=A

GOSUB 17A4
$00112234566778888877665432211000
*17A4
C=RSTK R3=C 
GOSUB GROB
$000000000000C73BFCCE3000E73BFDCE7000E03B9DC66000603B9DC66000603B9DC66000603B9DC66000C33B9DFE3000063B9DC60000063B9DC60000063B9DC60000073B9DC60000E7FB9DC60000E3E99DC60000000000000000
*GROB
C=RSTK C=C+12.A R2=C D=0.A

*186C
LC 01000 DO { C--.A } WHILENC
?ST=1.12 RTNYES
C=D.A R1=C C=0.A

*192F
C=D.A R1=C C=0.A
LC 0E B=C.A A=B.A
ASL.A C=C+C.A C=C+C.A
A=A-C.A C=R2 A=A+C.A D1=A 

*1952
 D1=D1- 12
 GOSUB 19B0
 A=R4 
 C=B.A
 CSL.A
 C=C+C.A
 C=C+B.A
 C=C+B.A
 A=A+C.A
 C=DAT0.P
 D0=A 
 A=0.W
 A=DAT1.9

*1976
 A=A+A.W
 C=C-1.P
 GONC.1976

 DAT0=A.11
 B=B-1.A
 GONC 1952

 D1= 80129
*198F
 C=DAT1.A
 ?CBIT=0.1
 GOYES 198F

 D=D+1.A
 LC 010 OUT=C GOSBVL 01EEC ?CBIT=1.4 RTNYES
 GOTO 186C

*19B0
 C=0.A
 LC 1F
 A=C.A
 C=R1 
 A=A&C.A
 C=C+1.A
R1=C 
C=R3 
C=C+A.A
D0=C 
RTN 


--
Julien Meyer
http://www.chez.com/sunhp/
http://members.xoom.com/jadeware/