コード例 #1
0
ファイル: obstacle.py プロジェクト: SubbulakshmiRS/Mario-Game
 def refresh_out(self):
     """
     refresh the coordinates
     """
     for j in range(-4, 1):
         for i in range(-1, 2):
             common.reset_arr(self.x_pos+i, self.y_pos+j)
コード例 #2
0
ファイル: obstacle.py プロジェクト: SubbulakshmiRS/Mario-Game
 def refresh_out(self):
     """
     refresh the coordinates
     """
     for i in range(0, 3):
         for j in range(i-3, 3-i):
             common.reset_arr(self.x_pos+j, self.y_pos+i)
コード例 #3
0
 def refresh_out(self):
     """
     refresh the coordinates
     """
     for i in range(-1, 3):
         for j in range(-1, 2):
             if i == 0:
                 common.reset_arr(self.x_pos + i, self.y_pos + j)
             else:
                 common.reset_arr(self.x_pos + i, self.y_pos)
コード例 #4
0
ファイル: person.py プロジェクト: SubbulakshmiRS/Mario-Game
 def refresh_out(self):
     """
     refresh the coordinates
     """
     for i in range(-2, 1):
         common.reset_arr(self.x_pos, self.y_pos + i)
コード例 #5
0
ファイル: person.py プロジェクト: SubbulakshmiRS/Mario-Game
 def refresh_out(self):
     """
     refresh the coordinates
     """
     common.reset_arr(self.x_pos, self.y_pos)
     common.reset_arr(self.x_pos + 1, self.y_pos)