Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

488 changes: 381 additions & 107 deletions .idea/workspace.xml

Large diffs are not rendered by default.

Binary file added Storm, Earth and Fire.mp3
Binary file not shown.
Binary file modified __pycache__/constants.cpython-34.pyc
Binary file not shown.
Binary file removed background1.jpg
Binary file not shown.
Binary file removed background2.jpg
Binary file not shown.
Binary file removed background3.jpg
Binary file not shown.
48 changes: 41 additions & 7 deletions constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@


#VARIABLES
DISPLAY_WIDTH = 1280
DISPLAY_HEIGHT = 720

Expand All @@ -9,6 +12,16 @@
black = (0,0,0)
bright_green = (0,255,0)
bright_red = (255,0,0)
AQUA = (0,255,255)

## DIRECTIONS
UP = "UP"
DOWN = "DOWN"
LEFT = "LEFT"
RIGHT = "RIGHT"

## GAME DATA VARIABLES
GRAVITY = 10

## IMAGES
seisab = "seisab.png"
Expand All @@ -18,18 +31,36 @@
liigubparemale1 = "jookseb_paremale_1.png"
liigubparemale2 = "jookseb_paremale_2.png"
liigubparemale3 = "jookseb_paremale_3.png"
hüppabparemale1 = "hüppab_paremale_1.png"
hüppabvasakule1 = "hüppab_vasakule_1.png"
mollingusse_p = "mollingusse_paremale.png"
mollingusse_v = "mollingusse_vasakule.png"
jalaga_p = "jalaga_paremalt.png"
jalaga_v = "jalaga_vasakult.png"
hyppabparemale = "hyppab_paremale.png"
hyppabvasakule = "hyppab_vasakule.png"
mollingusse_paremale1 = "mollingusse_paremale1.png"
mollingusse_paremale2 = "mollingusse_paremale2.png"
mollingusse_paremale3 = "mollingusse_paremale3.png"
mollingusse_vasakule1 = "mollingusse_vasakule1.png"
mollingusse_vasakule2 = "mollingusse_vasakule2.png"
mollingusse_vasakule3 = "mollingusse_vasakule3.png"
mollingusse_paremale = [mollingusse_paremale1, mollingusse_paremale2, mollingusse_paremale3]
mollingusse_vasakule = [mollingusse_vasakule1, mollingusse_vasakule2, mollingusse_vasakule3]
mollingusse = {"RIGHT": mollingusse_paremale, "LEFT": mollingusse_vasakule}
jalaga_mollingusse_paremale = "jalaga_paremalt.png"
jalaga_mollingusse_vasakule = "jalaga_vasakult.png"
mehike_liigub_vasemale = [liigubvasemale1, liigubvasemale2, liigubvasemale3]
mehike_liigub_paremale = [liigubparemale1, liigubparemale2, liigubparemale3]
mehike_hyppab_paremale = [hyppabparemale]
mehike_hyppab_vasemale = [hyppabvasakule]
mehike_seisab = [seisab]
mehike_jookseb = {"LEFT": mehike_liigub_vasemale, "RIGHT": mehike_liigub_paremale, "DOWN": mehike_seisab, "UP": mehike_seisab}
mehike_hyppab = {"LEFT": mehike_hyppab_vasemale, "RIGHT": mehike_hyppab_paremale, "DOWN": mehike_seisab, "UP": mehike_seisab}
beebiparemale1 = "beebi_paremale1.png"
beebiparemale2 = "beebi_paremale2.png"
beebiparemale3 = "beebi_paremale3.png"
beebivasemale1 = "beebi_vasakule1.png"
beebivasemale2 = "beebi_vasakule2.png"
beebivasemale3 = "beebi_vasakule3.png"
beebi_seisab = [beebivasemale2]
beebi_liigub_paremale = [beebiparemale1, beebiparemale2, beebiparemale3]
beebi_liigub_vasakule = [beebivasemale1, beebivasemale2, beebivasemale3]
beebi_jookseb = {LEFT: beebi_liigub_vasakule, RIGHT: beebi_liigub_paremale, UP: beebi_seisab, DOWN: beebi_seisab}
tulnukasparemale1 = "tulnukas_paremale1.png"
tulnukasparemale2 = "tulnukas_paremale2.png"
tulnukasparemale3 = "tulnukas_paremale3.png"
Expand All @@ -39,10 +70,13 @@
taust1 = "background1.png"
taust2 = "background2.png"
taust3 = "background3.png"
backgrounds = [taust1, taust2, taust3]


##tiles and stuff
gray_brick = "texture_grass_uus.jpg"
gray_brick = "block64.png"
grass_brick = "texture_grass.jpg"
bricks = [gray_brick, grass_brick]


#platvormi võimalikud pealmised ruudud
Expand Down
Binary file added hyppab_paremale.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hyppab_vasakule.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed hüppab_paremale.png
Binary file not shown.
Binary file removed hüppab_paremale_uus.png
Binary file not shown.
Binary file removed hüppab_paremale_vana.png
Binary file not shown.
Binary file removed hüppab_vasakule.png
Binary file not shown.
Binary file removed hüppab_vasakule_uus.png
Binary file not shown.
Binary file removed hüppab_vasakule_vana.png
Binary file not shown.
Binary file modified jalaga_paremalt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified jalaga_vasakult.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading