You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.
You need to be logged in to post and to see the uncensored versions of these forums.
Viewing a Post
|
holy ****! the first screenshot! and it sucks bum!
http://img214.imageshack.us/img214/4738/6692144114461195fb4.gif
Why the **** am I showing you a picture of an empty frame? Well, that’s actually an empty demo map, with empty space in the middle and stone walls surrounded the outside. It was mainly a test to see if SDL_TTF was going to serve my purposes, and it seems to be fine! I might hunt around for a better font and try to optimize that a little bit, but it works and that’s good enough for me right now.
and a snippet of the displaying code to show you guys the bull**** programmers have to deal with: for (x = 0; x < MAXCOLUMNS; x++){ for (y = 0; y < MAXROWS; y++){ if (currentmap.mapgrid[x][y]->tile_type == WALL){ c = "#"; } else { c = " "; } offset.x = x * TILEWIDTH; offset.y = y * fontheight + fontheight * 2; character = TTF_RenderText_Shaded(font, c, color, bgcolor); if (character == NULL){ return 5; } SDL_BlitSurface(character, NULL, screen, &offset); } } SDL_FreeSurface(character); SDL_Flip(screen); BirdofPrey edited this message on 06/18/2008 6:55AM |
||||||
Posted On: 06/18/2008 6:35AM | View BirdofPrey's Profile | # |