/[projet1]/public/oric/demos/SlideShowDemo/code/main.c
Defence Force logotype

Diff of /public/oric/demos/SlideShowDemo/code/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1038 by dbug, Tue Dec 17 21:24:32 2013 UTC revision 1045 by dbug, Fri Dec 20 17:42:53 2013 UTC
# Line 18  extern Mym_ReInitialize(); Line 18  extern Mym_ReInitialize();
18  // transitions.s  // transitions.s
19  extern unsigned char PictureLoadBuffer[];  extern unsigned char PictureLoadBuffer[];
20  extern void PictureTransitionFromTopAndBottom();  extern void PictureTransitionFromTopAndBottom();
21    extern void PictureTransitionVenicianStore();
22    extern void PictureTransitionUnroll();
23    
24    extern void PictureDoTransition();
25    
26    extern void PrintDescription();
27    
28    
29    extern void InitTransitionData();
30    
31  // scroller.s  // scroller.s
32  extern unsigned char FontBuffer[];  extern unsigned char FontBuffer[];
# Line 45  extern void Player_SetMusic_Birthday(); Line 54  extern void Player_SetMusic_Birthday();
54    
55  unsigned char CurrentMusic=LOADER_FIRST_MUSIC;  unsigned char CurrentMusic=LOADER_FIRST_MUSIC;
56    
57    /*
58    void PrintDescription(const char* author,const char* name)
59    {
60            char* textLine;
61    
62            textLine=(char*)0xbb80+40*25;
63            memset(textLine,32,40);
64    
65            memcpy(textLine,author,strlen(author));
66            memcpy(textLine+20,name,strlen(name));
67    }
68    */
69    
70  void main()  void main()
71  {  {
72          int y;          int y;
# Line 54  void main() Line 76  void main()
76          }          }
77          MusicLooped=1;          MusicLooped=1;
78    
79            // Load the 6x8 font
80            LoaderApiEntryIndex=LOADER_FONT_6x8_ARTDECO;
81            LoadFile();
82    
83            // Some basic inits
84            InitTransitionData();
85    
86          System_InstallIRQ_SimpleVbl();          System_InstallIRQ_SimpleVbl();
87    
88          // Load and play the music          // Load and play the music
# Line 111  void main() Line 140  void main()
140                          LoadFile();                          LoadFile();
141    
142                          //memcpy((unsigned char*)0xa000,PictureLoadBuffer,8000);                          //memcpy((unsigned char*)0xa000,PictureLoadBuffer,8000);
143                          PictureTransitionFromTopAndBottom();                          //PictureTransitionFromTopAndBottom();
144                            //PictureTransitionVenicianStore();
145                            //PictureTransitionUnroll();
146                            //PrintDescription("Twilighte","Barbitoric");
147                            PrintDescription();
148                            PictureDoTransition();
149    
150                          Pause();                          Pause();
151                  }                  }

Legend:
Removed from v.1038  
changed lines
  Added in v.1045

  ViewVC Help
Powered by ViewVC 1.1.26