Skip to content

Commit

Permalink
Finalize all artwork for the game; Add Victory screen; Prepare config…
Browse files Browse the repository at this point in the history
…uration for PyPi upload

Signed-off-by: Krzysztof Furtak <[email protected]>
  • Loading branch information
kfurtak1024 committed Dec 11, 2020
1 parent 3555751 commit 9e049f2
Show file tree
Hide file tree
Showing 13 changed files with 195 additions and 17 deletions.
15 changes: 9 additions & 6 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pylint = "*"
mypy = "*"
pyinstaller = "*"
pylint = ">=2.6.0"
mypy = ">=0.790"
pyinstaller = ">=4.1"
setuptools = ">=51.0.0"
wheel = ">=0.36.1"
twine = ">=3.2.0"

[packages]
pyxel = "*"
docopt = "*"
jsonschema = "*"
pyxel = ">=1.4.3"
docopt = ">=0.6.2"
jsonschema = ">=3.2.0"

[requires]
python_version = "3.8"
149 changes: 147 additions & 2 deletions Pipfile.lock

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

34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,37 @@
</p>

## Installation
TBD

#### Windows
Install 32-bit [Python](python.org) (version 3.8 or higher) and make sure that python is added to PATH.

Install Bansoko by running:
```shell
pip install -U bansoko
```

Run the game:
```shell
bansoko
```

#### Linux
Install ```python3``` (version 3.8 or higher), ```python3-pip``` and required SDL2 libraries (```libsdl2-2.0-0``` and ```libsdl2-image-2.0-0```).

On Ubuntu, this can be done by running:

```shell
sudo apt install python3 python3-pip libsdl2-2.0-0 libsdl2-image-2.0-0
```

Install Bansoko by running:
```shell
pip3 install -U bansoko
```
Run the game:
```shell
bansoko
```

## Development setup

Expand Down Expand Up @@ -101,4 +131,4 @@ python3 -m bansoko
**Bansoko** is heavily modifiable thanks to included resource builder. More information on how to 'mod' it can be found in [resbuilder documentation](docs/resbuilder.md).

## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/kfurtak1024/bansoko/blob/master/docs/resbuilder.md) file for details.
2 changes: 1 addition & 1 deletion bansoko/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Main Bansoko module exposing game globals.
"""
__version__ = "0.9.6"
__version__ = "0.9.7"

GAME_FRAME_RATE = 30
GAME_FRAME_TIME_IN_MS = 1_000 / GAME_FRAME_RATE
Expand Down
2 changes: 1 addition & 1 deletion bansoko/gamedata/main.meta
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@
32,
160
],
"text": "#7ENOUGH IS ENOUGH! I HAVE HAD IT WITH THESE GOD DAMN\nCRATES ON THIS DAMN SPACE SHIP!\n\n"
"text": "#7ENOUGH IS ENOUGH! I HAVE HAD IT WITH THESE GOD\nDAMN CRATES ON THIS DAMN SPACE SHIP!\n\nMAYBE IT'S TIME FOR A CHANGE. MAYBE I WILL OPEN\nA RESTAURANT AT THE END OF UNIVERSE?\n\nBUT FIRST, I THINK I'VE EARNED DECENT VACATIONS."
}
],
"menu": {
Expand Down
Binary file modified bansoko/gamedata/main.pyxres
Binary file not shown.
Binary file modified docs/screen_shot2.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 docs/screen_shot4.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 docs/screen_shot5.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 docs/screen_shot6.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 resources/gui/victory/the_end.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/main.ressrc
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@
},
{
"position": [32, 160],
"text": "#7ENOUGH IS ENOUGH! I HAVE HAD IT WITH THESE GOD DAMN\nCRATES ON THIS DAMN SPACE SHIP!\n\n"
"text": "#7ENOUGH IS ENOUGH! I HAVE HAD IT WITH THESE GOD\nDAMN CRATES ON THIS DAMN SPACE SHIP!\n\nMAYBE IT'S TIME FOR A CHANGE. MAYBE I WILL OPEN\nA RESTAURANT AT THE END OF UNIVERSE?\n\nBUT FIRST, I THINK I'VE EARNED DECENT VACATIONS."
}
],
"menu": {
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@

import bansoko


setup(
name="bansoko",
version=bansoko.__version__,
author="Krzysztof Furtak",
author_email="[email protected]",
url="https://github.com/kfurtak1024/bansoko",
description="Space-themed Sokoban clone created in Python using Pyxel.",
long_description=open(
os.path.join(os.path.abspath(os.path.dirname(__file__)), "README.md")
).read(),
long_description_content_type="text/markdown",
platforms="any",
keywords="pyxel games",
keywords="game puzzle sokoban 8-bit retro",
classifiers=[
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
Expand All @@ -26,8 +26,8 @@
"Programming Language :: Python :: 3 :: Only",
"Topic :: Games/Entertainment :: Puzzle Games"
],
install_requires=["setuptools", "pyxel"],
packages=find_packages(exclude=["resbuilder"]),
install_requires=["setuptools", "pyxel", "docopt", "jsonschema"],
packages=find_packages(exclude=["resbuilder", "resbuilder.*"]),
package_data={
"bansoko": ["gamedata/main.pyxres", "gamedata/main.meta"]
},
Expand Down

0 comments on commit 9e049f2

Please sign in to comment.