Sorry no, but I wrote a new one.
It's not good as my previous, just work for the left side, anyway you have a good idea.
Push the arrow to the left and return to the middle of the screen. The sprite get the perspective from top of the screen.
I have plans to create a racing game using this technique, but since I haven't done nothing yet, maybe others programmers could use this for his personal projects.
My racing game is not like your, my idea was created an enduro like but with good looking road, fixed tracks and car numbers. Well, Top Gear like.
Probably you are using the same code, I'll explain for the others peoples.
This code is present in many games that uses vetorial line, such Spiderman, CrossForce and Fishing Derby. It's almost the same code with small variations. Here is the relevant code, for display the effect :
ldy #0
clc
lda Var1
adc Var2
sta Var1
bcs SkipMove
ldy Var3
SkipMove
sty HMP0
If the sum of var1 and var2 are bigger than 255, branch and shift 1 pixel.
Var 1 is a temp var. Must set as 0 at every frame.
Var 2 is the "magical number", in this demo I just inc or dec according the direction you move.
Var 3 hangs the HMPX value, #%00010000 or #%11110000.
Inc or dec var 2 o the fly, you create an arch, but it cost 5 cycles. Playing with these vars you create a huge numbers of effects.
That is.
Edited by LS_Dracon, Fri Apr 23, 2010 9:39 AM.