Better sleep values
This commit is contained in:
@@ -21,6 +21,7 @@ numApples: .long 0
|
||||
score: .long 0
|
||||
# Utility strings
|
||||
snibbles: .ascii "NIBBLES"
|
||||
snibbles_end:
|
||||
sgameover: .string " Game over! Score: %i "
|
||||
sgameover_end:
|
||||
string1: .string "Started with snake length %i and %i apples!\n"
|
||||
@@ -87,10 +88,12 @@ start_game:
|
||||
|
||||
# Loop forever
|
||||
loop:
|
||||
# Sleep for 150 ms
|
||||
pushl $500*1000
|
||||
# Sleep for a while
|
||||
pushl $250*1000
|
||||
pushl %ecx
|
||||
call usleep
|
||||
addl $4, %esp
|
||||
|
||||
jmp tick
|
||||
|
||||
popl %edi
|
||||
|
||||
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user