SDL is truly awsome but...
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) ??
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
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
--Voodoo_Bluesman
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement