-
Notifications
You must be signed in to change notification settings - Fork 2
/
CHOCO.TXT
2416 lines (2216 loc) · 45.2 KB
/
CHOCO.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
'®¯°²³´µ¶·¸¹º»¼½¾¿Á À Á  ÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâðñòóôõö÷øùúûüýþÿ
'½ ¼ » º ¹ ¸ · ¶ µ ´ ³ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö ×
COMMON SHARED player$, money, port, portstate()
'player$=player name
'money=money you have
'port=number of menu4
'portstate()=open or closed
'inventory()=what you have
DECLARE FUNCTION nospc$ (s$)
DECLARE SUB box (s$, x1, y1, x2, y2, c1, c2, c3)
DECLARE SUB accomodate (s$, x1, x2)
DECLARE SUB menu (x, n)
DECLARE SUB click1 ()
DECLARE FUNCTION world ()
DECLARE SUB requirement (s$)
DECLARE SUB d1item (x, y, n, c, t)
DECLARE SUB d1bars (x, y, n, c)
DECLARE SUB d1squares (x, y, n, c)
DECLARE SUB d1infusions (x, y, n, c)
DECLARE SUB d1truffles (x, y, n, c)
DECLARE FUNCTION r1item$ (n, x, t)
DECLARE FUNCTION r1bars$ (n, x)
DECLARE FUNCTION r1squares$ (n, x)
DECLARE FUNCTION r1infusions$ (n, x)
DECLARE FUNCTION r1truffles$ (n, x)
DECLARE FUNCTION r1world$ (n, x)
DECLARE FUNCTION cost (n, x)
DECLARE SUB i1bars ()
DECLARE SUB i1squares ()
DECLARE SUB i1infusions ()
DECLARE SUB i1truffles ()
DECLARE FUNCTION win1$ (n)
DECLARE FUNCTION win2$ (n, x)
DECLARE SUB dnplayer (s$)
DECLARE SUB dnmoney (m AS LONG)
DECLARE FUNCTION dnitem$ ()
DECLARE FUNCTION pause ()
DEFLNG M
'keys
CONST backspc = 8, enter = 13, htab = 9, esc = 27
CONST left = 75, right = 77, up = 72, down = 80
CONST uplt = 71, uprt = 73, dnlt = 79, dnrt = 81
CONST insert = 82, home = 73, pageup = 71, del = 83, endk = 81, pagedn = 79
CONST kf1 = 59, kf2 = 60, kf3 = 61, kf4 = 62, kf5 = 63, kf6 = 64, kf7 = 65, kf8 = 66, kf9 = 67, kf10 = 68, kf11 = 133, kf12 = 134
GOTO game
CLS
COLOR 1
PRINT "ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»"
PRINT "º Loading game ... ÓÄÄÄÄÄÄÄÄÄÄ·"
PRINT "ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ"
FOR i = 1 TO 78 STEP 3
LOCATE 8, 1
COLOR 12
'FOR j = 1 TO 79
'PRINT CHR$(178);
'SOUND 21000, .1
'NEXT
box CHR$(176), i, 10, i + 3, 14, 4, 3, 2
click1
LOCATE 8, 1
PRINT SPC(79);
NEXT
nn: CLS
COLOR 12
PRINT SPC(25); " º º"
PRINT SPC(25); "ÍÍÎÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÎÍÍ"
PRINT SPC(25); " ÇÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĶ"
PRINT SPC(25); " º CHOCOLATE FACTORY º"
PRINT SPC(25); " ÇÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĶ"
PRINT SPC(25); "ÍÍÎÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÎÍÍ"
PRINT SPC(25); " º º"
COLOR 15
LOCATE 4, 31
PRINT "CHOCOLATE FACTORY";
'main menu
box " Main menu", 1, 10, 80, 25, 7, 5, 4
menu 1, 1
ps = 1
DO UNTIL (k$ = CHR$(enter))
k$ = ""
WHILE k$ = ""
k$ = INKEY$
WEND
SELECT CASE k$
CASE CHR$(0) + CHR$(up)
ps = ps - 1
IF (ps < 1) THEN ps = 5
menu 1, ps
CASE CHR$(0) + CHR$(down)
ps = ps + 1
IF (ps > 5) THEN ps = 1
menu 1, ps
CASE CHR$(esc)
GOTO quit
CASE CHR$(enter)
EXIT DO
CASE ELSE
END SELECT
LOOP
GOTO n1
quit: CLS
PRINT "Credits : Subhajit Sahu"
SOUND 21000, 40
SYSTEM
n1:
IF (ps = 4) THEN
CLS
COLOR 15, 0
box "Credits", 1, 10, 40, 20, 7, 6, 4
COLOR 15
LOCATE 13, 15
PRINT "Subhajit Sahu";
LOCATE 14, 15
PRINT "And my freinds.";
k$ = INPUT$(1)
CLS
GOTO nn
END IF
IF (ps = 3) THEN
CLS
COLOR 15, 0
box "Objective", 1, 1, 40, 20, 7, 6, 4
LOCATE 5, 3
COLOR 15
PRINT "Your objective is to";
LOCATE 6, 3
PRINT "make more and more money";
LOCATE 7, 3
PRINT "by selling chocolates";
k$ = INPUT$(1)
box "Controls", 1, 1, 40, 20, 7, 6, 4
LOCATE 5, 3
COLOR 15
PRINT "Controls are easy";
LOCATE 6, 3
PRINT "you will know it while playing";
LOCATE 7, 3
PRINT "Ctrl + letter is is the";
LOCATE 8, 3
PRINT "combination key for any task";
k$ = INPUT$(1)
CLS
GOTO nn
END IF
IF (ps = 1) THEN GOTO game
IF (ps = 2) THEN GOTO cont
SYSTEM
'½ ¼ » º ¹ ¸ · ¶ µ ´ ³ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö ×
game:
'printing boxes
CLS
COLOR 10
LOCATE 23, 1
PRINT "ÉÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍËÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍ»";
LOCATE 24, 1
PRINT "º Player º 0000000000$ º Item º World º Messages º Factory Status º Inventory º";
LOCATE 25, 1
PRINT "ÈÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÊÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍͼ";
d1bars 1, 1, 14, 0
a$ = dnitem$
cont:
DEFSNG M
SUB accomodate (s$, x1, x2)
ln = CSRLIN
LOCATE ln, x1
FOR i = 1 TO LEN(s$)
FOR j = i TO LEN(s$)
k$ = MID$(s$, j, 1)
IF (k$ = " " OR k$ = ".") THEN
wl = j - i + 1
p = POS(ln)
IF (x2 - p >= wl) THEN
PRINT MID$(s$, i, j - i + 1);
i = j
EXIT FOR
ELSE
ln = ln + 1
LOCATE ln, x1
PRINT MID$(s$, i, j - i + 1);
i = j
EXIT FOR
END IF
END IF
NEXT
NEXT
END SUB
SUB box (s$, x1, y1, x2, y2, c1, c2, c3)
FOR i = 1 TO x2 - x1 - 2
COLOR c3, 0
LOCATE y1, x1
PRINT "É";
LOCATE y1 + 1, x1
PRINT "º";
LOCATE y1 + 2, x1
PRINT "Ì";
FOR j = 1 TO i
SOUND 21000, .03
COLOR c3, 0
LOCATE y1, x1 + j
PRINT "Í";
LOCATE y1 + 2, x1 + j
PRINT "Í";
COLOR c1, c2
LOCATE y1 + 1, x1 + j
PRINT " ";
NEXT
COLOR c3, 0
LOCATE y1, x1 + i + 1
PRINT "»";
LOCATE y1 + 1, x1 + i + 1
PRINT "º";
LOCATE y1 + 2, x1 + i + 1
PRINT "¹";
LOCATE y1 + 3, x1
PRINT "È";
FOR k = x1 + 1 TO x1 + i
PRINT "Í";
NEXT
PRINT "¼";
NEXT
LOCATE y1 + 1, x1 + 1
COLOR c1, c2
PRINT s$;
d = x2 - x1 - 2
COLOR c3, 0
FOR i = y1 + 3 TO y2
FOR j = y1 + 3 TO i - 1
SOUND 21000, .1
LOCATE j, x1
PRINT "º"; SPC(d); "º";
NEXT
LOCATE i, x1
PRINT "È";
FOR k = 1 TO d
PRINT "Í";
NEXT
PRINT "¼";
NEXT
END SUB
SUB click1
FOR i = 200 TO 700 STEP 100
SOUND i, .05
SOUND i * 10, .05
SOUND i * 5, .05
NEXT
END SUB
FUNCTION cost (n, x)
SHARED port
DIM plc(15)
plc(1) = 1005
plc(2) = 1505
plc(3) = 1208
plc(4) = 1710
plc(5) = 1312
plc(6) = 2220
plc(7) = 3201
plc(8) = 3210
plc(9) = 5020
plc(10) = 4505
plc(11) = 6010
plc(12) = 6506
plc(13) = 7013
plc(14) = 7522
plc(15) = 6805
pp1 = INT(plc(port) / 100)
pp2 = plc(port) MOD 100
lp1 = INT(plc(n) / 100)
lp2 = plc(n) MOD 100
dis = INT(SQR(ABS(pp1 - lp1) * ABS(pp1 - lp1) + ABS(pp2 - lp2) * ABS(pp2 - lp2)))
SELECT CASE x
CASE 1
rt = INT(dis / 5)
IF (rt = 0) THEN rt = 1
CASE 2
rt = INT(31.4 * dis)
CASE 3
IF (dis <= 5) THEN rt = 1 ELSE rt = 2
CASE ELSE
END SELECT
cost = rt
END FUNCTION
SUB d1bars (x, y, n, c)
IF (c = 1) THEN z = 16
SELECT CASE n
CASE 1
c1 = 6
c2 = 4
c3 = 6
s$ = "Ä"
CASE 2
c1 = 4
c2 = 6
c3 = 4
s$ = "Ä"
CASE 3
c1 = 6
c2 = 7
c3 = 15
s$ = "Ä"
CASE 4
c1 = 6
c2 = 4
c3 = 5
s$ = "ø"
CASE 5
c1 = 6
c2 = 4
c3 = 14
s$ = "ö"
CASE 6
c1 = 4
c2 = 6
c3 = 0
s$ = "ö"
CASE 7
c1 = 6
c2 = 4
c3 = 14
s$ = "ð"
CASE 8
c1 = 6
c2 = 4
c3 = 10
s$ = "×"
CASE 9
c1 = 4
c2 = 6
c3 = 0
s$ = "ð"
CASE 10
c1 = 4
c2 = 6
c3 = 0
s$ = "×"
CASE 11
c1 = 4
c2 = 6
c3 = 0
s$ = "÷"
CASE 12
c1 = 4
c2 = 6
c3 = 0
s$ = "°"
CASE 13
c1 = 4
c2 = 0
c3 = 6
s$ = "²"
CASE 14
c1 = 15
c2 = 7
c3 = 7
s$ = "Ä"
CASE 15
c1 = 4
c2 = 6
c3 = 0
s$ = "ø"
CASE ELSE
END SELECT
COLOR c1 + z, c2
LOCATE y, x
PRINT "ÚÄÂÄÂÄÂÄÂÄ¿";
FOR i = 1 TO 2
LOCATE y + i, x
PRINT "Ã";
FOR j = 1 TO 4
COLOR c3 + z, c2
PRINT s$;
COLOR c1 + z, c2
PRINT "Å";
NEXT
COLOR c3 + z, c2
PRINT s$;
COLOR c1 + z, c2
PRINT "´";
NEXT
COLOR c1 + z, c2
LOCATE y + 3, x
PRINT "ÀÄÁÄÁÄÁÄÁÄÙ";
COLOR 15, 0
END SUB
SUB d1infusions (x, y, n, c)
IF (c = 1) THEN z = 16
SELECT CASE n
CASE 1
c1 = 6
c3 = 4
s$ = "õ"
CASE 2
c1 = 6
c3 = 7
s$ = "Í"
CASE 3
c1 = 6
c3 = 4
s$ = "ß"
CASE 4
c1 = 4
c3 = 6
s$ = "Ø"
CASE 5
c1 = 4
c3 = 5
s$ = "÷"
CASE 6
c1 = 7
c3 = 5
s$ = "þ"
CASE 7
c1 = 4
c3 = 14
s$ = "Ä"
CASE 8
c1 = 6
c3 = 6
s$ = "Û"
CASE 9
c1 = 8
c3 = 10
s$ = "°"
CASE 10
c1 = 4
c3 = 13
s$ = "Ü"
CASE 11
c1 = 4
c3 = 4
s$ = "â"
CASE 12
c1 = 13
c3 = 4
s$ = "Ü"
CASE 13
c1 = 10
c3 = 4
s$ = "¾"
CASE 14
c1 = 14
c3 = 6
s$ = "ó"
CASE 15
c1 = 4
c3 = 15
s$ = "ø"
CASE ELSE
END SELECT
COLOR c1 + z
LOCATE y, x
PRINT "Öз";
LOCATE y + 1, x
PRINT "º";
COLOR c3 + z, c1
PRINT s$;
COLOR c1 + z, 0
PRINT "º";
LOCATE y + 2, x
PRINT "Èͼ";
END SUB
SUB d1item (y, x, n, c, t)
SELECT CASE t
CASE 1
d1bars x, y, n, c
CASE 2
d1squares x, y, n, c
CASE 3
d1infusions x, y, n, c
CASE 4
d1truffles x, y, n, c
CASE ELSE
END SELECT
END SUB
SUB d1squares (x, y, n, c)
IF (c = 1) THEN z = 16
SELECT CASE n
CASE 1
c1 = 8
c3 = 4
s$ = "°"
CASE 2
c1 = 8
c3 = 4
s$ = "²"
CASE 3
c1 = 8
c3 = 4
s$ = "º"
CASE 4
c1 = 4
c3 = 6
s$ = "ø"
CASE 5
c1 = 4
c3 = 6
s$ = "÷"
CASE 6
c1 = 6
c3 = 4
s$ = "Û"
CASE 7
c1 = 4
c3 = 5
s$ = "ð"
CASE 8
c1 = 6
c3 = 7
s$ = "×"
CASE 9
c1 = 4
c3 = 14
s$ = "þ"
CASE 10
c1 = 4
c3 = 10
s$ = "ô"
CASE 11
c1 = 4
c3 = 14
s$ = "â"
CASE 12
c1 = 15
c3 = 4
s$ = "Ü"
CASE 13
c1 = 7
c3 = 6
s$ = "¾"
CASE 14
c1 = 6
c3 = 7
s$ = "ó"
CASE 15
c1 = 4
c3 = 14
s$ = "ø"
CASE ELSE
END SELECT
COLOR c1 + z
LOCATE y, x
PRINT "ÉÍ»";
LOCATE y + 1, x
PRINT "º";
COLOR c3 + z, c1
PRINT s$;
COLOR c1 + z, 0
PRINT "º";
LOCATE y + 2, x
PRINT "Èͼ";
END SUB
SUB d1truffles (x, y, n, c)
IF (c = 1) THEN z = 16
SELECT CASE n
CASE 1
c1 = 4
c3 = 4
s$ = "Û"
CASE 2
c1 = 6
c3 = 6
s$ = "Û"
CASE 3
c1 = 4
c3 = 10
s$ = "Á"
CASE 4
c1 = 4
c3 = 5
s$ = "ø"
CASE 5
c1 = 4
c3 = 7
s$ = "÷"
CASE 6
c1 = 6
c3 = 7
s$ = "ð"
CASE 7
c1 = 4
c3 = 15
s$ = "ß"
CASE 8
c1 = 4
c3 = 14
s$ = "²"
CASE 9
c1 = 4
c3 = 6
s$ = "°"
CASE 10
c1 = 4
c3 = 7
s$ = "Î"
CASE 11
c1 = 4
c3 = 8
s$ = "â"
CASE 12
c1 = 13
c3 = 6
s$ = "â"
CASE 13
c1 = 4
c3 = 10
s$ = "¾"
CASE 14
c1 = 4
c3 = 13
s$ = "ó"
CASE 15
c1 = 3
c3 = 3
s$ = "ø"
CASE ELSE
END SELECT
COLOR c1 + z
LOCATE y, x
PRINT "ÖÄ·";
LOCATE y + 1, x
PRINT "º";
COLOR c3 + z, c1
PRINT s$;
COLOR c1 + z, 0
PRINT "º";
LOCATE y + 2, x
PRINT "Èͼ";
END SUB
FUNCTION dnitem$
DIM area(25, 80), cl(25, 80)
FOR i = 1 TO 25
FOR j = 1 TO 80
area(i, j) = SCREEN(i, j)
cl(i, j) = SCREEN(i, j, 1)
NEXT
NEXT
dnitem1: box "Items", 1, 1, 81, 25, 12, 13, 14
menu 2, 1
ps = 1
k$ = ""
DO UNTIL (k$ = CHR$(enter) OR k$ = CHR$(esc))
k$ = ""
WHILE k$ = ""
k$ = INKEY$
WEND
SELECT CASE k$
CASE CHR$(0) + CHR$(up)
ps = ps - 1
IF (ps < 1) THEN ps = 4
menu 2, ps
CASE CHR$(0) + CHR$(down)
ps = ps + 1
IF (ps > 4) THEN ps = 1
menu 2, ps
CASE "`"
EXIT DO
CASE CHR$(esc)
EXIT DO
CASE CHR$(enter)
EXIT DO
CASE ELSE
END SELECT
LOOP
IF (k$ = CHR$(esc)) THEN GOTO eitem
IF (k$ = "`") THEN
CLS
FOR i = 1 TO 25
FOR j = 1 TO 80
LOCATE i, j
cl1 = INT(cl(i, j) / 128) + (cl(i, j) MOD 16)
cl2 = INT(cl(i, j) / 16) MOD 8
COLOR cl1, cl2
PRINT CHR$(area(i, j));
NEXT
NEXT
ERASE area, cl
GOTO eitem
END IF
IF (k$ = CHR$(enter)) THEN
k$ = win1$(ps)
IF (k$ = CHR$(esc)) THEN
GOTO eitem
ELSEIF (k$ = "`") THEN
GOTO dnitem1
ELSE
GOTO eitem
END IF
END IF
eitem: dnitem$ = k$
END FUNCTION
SUB dnmoney (m AS LONG)
mm$ = STR$(m)
IF (m > 0) THEN mm$ = RIGHT$(mm$, LEN(mm$) - 1)
FOR i = LEN(mm$) TO 10
mm$ = " " + mm$
NEXT
LOCATE 24, 12
COLOR 13, 2
PRINT mm$;
COLOR , 0
END SUB
SUB dnplayer (s$)
IF (LEN(s$) > 6) THEN a$ = LEFT$(s$, 6) ELSE a$ = s$
LOCATE 24, 3
COLOR 15, 14
PRINT a$;
COLOR , 0
END SUB
SUB i1bars
box " Bars", 1, 1, 80, 25, 6, 5, 4
COLOR 3
LOCATE 4, 3
PRINT "Luscious, luxurious bars made with the finest";
LOCATE 5, 5
PRINT "chocolates accented in a wide variety of";
LOCATE 6, 17
PRINT "flavours.";
'1basic chocolate bars
d1bars 8, 3, 1, 0
'2dark chocolate bars
d1bars 8, 18, 2, 0
'3milk chocolate bars
d1bars 8, 33, 3, 0
'4chocolate bars w/almonds
d1bars 8, 48, 4, 0
'5chocolate bars w/cashews
d1bars 8, 63, 5, 0
'6chocolate bars w/coffee
d1bars 13, 3, 6, 0
'7chocolate bars w/trinidad lemons
d1bars 13, 18, 7, 0
'8chocolate bars w/fresh mint
d1bars 13, 33, 8, 0
'9exclusive quito cacao chocolate bars
d1bars 13, 48, 9, 0
'10special triniad cacao chocolate bars
d1bars 13, 63, 10, 0
'11mahajanga cacao chocolate bars
d1bars 18, 3, 11, 0
'12colombo cacao chocolate bars
d1bars 18, 18, 12, 0
'13extra dark chocolate bars
d1bars 18, 33, 13, 0
'14white chocolate bars
d1bars 18, 48, 14, 0
'15dark bars w/almonds
d1bars 18, 63, 15, 0
LOCATE 23, 3
PRINT "Click on a chocolate to view its page in the";
LOCATE 24, 16
PRINT "Recipie Book.";
END SUB
SUB i1infusions
box " Infusions", 1, 1, 80, 25, 6, 5, 4
COLOR 3
LOCATE 4, 3
PRINT "Creamy European-style Ganache centers in a";
LOCATE 5, 5
PRINT "range of exotic spices, fruits and nuts that";
LOCATE 6, 13
PRINT "simply melt in the mouth.";
'1milk chocolate infusions
d1infusions 8, 3, 1, 0
'2coconut chocolate infusions
d1infusions 8, 18, 2, 0
'3cherry chocolate infusions
d1infusions 8, 33, 3, 0
'4coffee chocolate infusions
d1infusions 8, 48, 4, 0
'5raspberry chocolate infusions
d1infusions 8, 63, 5, 0
'6vanilla almond infusions
d1infusions 13, 3, 6, 0
'7lemon chocolate infusions
d1infusions 13, 18, 7, 0
'8cinnamon chocolate infusions
d1infusions 13, 33, 8, 0
'9mint chocolate infusions
d1infusions 13, 48, 9, 0
'10mahajanga cherry chocolate infusions
d1infusions 13, 63, 10, 0
'11quito chocolate coffee infusions
d1infusions 18, 3, 11, 0
'12raspberry colombo cacao chocolate infusions
d1infusions 18, 18, 12, 0
'13raspberry mint mahajanga chocolate infusions
d1infusions 18, 33, 13, 0
'14colombo cacao cofee & almond infusions
d1infusions 18, 48, 14, 0
'15sulawesi cacao macadamia infusions
d1infusions 18, 63, 15, 0
LOCATE 23, 3
PRINT "Click on a chocolate to view its page in the";
LOCATE 24, 16
PRINT "Recipie Book.";
END SUB
SUB i1squares
box " Squares", 1, 1, 80, 25, 6, 5, 4
COLOR 3
LOCATE 4, 3
PRINT "Perfect for gifts and special occasion, these";
LOCATE 5, 5
PRINT "indulgent treats won't be soon forgotten.";
'1extra dark chocolate squares
d1squares 8, 3, 1, 0
'2dark chocolate squares w/cashews
d1squares 8, 18, 2, 0
'3dark chocolate squares w/almonds
d1squares 8, 33, 3, 0
'4hazelnut squares
d1squares 8, 48, 4, 0
'5cherry chocolate squares
d1squares 8, 63, 5, 0
'6cinnamon chocolate squares
d1squares 13, 3, 6, 0
'7caramel chocolate squares
d1squares 13, 18, 7, 0
'8milk chocolate hazelnut squares
d1squares 13, 33, 8, 0
'9coffee chocolate squares
d1squares 13, 48, 9, 0
'10mint chocolate squares
d1squares 13, 63, 10, 0
'11almond chocolate squares
d1squares 18, 3, 11, 0
'12cherry squares w/vanilla
d1squares 18, 18, 12, 0
'13cinnamon chocolate squares w/vanilla
d1squares 18, 33, 13, 0
'14milk chocolate squares
d1squares 18, 48, 14, 0
'15almond chocolate squres
d1squares 18, 63, 15, 0
LOCATE 23, 3
PRINT "Click on a chocolate to view its page in the";
LOCATE 24, 16
PRINT "Recipie Book.";
END SUB
SUB i1truffles
box " Truffles", 1, 1, 80, 25, 6, 5, 4
COLOR 3
LOCATE 4, 3
PRINT "Classic concoctions, created by blending the";
LOCATE 5, 3
PRINT "finest indrigents into creamy,divine balls of";
LOCATE 6, 13
PRINT "pure bliss.";
'1dark chocolate truffles
d1truffles 8, 3, 1, 0
'2milk chocolate truffles
d1truffles 8, 18, 2, 0
'3chocolate mint truffles
d1truffles 8, 33, 3, 0
'4almond chocolate truffles
d1truffles 8, 48, 4, 0
'5caramel chocolate truffles
d1truffles 8, 63, 5, 0
'6hazelnut milk truffles
d1truffles 13, 3, 6, 0
'7coconut lemon truffles
d1truffles 13, 18, 7, 0
'8coffee cinnamon truffles
d1truffles 13, 33, 8, 0
'9mahajanga cacao cinnamon cherry truffles
d1truffles 13, 48, 9, 0
'10sulawesi cacao lemon macadamia truffles
d1truffles 13, 63, 10, 0
'11colombo cacao coffee caramel truffles