Jump to content

  • Log In with Google      Sign In   
  • Create Account


Pole Position like in C


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 taoufikallah   Members   -  Reputation: 109

Like
1Likes
Like

Posted 22 July 2012 - 07:35 AM

I need to know if I can do something like this with SDL or I need to use opengl.
My concern is the road, how do I make a road like this?



Thank you!

Sponsor:

#2 riverreal   Members   -  Reputation: 616

Like
0Likes
Like

Posted 22 July 2012 - 07:53 AM

The game was made with scaling sprites.
It is not 3d at all, but it seems to

SDL doesn't provide scaling functionality, but there is an aditional library like SDL_gfx for scaling sprites.

#3 taoufikallah   Members   -  Reputation: 109

Like
0Likes
Like

Posted 22 July 2012 - 07:57 AM

I see, SDL_gfx, I already used some function of this library. can you point me where I can learn this scaling stuff, please?
Thank you :)

#4 riverreal   Members   -  Reputation: 616

Like
1Likes
Like

Posted 22 July 2012 - 08:06 AM

Create you own examples and experiment with it.

For example, load an image, blit it, and scale it with gfx library using an user input.

Old tutorial:
http://aaroncox.net/.../sdlshapes.html

Documentation:
http://www.ferzkopp....html/files.html

I think you will need "rotozoom" in the gfx library for the scaling so:
Rotozoom documentation:
http://www.ferzkopp....otozoom_8h.html

Edited by riverreal, 22 July 2012 - 08:09 AM.


#5 taoufikallah   Members   -  Reputation: 109

Like
0Likes
Like

Posted 22 July 2012 - 08:10 AM

Thank you for all the help, I appreciate it.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS