diff --git a/images/sapper_idle/agent0.png b/images/sapper_idle/agent0.png new file mode 100644 index 0000000..c3e84ad Binary files /dev/null and b/images/sapper_idle/agent0.png differ diff --git a/images/sapper_idle/agent1.png b/images/sapper_idle/agent1.png new file mode 100644 index 0000000..c634870 Binary files /dev/null and b/images/sapper_idle/agent1.png differ diff --git a/images/sapper_idle/agent.png b/images/sapper_idle/agent2.png similarity index 100% rename from images/sapper_idle/agent.png rename to images/sapper_idle/agent2.png diff --git a/images/sapper_idle/agent3.png b/images/sapper_idle/agent3.png new file mode 100644 index 0000000..f1b16bb Binary files /dev/null and b/images/sapper_idle/agent3.png differ diff --git a/src/main.py b/src/main.py index 6f1b6c4..e7175e5 100644 --- a/src/main.py +++ b/src/main.py @@ -25,7 +25,7 @@ def main(): #1 - right #2 - up #3 - left - #4 - down + #0 - down while running: for event in pg.event.get(): @@ -34,9 +34,9 @@ def main(): running = False elif event.type == pg.KEYDOWN: if (event.key == pg.K_d or event.key == pg.K_RIGHT): - game_ui.rotate(1) - elif (event.key == pg.K_a or event.key == pg.K_LEFT): game_ui.rotate(-1) + elif (event.key == pg.K_a or event.key == pg.K_LEFT): + game_ui.rotate(1) elif (event.key == pg.K_w or event.key == pg.K_UP and ((agent.dir == 1 and agent.x*80 < 700) or (agent.dir == 3 and agent.x*80 > 5) or (agent.dir == 2 and agent.y*80 > 0) or (agent.dir == 0 and agent.y*80 < 700))): game_ui.move()