rpwilson1
03-19-2008, 03:24 AM
I am in the process of creating a rougelike game. For those that have no idea what rougelike is, it is old style rpg games that use letters and symbols like *, |, and ~ to represent the characters, terrain, and buildings in the game. Think ASCII Art. :)
I've been looking at ClanLib since it has a very strong 2d slant and since it uses OpenGL by default, will run faster than SDL. I have run into the following issue: instead of creating hundreds of little image files, I was hoping to create the sprites dynamically and cache them to file. I've figured out that the following steps will be needed to create the sprite/s:
1. Create some form of canvas or buffer
2. Draw it's background as such-and-such color.
3. Render letter/symbol onto canvas with such-and-such color
4. Convert canvas into sprite.
I know it will end with a CL_Sprite, but the classes before that I am not so sure of. I think it will involve CL_SpriteDescription and CL_Pixelbuffer as well, but I am not so sure. I would appreciate it if someone could point me in the right direction. Thanks in advance!
I've been looking at ClanLib since it has a very strong 2d slant and since it uses OpenGL by default, will run faster than SDL. I have run into the following issue: instead of creating hundreds of little image files, I was hoping to create the sprites dynamically and cache them to file. I've figured out that the following steps will be needed to create the sprite/s:
1. Create some form of canvas or buffer
2. Draw it's background as such-and-such color.
3. Render letter/symbol onto canvas with such-and-such color
4. Convert canvas into sprite.
I know it will end with a CL_Sprite, but the classes before that I am not so sure of. I think it will involve CL_SpriteDescription and CL_Pixelbuffer as well, but I am not so sure. I would appreciate it if someone could point me in the right direction. Thanks in advance!