-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3609bd0
commit a56d749
Showing
6 changed files
with
304 additions
and
299 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pygame | ||
class Background: | ||
def __init__(self): | ||
self.sprite = pygame.image.load('data/gfx/bg.png') | ||
self.position = 0 | ||
self.uncoloredSprite = pygame.image.load('data/gfx/bg.png') | ||
def setSprite(self, tint): | ||
copy = self.uncoloredSprite.copy() | ||
color = colorsys.hsv_to_rgb(tint,1,1) | ||
copy.fill((color[0]*255, color[1]*255, color[2]*255), special_flags=pygame.BLEND_ADD) | ||
self.sprite = copy |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import pygame | ||
class Bean: | ||
def __init__(self): | ||
self.sprite = pygame.image.load('data/gfx/bean.png') | ||
self.position = pygame.Vector2() | ||
self.position.xy |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import pygame | ||
class Button: | ||
def __init__(self): | ||
self.price = 3 | ||
self.level = 1 | ||
sprite = pygame.image.load('data/gfx/button.png') | ||
typeIndicatorSprite = pygame.image.load('data/gfx/null_indicator.png') |
Oops, something went wrong.
a56d749
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good project love it best game but i can make you better at python use ursina python you can make 3d games like fps
a56d749
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.