Initial commit.

master v1.0
Alec Murphy 6 years ago
commit aaf00531bd
  1. 154
      Demo.HC
  2. BIN
      Demo.SND.Z
  3. BIN
      DemoBgr/001.GR.Z
  4. BIN
      DemoBgr/002.GR.Z
  5. BIN
      DemoBgr/003.GR.Z
  6. BIN
      DemoBgr/004.GR.Z
  7. BIN
      DemoBgr/005.GR.Z
  8. BIN
      DemoBgr/006.GR.Z
  9. BIN
      DemoBgr/007.GR.Z
  10. BIN
      DemoBgr/008.GR.Z
  11. BIN
      DemoBgr/009.GR.Z
  12. BIN
      DemoBgr/010.GR.Z
  13. BIN
      DemoBgr/011.GR.Z
  14. BIN
      DemoBgr/012.GR.Z
  15. BIN
      DemoBgr/013.GR.Z
  16. BIN
      DemoBgr/014.GR.Z
  17. BIN
      DemoBgr/015.GR.Z
  18. BIN
      DemoBgr/016.GR.Z
  19. BIN
      DemoBgr/017.GR.Z
  20. BIN
      DemoBgr/018.GR.Z
  21. BIN
      DemoBgr/019.GR.Z
  22. BIN
      DemoBgr/020.GR.Z
  23. BIN
      DemoBgr/021.GR.Z
  24. BIN
      DemoBgr/022.GR.Z
  25. BIN
      DemoBgr/023.GR.Z
  26. BIN
      DemoBgr/024.GR.Z
  27. BIN
      DemoBgr/025.GR.Z
  28. BIN
      DemoBgr/026.GR.Z
  29. BIN
      DemoBgr/027.GR.Z
  30. BIN
      DemoBgr/028.GR.Z
  31. BIN
      DemoBgr/029.GR.Z
  32. BIN
      DemoBgr/030.GR.Z
  33. BIN
      DemoBgr/031.GR.Z
  34. BIN
      DemoBgr/032.GR.Z
  35. BIN
      DemoBgr/033.GR.Z
  36. BIN
      DemoBgr/034.GR.Z
  37. BIN
      DemoBgr/035.GR.Z
  38. BIN
      DemoBgr/036.GR.Z
  39. BIN
      DemoBgr/037.GR.Z
  40. BIN
      DemoBgr/038.GR.Z
  41. BIN
      DemoBgr/039.GR.Z
  42. BIN
      DemoBgr/040.GR.Z
  43. BIN
      DemoBgr/041.GR.Z
  44. BIN
      DemoBgr/042.GR.Z
  45. BIN
      DemoBgr/043.GR.Z
  46. BIN
      DemoBgr/044.GR.Z
  47. BIN
      DemoBgr/045.GR.Z
  48. BIN
      DemoBgr/046.GR.Z
  49. BIN
      DemoBgr/047.GR.Z
  50. BIN
      DemoBgr/048.GR.Z
  51. BIN
      DemoBgr/049.GR.Z
  52. BIN
      DemoBgr/050.GR.Z
  53. BIN
      DemoBgr/051.GR.Z
  54. BIN
      DemoBgr/052.GR.Z
  55. BIN
      DemoBgr/053.GR.Z
  56. BIN
      DemoBgr/054.GR.Z
  57. BIN
      DemoBgr/055.GR.Z
  58. BIN
      DemoBgr/056.GR.Z
  59. BIN
      DemoBgr/057.GR.Z
  60. BIN
      DemoBgr/058.GR.Z
  61. BIN
      DemoBgr/059.GR.Z
  62. BIN
      DemoBgr/060.GR.Z
  63. BIN
      DemoBgr/061.GR.Z
  64. BIN
      DemoBgr/062.GR.Z
  65. BIN
      DemoBgr/063.GR.Z
  66. BIN
      DemoBgr/064.GR.Z
  67. BIN
      DemoBgr/065.GR.Z
  68. BIN
      DemoBgr/066.GR.Z
  69. BIN
      DemoBgr/067.GR.Z
  70. BIN
      DemoBgr/068.GR.Z
  71. BIN
      DemoBgr/069.GR.Z
  72. BIN
      DemoBgr/070.GR.Z
  73. BIN
      DemoBgr/071.GR.Z
  74. BIN
      DemoBgr/072.GR.Z
  75. BIN
      DemoBgr/073.GR.Z
  76. BIN
      DemoBgr/074.GR.Z
  77. BIN
      DemoBgr/075.GR.Z
  78. BIN
      DemoBgr/076.GR.Z
  79. BIN
      DemoBgr/077.GR.Z
  80. BIN
      DemoBgr/078.GR.Z
  81. BIN
      DemoBgr/079.GR.Z
  82. BIN
      DemoBgr/080.GR.Z
  83. BIN
      DemoBgr/081.GR.Z
  84. BIN
      DemoBgr/082.GR.Z
  85. BIN
      DemoBgr/083.GR.Z
  86. BIN
      DemoBgr/084.GR.Z
  87. BIN
      DemoBgr/085.GR.Z
  88. BIN
      DemoBgr/086.GR.Z
  89. BIN
      DemoBgr/087.GR.Z
  90. BIN
      DemoBgr/088.GR.Z
  91. BIN
      DemoBgr/089.GR.Z
  92. BIN
      DemoBgr/090.GR.Z
  93. BIN
      DemoBgr/091.GR.Z
  94. BIN
      DemoBgr/092.GR.Z
  95. BIN
      DemoBgr/093.GR.Z
  96. BIN
      DemoBgr/094.GR.Z
  97. BIN
      DemoBgr/095.GR.Z
  98. BIN
      DemoBgr/096.GR.Z
  99. BIN
      DemoBgr/097.GR.Z
  100. BIN
      DemoBgr/098.GR.Z
  101. Some files were not shown because too many files have changed in this diff Show More

@ -0,0 +1,154 @@
U0 PCSP()
{
I64 PCM_LEN=0;
I64 PCM_POS=0;
CDirEntry *de = FilesFind("/path_goes_here/Demo.SND.Z");
U8 *PCM_TABLE = FileRead(de->full_name,de->size);
PCM_LEN=0x785ED;
I64 hpet_s;
I64 period;
I64 sample_rate=16000;
while (TRUE) {
while (PCM_POS < PCM_LEN)
{
period=ClampI64(PCM_TABLE[PCM_POS]/2+16,1,U16_MAX);
OutU8(0x43,0xB6);
OutU8(0x42,period);
OutU8(0x42,period.u8[1]);
OutU8(0x61,3|InU8(0x61));
PCM_POS++;
hpet_s=HPET;
while (HPET<hpet_s+(sample_rate/32)) {Yield; };
};
PCM_POS=0;
};
};
U0 Demo()
{
SettingsPush;
AutoComplete;
WinMax;
ms.pos.x=-999;
CTask *snd_task = Spawn(&PCSP,,,2);
CDC *_bgr=DCNew(640,480);
CDC *_screen=DCAlias();
CDC *_text=GRRead("/path_goes_here/Text.GR.Z");
CDirEntry *de = FilesFind("/path_goes_here/*.GR.Z");
I64 d_ptr=de;
I64 f_ctr;
I64 p_x=0;
I64 p_y=0;
I64 p_c=0;
I64 t_cx[2048];
I64 t_cy[2048];
I64 t_x[2048];
I64 t_y[2048];
F64 t_z[2048];
U8 mtx[60];
U8 msg[2048];
U8 msg_spc[32];
StrCpy(msg_spc, " ");
StrCpy(mtx, " ' .() , - 0123456789:; ? ABCDEFGHIJKLMNOPQRSTUVWXYZ ");
StrCpy(msg, "");
StrCpy(msg+StrLen(msg), "INTRODUCING: TEMPLEOS V5.03");
StrCpy(msg+StrLen(msg), msg_spc);
StrCpy(msg+StrLen(msg), "DEMO BY: T.SHEIKHS 03-18-2017");
StrCpy(msg+StrLen(msg), msg_spc);
StrCpy(msg+StrLen(msg), "GREETZ: -TOSG-, TEMPLEOS IRC, MINEXEW, JOEY CROWBRO, COMPSCI GUY, BURT SAMPSON, JAMES BROPHY, FYS, TYREREXUS, AND THE REST OF THE TAD LIVE CHAT CREW");
StrCpy(msg+StrLen(msg), msg_spc);
StrCpy(msg+StrLen(msg), "SPECIAL THANKS TO: TERRY A. DAVIS");
StrCpy(msg+StrLen(msg), msg_spc);
StrCpy(msg+StrLen(msg), "PSALM 20:7 - SOME TRUST IN CHARIOTS AND SOME IN HORSES, BUT WE TRUST IN THE NAME OF THE LORD OUR GOD.");
StrCpy(msg+StrLen(msg), msg_spc);
StrCpy(msg+StrLen(msg), "THANKS FOR WATCHING :-) ");
StrCpy(msg+StrLen(msg), msg_spc);
I64 ctr=0;
while (ctr<StrLen(msg)) {
t_cx[ctr]=0;
t_cy[ctr]=0;
t_x[ctr]=0;
t_y[ctr]=0;
t_z[ctr]=0;
ctr++;
};
ctr=0;
while (ctr<StrLen(msg))
{
p_x=0;
p_y=0;
p_c=0;
while (p_c<StrLen(mtx)) {
if (mtx[p_c]==msg[ctr])
{
t_cx[ctr] = p_x;
t_cy[ctr] = p_y;
};
p_x++;
if (p_x>9) { p_x=0; p_y++; };
p_c++;
};
ctr++;
};
f_ctr=0;
while (!ScanKey)
{
_bgr = GRRead(de->full_name);
GrBlot(_screen,0,0,_bgr);
DCDel(_bgr);
f_ctr++;
if (f_ctr>4) {
if (de->next!=0) { de=de->next; } else { de=d_ptr; };
f_ctr=0;
};
ctr=0;
while (ctr<StrLen(msg)) {
if (t_x[ctr]>-32)
{
CDC *_tchr = DCExt(_text,0+(32*t_cx[ctr]),0+(32*t_cy[ctr]),31+(32*t_cx[ctr]),31+(32*t_cy[ctr]));
CSprite *_schr = DC2Sprite(_tchr);
if (t_y[ctr]==0) { t_y[ctr]=280; t_x[ctr]=672+(32*ctr); };
if (t_x[ctr]>-32 && t_x[ctr]<640)
{
Sprite3ZB(_screen,t_x[ctr],t_y[ctr],0,_schr,t_z[ctr]);
};
t_x[ctr] -= 1;
t_y[ctr] = 240 + (Sin(t_x[ctr]*.7 / 45) * 32);
Free(_schr);
DCDel(_tchr);
};
ctr++;
};
Sleep(0);
if (t_x[StrLen(msg)-1]<-31)
{
ctr=0;
while (ctr<StrLen(msg)) {
t_x[ctr]=0;
t_y[ctr]=0;
t_z[ctr]=0;
ctr++;
};
};
};
Kill(snd_task);
SndRst;
DCFill;
DirEntryDel(de);
DCDel(_text);
DCDel(_screen);
SettingsPop;
}
Demo;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save