on my second game!

Ae450d9a70144c898c04af522771f4de
0
neilsamtani 101 Sep 03, 2003 at 02:44

hey devmaster ppl

hows it going? im working on my second game, ive had all sorts of adventures with SDL, but finally made a half decent platformer - called it hallo - platform gaming evolved ;)

nothing really evolutionary about it though - decided I dont want a platform game in my portfolio! I’m gettin my head around DX now, trying to make a top down racing game, i was hoping you guys could give me some advice. Im trying to not get the whole micro machines/lag behind and you lose a point game style, but have the camera zoom out depending on how far away the cars are from each other, and have it zoom in if they are close.

How do I do this???? Do I continue with tiles, and simply change the no. of tiles on the screen (from 16x16 –> 8x8 and so on) and enlarge the sprite, or is there a zooming function? not yet at the point of tearing my hair out, but im getting there quick…..

cheers,
neil
:yes:

4 Replies

Please log in or register to post a reply.

Ae450d9a70144c898c04af522771f4de
0
neilsamtani 101 Sep 04, 2003 at 18:09

someone pls help me out??

cheers,
Neil

3c6597370b476903ed475f70b4b3ce31
0
john 102 Sep 04, 2003 at 18:31

How about glScalef() ? That could be used for zooming in/out, right?

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Sep 04, 2003 at 18:56

i think you should increase the number of tiles drawn and scale them accordingly… i never did this though and i’m just saying what sounds logical to me. i guess though that there are a million articles about tile based engines on the web

Ae450d9a70144c898c04af522771f4de
0
neilsamtani 101 Sep 05, 2003 at 14:26

hey thanks guys, im checkin out a few articles about tile engines and zooming in, but still havent found anything fully relevant, guess i will just have to figure it myself.

im thinking maybe the distance between cars will put it into one of three modes, and depending on how close to the track the zoom is in, it will increase the size of car and track tiles, so instead to a 16x16 i will have 8x8 but each of the tiles will be twice its original size, and each car will be twice its original size and so on! Also - the using of only three modes will probably make the transition harsh, should i ditch the idea of just 3 modes and have a dynamic zoom?

Does that make sense?
Are there any problems that i’ll encounter?
Will i fail in a blaze of hundreds of lines of code that dont make sense?
Anyone done this before?
Let me know - i’d really like to know!

Cheers!
Neil