Fork me on GitHub

Cat and Yarn Game

by Elizabeth Peele

12 Nov 2013

To change starpusher, I decided to go with something awesome: cats. Instead of having a princess pushing stars around, I have a cat pushing around a ball of yarn. To do this I had the two pictures, one of a black cat and one a ball of yarn to the IMAGESDICT file as such:

                 IMAGESDICT = {'uncovered goal': pygame.image.load('RedSelector$
                  'covered goal': pygame.image.load('Selector.png'),
                  'star': pygame.image.load('ball_of_yarn.png'),
                  'corner': pygame.image.load('Wall_Block_Tall.png'),
                  'wall': pygame.image.load('Wood_Block_Tall.png'),
                  'inside floor': pygame.image.load('Plain_Block.png'),
                  'outside floor': pygame.image.load('Grass_Block.png'),
                  'title': pygame.image.load('star_title.png'),
                  'solved': pygame.image.load('star_solved.png'),
          'princess': pygame.image.load('princess.png'),
                  'boy': pygame.image.load('boy.png'),
                  'catgirl': pygame.image.load('catgirl.png'),
                  'horngirl': pygame.image.load('horngirl.png'),
                  'pinkgirl': pygame.image.load('pinkgirl.png'),
                  'rock': pygame.image.load('Rock.png'),
                  'short tree': pygame.image.load('Tree_Short.png'),
                  'tall tree': pygame.image.load('Tree_Tall.png'),
                  'ugly tree': pygame.image.load('Tree_Ugly.png'),
                  'cat': pygame.image.load('cat_black.png'),
                  'yarn': pygame.image.load('ball_of_yarn.png')}

Along with this, I changed the text at the introduction of the game to reflect the changes in the game itself. To do this I changed the following text in the starpusher.py folder.

instructionText = ['Help the cat have fun!  Move the arrow keys to push the ball of yarn around.'$
                       'Arrow keys to move, WASD for camera control, P to change character.'
                       'Backspace to reset level, Esc to quit.',
                       'N for next level, B to go back a level.']

And, I changed the starting demo level by moving the black cat to the bottom of the maze instead of the in the middle.

; Starting demo level:
 ########
##      #
#   .   #
#   $   #
# .$ $. #
####$   #
   #.   #
   #@   ##
   #####

I also changed the color of the opening screen from blue to green.

Here are some screenshots showing how everything turned out: Front Page Game

Elizabeth Peele is a first year MSIS at the University of North Carolina Chapel Hill. Find Elizabeth Peele on Twitter, Github, and on the web.
comments powered by Disqus