added cute screenshot
This commit is contained in:
parent
72d5e6b33e
commit
e548f48e72
@ -1,9 +1,11 @@
|
|||||||
# snake6502
|
# 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».
|
*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
|
## 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
|
$ make
|
||||||
```
|
```
|
||||||
|
BIN
scrot/gameplay.png
Normal file
BIN
scrot/gameplay.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
@ -207,7 +207,7 @@ foodEaten:
|
|||||||
inx
|
inx
|
||||||
stx length
|
stx length
|
||||||
|
|
||||||
cpx #$40 ; check if level is finished
|
cpx #$0a ; check if level is finished
|
||||||
bne genFood ; if not, skip
|
bne genFood ; if not, skip
|
||||||
clc
|
clc
|
||||||
lda score ; else increment total score
|
lda score ; else increment total score
|
||||||
|
Loading…
Reference in New Issue
Block a user