Assembly x86 game I developed 2 years ago for a school project (was 15 years old)
Haven't touched the code since. Here is one cool thing I remember I did:
drawNumber proc number:dword,x:dword,y:dword
pusha
xor edx,edx
mov eax,number
mov ebx,10
div ebx
mov ecx,eax
cmp eax,0
jne yes
no:
invoke drawDigit,number,x,y
add x,LETTER_WIDTH
popa
mov eax,x
ret
yes:
invoke drawNumber,ecx,x,y
invoke drawDigit,edx,eax,y
add x,LETTER_WIDTH
popa
mov eax,x
ret
drawNumber endp
Check it out here
The project is built the following way: