-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Platform collision refactored according to the touchdown var.
- Loading branch information
1 parent
80dc87d
commit 88cdc61
Showing
4 changed files
with
44 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import pygame | ||
|
||
# def platform_collision(screen,character_pos, character_img): | ||
def platform_collision(): | ||
platform_list = [] | ||
lamp = pygame.Rect(1002, 748, 185, 1) | ||
floor = pygame.Rect(0, 900, 1792, 1) | ||
lamp = pygame.Rect(1002, 748, 185, 2) | ||
floor = pygame.Rect(0, 900, 1792, 2) | ||
roof = pygame.Rect(1350, 675, 200, 2) | ||
|
||
platform_list.append(lamp) | ||
platform_list.append(floor) | ||
platform_list.append(roof) | ||
|
||
return platform_list | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters