Browse Source

added cute screenshot

compression
giomba 3 years ago
parent
commit
e548f48e72
  1. 4
      README.md
  2. BIN
      scrot/gameplay.png
  3. 2
      src/game.asm

4
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
```

BIN
scrot/gameplay.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

2
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

Loading…
Cancel
Save