playlevel1 MACRO
mov ax,01
int 33h
mov si,15
.repeat
mov ah,05
int 33h
mov ax,0
.if bx==0
mov clickedatx,cx
mov clickedaty,dx
add ax,1
.endif
.if bx==0 && ax==1
.if cx+60 == clickedatx || cx-60 == clickedatx || dx+60 == clickedaty || dx-60 == clickedaty
clicked_Candy
print_a_shape 0,clickedatx,clickedatx
mov clickedatx,cx
mov clickedaty,dx
clicked_Candy
print_a_shape 0,clickedatx,clickedatx
add score,5
.endif
.endif
mov bx,1
.until si==0
endm
This part of the code snippet gives errors (linked in the image) [image] (https://i.sstatic.net/7oWb815e.png)work
New contributor
i227435 Muhammad Irsam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.