Skip to content
Snippets Groups Projects
Commit 044cd4df authored by Taha Belkhiri's avatar Taha Belkhiri
Browse files

update sprite

parent ce876428
Branches
No related tags found
No related merge requests found
travail_de_groupe/chef_oeuvre/Res/character_tileset.png

1.54 KiB

......@@ -149,7 +149,7 @@ void drawPlayer(){
rect.w = CELLSIZE;
rect.x = player.x + (screenDimension.w - (MAPSIZE * CELLSIZE)) / 2;
rect.y = player.y ;
SDL_Rect destRect = {32 * (SDL_GetTicks()/200%4), 0, 32, 32};
SDL_Rect destRect = {32 * (SDL_GetTicks()/200%6), 0, 32, 32};
SDL_RenderCopyEx(renderer, playerTexture, &destRect, &rect, 0, NULL, SDL_FLIP_NONE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment