mirror of
https://github.com/catseye/SixtyPical.git
synced 2024-11-29 03:51:35 +00:00
Fix bug in game.
This commit is contained in:
parent
d69766afbe
commit
e2f61faeae
@ -264,10 +264,13 @@ routine player_logic
|
|||||||
|
|
||||||
// check collision.
|
// check collision.
|
||||||
copy [ptr] + y, a
|
copy [ptr] + y, a
|
||||||
|
// if "collision" is with your own self, treat it as if it's blank space!
|
||||||
|
cmp a, 81
|
||||||
|
if z {
|
||||||
|
ld a, 32
|
||||||
|
}
|
||||||
cmp a, 32
|
cmp a, 32
|
||||||
if z {
|
if z {
|
||||||
copy 81, [ptr] + y
|
|
||||||
|
|
||||||
copy ^screen, ptr
|
copy ^screen, ptr
|
||||||
st off, c
|
st off, c
|
||||||
add ptr, pos
|
add ptr, pos
|
||||||
@ -275,10 +278,14 @@ routine player_logic
|
|||||||
|
|
||||||
copy new_pos, pos
|
copy new_pos, pos
|
||||||
|
|
||||||
|
copy ^screen, ptr
|
||||||
|
st off, c
|
||||||
|
add ptr, pos
|
||||||
|
copy 81, [ptr] + y
|
||||||
|
|
||||||
st off, c
|
st off, c
|
||||||
} else {
|
} else {
|
||||||
st on, c
|
st on, c
|
||||||
st off, c // FIXME this branch seems to be called even when there is no collision. why?
|
|
||||||
trash n
|
trash n
|
||||||
trash a
|
trash a
|
||||||
trash z
|
trash z
|
||||||
|
Loading…
Reference in New Issue
Block a user