Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 1 file changed
  • 0 comments
  • 1 contributor

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 sprite.py
4 sprite.py
@@ -83,7 +83,7 @@ def __init__(self, name, _map):
83 83 self.tileHeight = self._map.tileHeight
84 84
85 85 self.rect = pygame.Rect(0,0,1,1) # screen position
86   - self.mapRect = pygame.Rect(0,0,self.tileWidth,self.tileHeight) # map position
  86 + self.mapRect = pygame.Rect(0,0,4,4) # map position
87 87
88 88 self.anim = {}
89 89 self.currentAnim = ""
@@ -122,7 +122,7 @@ def setTalk(self, msg):
122 122 def addAnim(self, name, imgPath, x, y, w, h, nbFrames, frameTime=20, mirrored= False):
123 123 self.anim[name] = Animation(name, imgPath, x, y, w, h, nbFrames, frameTime, mirrored)
124 124
125   - def setAnim(self, animName="idle-south"):
  125 + def setAnim(self, animName="idle-down"):
126 126 if animName in self.anim and animName != self.currentAnim:
127 127 self.currentAnim = animName
128 128 self.rect.w = self.anim[self.currentAnim].w

No commit comments for this range

Something went wrong with that request. Please try again.