|
Post by fl on Jan 25, 2013 16:32:59 GMT -5
thanks for your help i dont want to make an illusion of forward, the road is always grey in this game. it's just to move the curve of road to the right or to the left more slowly and progressively. for manage the road i use the "curve" value with 9 numbers : 0,1,2,3,4, -1,-2,-3,-4. but the road moves too quickly.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 25, 2013 16:42:33 GMT -5
In the example i posted i'm calculating the values to offset each scanline on the fly. You don't want to do this because it's slow and not very suitable for fluid corners. I only used it because it's the easiest way to show how the principle works.
Anyway, what you want to do instead is generate look-up tables containing scanline offset values for each corner angle you want to use.
|
|
|
Post by fl on Jan 25, 2013 19:37:23 GMT -5
i want to do this strip who start at upper left of screen and go to the bottom of screen (32 widht) may i do many sprites with this data to reach to bottom ? can you show me how to do ? thanks in advance Attachments:
|
|
|
Post by fl on Jan 26, 2013 4:51:11 GMT -5
i'm trying with drawtile. it works, but the strip is behind the sprites i want to try drawtiles but i don't know how to do thanks sorry i'm a noob loadtiles strip,3,128 color 1 for i=1 to 23 drawtile 128,1,i next i strip: datalong $11111111 datalong $11111111 datalong $11111111 datalong $11111111 datalong $11111111 datalong $11111111 datalong $11111111 datalong $11111111
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 26, 2013 6:52:57 GMT -5
Can you explain what you're trying to do? I don't see any ( red ) strip that goes from the upper-left of the screen to the bottom in any of the screenshots.
|
|
|
Post by fl on Jan 26, 2013 7:33:50 GMT -5
i want to mask the two sides of the road with two black "colums" like this : sorry for my english
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 26, 2013 8:02:07 GMT -5
Work on the game first. Since you're going to have to use the window-plane or a bunch of sprites to pull that off, you want to add it at the end of development, not at the start.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 26, 2013 10:26:42 GMT -5
Programmers put borders around the screen to conserve memory or reduce the amount of computation. It's ironic that, at least on the Genesis, that effect may SLOW DOWN the game
|
|
|
Post by fl on Jan 28, 2013 19:34:46 GMT -5
hello i just update the game . the news : - a better control of the road - the two black border - the grass and the sky i have a problem : how can i change the background of the font in the same blue that sky ?? Attachments:
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 28, 2013 20:07:02 GMT -5
how can i change the background of the font in the same blue that sky ?? The build-in font / text commands use palette index 0 for background and index 1 for foreground by default. You can change these indices by setting FONTFOREENTRY / FONTBACKENTRY using the OPTION command though. For example .. palette rgb(7,0,0),0,4 ' Assign red to index 4 palette rgb(0,0,7),0,5 ' Assign blue to index 5 option FONTFOREENTRY,4 option FONTBACKENTRY,5 print "Red on Blue!"
|
|
|
Post by fl on Jan 31, 2013 17:25:47 GMT -5
thanks for your help, but it don't work with my game because behind the road (the grass), the color is index 0 and your code is filling the index 0 i just update the game . the news : - i put the shadow of the car - the car jumps over bumps - i put the scenery (WIP), and it moves in curves bye F.L Attachments:
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 1, 2013 6:59:04 GMT -5
thanks for your help, but it don't work with my game because behind the road (the grass), the color is index 0 and your code is filling the index 0 Actually, by using one of the font entry options BEX alters the font tile data that gets preloaded into your ROM. In any case, the solution is to not use a font tile for your grass
|
|
|
Post by fl on Feb 1, 2013 18:34:41 GMT -5
ok can you remake your example bend.bex with a green grass behind the road please i dont know how to do it thanks in advance
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 1, 2013 21:13:49 GMT -5
can you remake your example bend.bex with a green grass behind the road please Sure. Attachments:
|
|
|
Post by sega16 on Feb 1, 2013 22:57:08 GMT -5
The game is good except could you add road stripes so it feels like I am moving? Other than that everything appears to be good.
|
|