Skip to content

Commit

Permalink
Update function calls and readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
timbledum committed Aug 15, 2023
1 parent bd39d3b commit 3dd1440
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 4,7 @@ __pycache__/
*$py.class

score.txt
out/

# C extensions
*.so
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 6,7 @@ Controls are **→** & **←** for turning, **↑** for acceleration and **space
**Q**: Quit the game
**R**: Restart the game

Use pyxel version >= 1.3.0
Requires pyxel version == 1.9.18

![Screenshot!](https://github.com/timbledum/asteroids/blob/master/asteroids.gif)

Expand All @@ -29,4 29,7 @@ Use pyxel version >= 1.3.0

## Changelog ##

* 12 April 2020: corrected resource file for compatability with newer versions of pyxel, correct colour choices to better match the new palette in pyxel 1.3.0 onwards.
* 12 April 2020: corrected resource file for compatability with newer versions of pyxel, correct colour choices to better match the new palette in pyxel 1.3.0 onwards.
* 15 August 2023: updated init to match new pyxel versoin.

By Marcus Croucher - 2023 :)
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 43,7 @@ class Game:
def __init__(self):
"""Initialise pyxel and various classes and variables (one off)."""

pyxel.init(200, 200, scale=2)
pyxel.init(200, 200, display_scale=2)
self.ship = Ship(*constants.SHIP_INITIAL_POSITION, constants.SHIP_COLOUR)
Asteroid.init_class(self.ship)
sound.init_music()
Expand Down

0 comments on commit 3dd1440

Please sign in to comment.