main
parent
ff68e5c206
commit
3ebb299f00
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.8 KiB |
3
main.py
3
main.py
|
|
@ -14,7 +14,7 @@ g_y_velocity = 20
|
||||||
g_jumping = False
|
g_jumping = False
|
||||||
g_facing_right = True
|
g_facing_right = True
|
||||||
|
|
||||||
K_X, K_Y = 300, 800
|
K_X, K_Y = 300, 700
|
||||||
K_GRAVITY = 1
|
K_GRAVITY = 1
|
||||||
K_JUMP_HEIGHT = 20
|
K_JUMP_HEIGHT = 20
|
||||||
k_y_velocity = 20
|
k_y_velocity = 20
|
||||||
|
|
@ -77,7 +77,6 @@ while True:
|
||||||
|
|
||||||
keys_pressed = pygame.key.get_pressed()
|
keys_pressed = pygame.key.get_pressed()
|
||||||
|
|
||||||
# remember previous vertical positions to detect landing direction
|
|
||||||
prev_G_Y = G_Y
|
prev_G_Y = G_Y
|
||||||
prev_K_Y = K_Y
|
prev_K_Y = K_Y
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue