diff options
| author | Christian Krinitsin <code@krinitsin.xyz> | 2024-11-21 20:12:29 +0100 |
|---|---|---|
| committer | Christian Krinitsin <code@krinitsin.xyz> | 2024-11-21 20:12:29 +0100 |
| commit | 4efed0763417d76736fd628acef641abb7fd74a1 (patch) | |
| tree | dfbe63f57824ac38543fae5ed961c10c93889d55 /src/fruit.asm | |
| parent | 06c6e78a06d486cc6176754e00df7fea03286994 (diff) | |
| download | x86_64-Snake-4efed0763417d76736fd628acef641abb7fd74a1.tar.gz x86_64-Snake-4efed0763417d76736fd628acef641abb7fd74a1.zip | |
add game over, and start/pause/gameover screen with text
Diffstat (limited to 'src/fruit.asm')
| -rw-r--r-- | src/fruit.asm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fruit.asm b/src/fruit.asm index 31226af..48c718e 100644 --- a/src/fruit.asm +++ b/src/fruit.asm @@ -22,11 +22,14 @@ spawn_fruit: rdtsc shr ax, 5 div byte [width] + inc ah mov byte [fruit_x], ah -;; TODO + + ; y position rdtsc shr ax, 5 div byte [height] + inc ah mov byte [fruit_y], ah ret @@ -46,7 +49,7 @@ _31:call move_cursor_down cmp bl, 0 jnz _31 - mov rax, '*' + mov rax, '-' call write_byte pop rbx |
