04-19-2011, 11:42 PM
Code:
while (a band 16)=0
h=a band 5
v=a band 10
if oldh=4 then
if h=5 then newx=x+1
elseif h=0 then newx=x-1
end If
else if oldh=5 then
if h=1 then newx=x+1
elseif h=4 then newx=x-1
end If
else if oldh=1 then
if h=0 then newx=x+1
elseif h=5 then newx=x-1
end If
else if oldh=0 then
if h=4 then newx=x+1
elseif h=1 then newx=x-1
end If
end If
wend
Code:
while (a band 16)=0
h=a band 5
v=a band 10
if oldh=4 then
if h=5 then newx=x+1
elseif h=0 then newx=x-1
end If
end If
wend
And I also noticed that one of my games crahes the Spectrum if ZX Spin is started with enabled +D emulation. Boriel, could you check all your compiler tests with ZX Spin and enabled +D? The game preview of QFJ I sent to you some time ago: If I try to play, the gems cannot be swaped. Without +D Emulation anything works okay.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!