If Variable,scrollx;==;0
Start Block
Set Variable,scrolly;191
End Block
If Variable,scrollx;==;255
Start Block
Set Variable,scrollx;0
End Block
Set Variable,scrollx;scrollx + 1
Set Variable,scrolly;scrolly - 1
void deal_handsTouchNewPress_Event(u8 DAppliesTo) {
PA_ClearTextBg(1);
int dealing = 0;
Draw_Text(1, 6, 17, "dealing: ");
Draw_Text(1, 6, 18, "cards in hand 1: ");
Draw_Text(1, 6, 19, "cards in hand 2: ");
Draw_Text(1, 6, 21, "Cards in deck: ");
hand1val = 0;
hand2val = 0;
for (dealing = 1; dealing <= 7; dealing++) {
hand_1[dealing] = deck[deck_val];
deck_val = deck_val-1;
hand1val = hand1val +1;
PA_OutputText(1, 9, dealing, " ");
PA_OutputText(1, 9, dealing, "%d", hand_1[dealing]);
hand_2[dealing] = deck[deck_val];
deck_val = deck_val-1;
hand2val = hand2val +1;
PA_OutputText(1, 13, dealing, " ");
PA_OutputText(1, 13, dealing, "%d", hand_2[dealing]);
PA_OutputText(1, 1, 17, " ");
PA_OutputText(1, 1, 17, "%d", dealing);
PA_OutputText(1, 1, 18, " ");
PA_OutputText(1, 1, 18, "%d", hand1val);
PA_OutputText(1, 1, 19, " ");
PA_OutputText(1, 1, 19, "%d", hand2val);
PA_OutputText(1, 1, 21, " ");
PA_OutputText(1, 1, 21, "%d", deck_val);
for (DSGML = 0; DSGML <= (0.5 * 60); DSGML++) {
PA_WaitForVBL();
}
}
for (DSGML = 0; DSGML <= (3 * 60); DSGML++) {
PA_WaitForVBL();
}
Goto_Next_Room();
}Users browsing this forum: No registered users and 0 guests