Archived

This topic is now archived and is closed to further replies.

Moogle

SDL is truly awsome but...

Recommended Posts

I need to know more general stuff about game programming. Like tilemaps and scrolling. How do I scroll ? How do I use tiles? And first and foremost ... how do I animate my images, without using multiple .cpp files (it freaks me out) ??

Share this post


Link to post
Share on other sites
quote:
Original post by Moogle
I need to know more general stuff about game programming.
Like tilemaps and scrolling. How do I scroll ?
How do I use tiles?
And first and foremost ... how do I animate my images, without using multiple .cpp files (it freaks me out) ??


go to the newbie section to post your questions...



"And that''s the bottom line cause I said so!"

** I WANT TO BE THE MODERATOR FOR THE LINUX FORUM **

Cyberdrek

Resist Windows XP''s Invasive Production Activation Technology!

"gitty up" -- Kramer
/(bb|[^b]{2})/ that is the Question -- ThinkGeek.com
Hash Bang Slash bin Slash Bash -- #!/bin/bash

Share this post


Link to post
Share on other sites
Definately check out the other articles on this site, especially ones relating to tile based games. Any of that theory can also be applied to SDL. The basic trick of scrolling is to offset your X or Y value of the image you are drawing. If you are moving right, and your image normally originates at 0, 0 - move it to -1, 0, then to -2, 0 and so on until you are done scrolling.

--Voodoo_Bluesman

Share this post


Link to post
Share on other sites