diff --git a/README.md b/README.md index acf3afc..eecd7b5 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ # snake6502 +![Gameplay screenshot](scrot/gameplay.png) + *snake6502* is a snake-like game clone for Commodore home computers, written for fun because «I always wanted to code something for a computer of my retrocomputers collection – actually, this is the main reason I collect them: to write programs». ## Compile -You need the [dasm](https://dasm-assembler.github.io/) macro assembler, then: +You need the GNU compiler collection and the [dasm](https://dasm-assembler.github.io/) macro assembler, then: ``` $ make ``` diff --git a/scrot/gameplay.png b/scrot/gameplay.png new file mode 100644 index 0000000..d82b518 Binary files /dev/null and b/scrot/gameplay.png differ diff --git a/src/game.asm b/src/game.asm index cee09b0..f24fa52 100644 --- a/src/game.asm +++ b/src/game.asm @@ -207,7 +207,7 @@ foodEaten: inx stx length - cpx #$40 ; check if level is finished + cpx #$0a ; check if level is finished bne genFood ; if not, skip clc lda score ; else increment total score