AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Drawboard copy text10/29/2023 ![]() But they are two separate Surface objects. The copy() method of Surface objects will return a new Surface object that has the same image drawn to it. (baseSurf, BGCOLOR, (moveLeft, moveTop, TILESIZE, TILESIZE))įor i in range(0, TILESIZE, animationSpeed):ĭrawTile(movex, movey, board, 0, -i)ĭrawTile(movex, movey, board, 0, i)ĭrawTile(movex, movey, board, -i, 0)ĭrawTile(movex, movey, board, i, 0) MoveLeft, moveTop = getLeftTopOfTile(movex, movey) # draw a blank space over the moving tile on the baseSurf Surface. # Note: This function does not check if the move is valid. ![]() Def slideAnimation(board, direction, message, animationSpeed):
0 Comments
Read More
Leave a Reply. |