old racing game programming

Hi guy,

first…sorry for my English :frowning:

someone may explain the techniques in this games

in particular…

  1. how to make the way’s scrolling? mode7 techniques, it’s correct?
  2. i need the raycasting, yes or no?

help me! please :slight_smile:

I believe it is quite a simple stack of horizontal lines, roughly like this:

straight
…, ,…
…, ,…
…, ,…
…, ,…
…, ,…

turn
…, ,…
…, ,…
…, ,…
…, ,…
…, ,…

Manipulate the horizontal graphics positions according to some formula that you will have to work out yourself,
draw sprites on top of that.

good solution, can you ensure other games use this solution?

thanks you

Hi,

unfortunately this solution not work :frowning: impossible draw curves not angular

some idea?

help me, please ???

perhaps show some of your tests, screenshots or code and we could help you more

the results:

----------------------------------------------horizon
------- carriageway_left


----------- point_of_curve



the code:

Graphics2D g2 =…// graphics contex

int width = screen.width;
int horizon = width / 4;
int point_of_curve = width / 2;
int carriageway_left = (width / 8 )*3;

for(int x = 0; x < horizon; x++)
g2.drawLine(0, carriageway_left+x, horizon+x, carriageway_left+x);

for(int y = 0; y < horizon; y++)
g2.drawLine(0, (carriageway_left+horizon)+y, point_of_curve-y, (carriageway_left+horizon)+y);

:-
some idea?

http://www.gorenfeld.net/lou/pseudo/

That should answer every question.

:smiley: waoooooooo, thanks thanks thanks