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
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…..
Please log in or register to post a reply.
someone pls help me out??
How about glScalef() ? That could be used for zooming in/out, right?
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
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
Anyone done this before?
Let me know - i’d really like to know!