From e0a900b436e4709070b685b6bb0b4b43165bc703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 17 May 2020 14:56:33 +0200 Subject: [PATCH] Pygame --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c2bfeb1..446938e 100644 --- a/README.md +++ b/README.md @@ -3058,7 +3058,7 @@ def draw(screen, images, mario, tiles, pressed): return 4 return next(mario.frame_cycle) if {D.w, D.e} & pressed else 6 screen.fill((85, 168, 255)) - mario.facing_left = (D.w in pressed) if {D.e, D.w} & pressed else mario.facing_left + mario.facing_left = (D.w in pressed) if {D.w, D.e} & pressed else mario.facing_left screen.blit(images[get_frame_index() + mario.facing_left * 9], mario.rect) for rect in tiles: screen.blit(images[18 if {*rect.topleft} & {0, (SIZE-1)*16} else 19], rect) diff --git a/index.html b/index.html index 93ff088..944617d 100644 --- a/index.html +++ b/index.html @@ -2602,7 +2602,7 @@ SIZE, MAX_SPEED = 50, P(return 4 return next(mario.frame_cycle) if {D.w, D.e} & pressed else 6 screen.fill((85, 168, 255)) - mario.facing_left = (D.w in pressed) if {D.e, D.w} & pressed else mario.facing_left + mario.facing_left = (D.w in pressed) if {D.w, D.e} & pressed else mario.facing_left screen.blit(images[get_frame_index() + mario.facing_left * 9], mario.rect) for rect in tiles: screen.blit(images[18 if {*rect.topleft} & {0, (SIZE-1)*16} else 19], rect)