fix problem with funny guy not rendering
This commit is contained in:
parent
2645cebaed
commit
ad7e580c5e
1 changed files with 2 additions and 2 deletions
4
main.c
4
main.c
|
|
@ -103,7 +103,7 @@ int main()
|
|||
char i;
|
||||
char tiletypes[12] = {0};
|
||||
|
||||
SDL_Texture *imageTexture[10];
|
||||
SDL_Texture *imageTexture[11];
|
||||
SDL_Point isize[11];
|
||||
imageTexture[0] = loadImage(renderer, "data/images/placeholder/placeholder.png");
|
||||
imageTexture[1] = loadImage(renderer, "data/images/placeholder/placeholder2.png");
|
||||
|
|
@ -142,7 +142,7 @@ int main()
|
|||
}
|
||||
}
|
||||
timer = (double) timerval(timerstart);
|
||||
dest[13] = rectang(0, 0, 50, 75);
|
||||
dest[13] = rectang(sin(timer/80)*50+278, 0, 62, 94);
|
||||
SDL_RenderClear(renderer);
|
||||
SDL_RenderCopy(renderer, imageTexture[0], NULL, &dest[0]); // background
|
||||
for (i=0;i<12;i++){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue