0 Members and 1 Guest are viewing this topic.
So "send me" your program
Quote from: Fast Crash on December 18, 2010, 10:09:48 amI'm playing civilization V so it will be later Hum... OK.It didn't work, the appvar is created, but the HS is always 0, both for easy and hard.Code: [Select]!If GetCalc(NAME)→HFill(0→{GetCalc(NAME,SIZE)→H},SIZE-1)EndI gotta try that too Runner always optimizing
I'm playing civilization V so it will be later
!If GetCalc(NAME)→HFill(0→{GetCalc(NAME,SIZE)→H},SIZE-1)End
!If GetCalc(NAME)0→{GetCalc(NAME,SIZE)→H}Fill(H,SIZE-1)End
.UPONG"<easy>"->Str4"SCORE:"->Str2[6363636363633F1F]->Pic3[FCFEC6C6FEFCC0C0C0]->Pic4[3C7EE7C3C3E77E3C]->Pic5[00CEDFF3E3C3C3C3]->Pic6[3F7FC3C37F3F037FFE]->Pic7[FF00000000000000]->Pic8DiagnosticOffLbl 1ClrDrawClrHomeFix 5.Code for imagePt-On(25,10,Pic3 Pt-On(34,9,Pic4 Pt-On(34,10,Pic4+1 Pt-On(42,10,Pic5 Pt-On(51,10,Pic6 Pt-On(60,9,Pic7 Pt-On(60,10,Pic7+1Pt-On(0,19,Pic8Pt-On(8,19,Pic8Pt-On(16,19,Pic8Pt-On(24,19,Pic8Pt-On(32,19,Pic8Pt-On(40,19,Pic8Pt-On(48,19,Pic8Pt-On(56,19,Pic8Pt-On(64,19,Pic8Pt-On(72,19,Pic8Pt-On(80,19,Pic8Pt-On(88,19,Pic8Pt-On(96,19,Pic8Text(32,21,"2nd:playText(35,28,Str4Text(29,35,"clear:quitGetcalc("appvPongHS")->H!If HGetcalc("appvPongHS,8)->HFor(A,0,18)0->{H+A}EndIf sub(CS,"<easy>",Str4Text(29,42,"Highscore:",{H}>DecElseText(29,42,"Highscore:",{H+1}>DecEndFix 3Text(0,49," made by: David Gomes Text(0,55," Quigibo Fix 2DispGraphRepeat getKey->thetaEndIf getKey(3) or getKey(19)104->{Str4+1} 114->{Str4+3} 100->{Str4+4}EndIf getKey(2) or getKey(35)101->{Str4+1}115->{Str4+3}121->{Str4+4}EndIf theta=15Fix 4ClrHomeClrDrawReturnEnd.THIS IS THE START OF THE GAME CODEIf theta=54ClrDraw0->S-1->D44->Z*256->X10->Ysub(HT)Repeat getKey(15)If sub(CS,"<hard>",Str4)5->MElse2->MEnd.MOVE LEFT CODEIf getKey(2) or getKey(35) and (Z!=0Z-M->ZEnd.MOVE RIGHT CODEIf getKey(3) or getKey(19) and (Z!=88Z+M->ZEnd.RANDOM POSITION FOR BALLX+V->XY+D->Y.LOSING CODE If Y>70Goto DEnd.RANDOM POSITION FOR BALL WHEN HIT UPPER BARRIERIf Y=0sub(HT)End.HIT IMAGE CODEIf Y=54 and (abs(X/256-Z)<8sub(HT)S+1->SEndIf X/256=0 or (X/256=88~V->V+X->XEndClrDraw[000000000000FFFF]->Pic1[0000182C3C180000]->Pic2If sub(CS,"<easy>",Str4Line(0,0,96,0)Line(0,0,0,64)Line(95,0,95,63)Line(0,63,95,63)EndPt-On(Z,54,Pic1Pt-On(X/256,Y,Pic2DispGraphEnd.LOSE LABELLbl DClrDrawClrHomeFix 5.Code for imagePt-On(25,25,Pic3 Pt-On(34,24,Pic4 Pt-On(34,25,Pic4+1 Pt-On(42,25,Pic5 Pt-On(51,25,Pic6 Pt-On(60,24,Pic7 Pt-On(60,25,Pic7+1Pt-On(0,35,Pic8Pt-On(8,35,Pic8Pt-On(16,35,Pic8Pt-On(24,35,Pic8Pt-On(32,35,Pic8Pt-On(40,35,Pic8Pt-On(48,35,Pic8Pt-On(56,35,Pic8Pt-On(64,35,Pic8Pt-On(72,35,Pic8Pt-On(80,35,Pic8Pt-On(88,35,Pic8Pt-On(96,35,Pic8If S>9Text(33,38,Str2,S>DecElseText(35,38,Str2,S>DecEndIf sub(CS,"<easy>",Str4S->{H}EndIf sub(CS,"<easy>",Str4S->{H+1} EndDispGraphPause 1500Repeat getKey->UEndGoto 1.ROUTINESReturnLbl CS0->r3 Repeat {r2+r3}->r4 != {r1+r3} or ({r1+r3}->r5 = 0) or (r4 = 0) ::r3+1->r3 End If r4 or r5=0 ::1 ::Return End 0 ReturnLbl HTrand^512-256->V~D->DElseGoto 1End
i sent you back the code. How do you use str4? i didn't understand it...
really? i only changed the code of the picture to make it more optimized, nothing else. Check if you made an error...
yes because your code created a 8 bytes appvar when you need only 4 bytes. After that i did nothing.
we cannot get a score better than 255?
0->{H}r
ah... much people will get same score so doCode: [Select]0->{H}rinstead of the loop