-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
111 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ field.json | |
game.lock | ||
.vscode | ||
dev/ | ||
build/ | ||
PythonFarmGame.pex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/bash | ||
cd "$(dirname "$0")" | ||
|
||
rm -R build/ | ||
mkdir build/ | ||
cp -r data build/ | ||
cp dejavusansmono.ttf build/ | ||
pex . pygame -c main -o build/PythonFarmGame.pex | ||
cp build/PythonFarmGame.pex . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
{ | ||
"imagesdata":{ | ||
"seed":"images/seedstartgrow.png", | ||
"seedhalfgrow":"images/seedhalfgrow.png", | ||
"seedfullgrow":"images/seedfullgrow.png", | ||
"dryground":"images/dryground.png", | ||
"wetground":"images/wetground.png", | ||
"background":"images/gui/background.png", | ||
"mainmenubg":"images/gui/mainmenubg.png", | ||
"sickle":"images/sickle.png", | ||
"plant":"images/plant.png", | ||
"wateringcan":"images/wateringcan.png", | ||
"shovel":"images/shovel.png", | ||
"pickaxe":"images/pickaxe.png", | ||
"axe":"images/axe.png", | ||
"inventory":"images/gui/inventory.png", | ||
"grid":"images/grid.png", | ||
"grid2":"images/grid2.png", | ||
"marketbutton":"images/gui/marketbutton.png", | ||
"inventorybutton":"images/gui/inventorybutton.png", | ||
"marketbg":"images/gui/marketbg.png" | ||
"imagesdata": { | ||
"seed": "data/images/seedstartgrow.png", | ||
"seedhalfgrow": "data/images/seedhalfgrow.png", | ||
"seedfullgrow": "data/images/seedfullgrow.png", | ||
"dryground": "data/images/dryground.png", | ||
"wetground": "data/images/wetground.png", | ||
"background": "data/images/gui/background.png", | ||
"mainmenubg": "data/images/gui/mainmenubg.png", | ||
"sickle": "data/images/sickle.png", | ||
"plant": "data/images/plant.png", | ||
"wateringcan": "data/images/wateringcan.png", | ||
"shovel": "data/images/shovel.png", | ||
"pickaxe": "data/images/pickaxe.png", | ||
"axe": "data/images/axe.png", | ||
"inventory": "data/images/gui/inventory.png", | ||
"grid": "data/images/grid.png", | ||
"grid2": "data/images/grid2.png", | ||
"marketbutton": "data/images/gui/marketbutton.png", | ||
"inventorybutton": "data/images/gui/inventorybutton.png", | ||
"marketbg": "data/images/gui/marketbg.png" | ||
} | ||
} | ||
} |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Python farm game | ||
Writen in python using pygame game library | ||
|
||
**Creator:** orneo1212 orneo1212 [at] gmail.com | ||
|
||
**GitHub (source)**: https://github.com/orneo1212/PythonFarmGame | ||
|
||
**Licence**: GPL v3 ( http://gplv3.fsf.org or gpl-3.0.txt included with game) | ||
|
||
## Game help | ||
``` | ||
Keys: | ||
S - Show/hide Market | ||
I - Show/hide inventory | ||
M - Mute/Unmute sound | ||
H - Help window | ||
Tools: | ||
Sickle - Use it to harvest seeds. | ||
Plant - Plant new seed selected in inventory | ||
Watercan - Use it to water a seed. (grow time decrease) | ||
Shovel - Use it to remove planted seeds. | ||
Pickaxe - Use it to remove stones. | ||
Axe - Use it to cut off the planks. | ||
``` | ||
|
||
## Build | ||
``` | ||
pip install pex | ||
./build.sh | ||
``` | ||
|
||
## Running | ||
Run game by executing ```python -m farmlib.main``` in console | ||
or ```./PythonFarmGame.pex``` if you have a pex file | ||
|
||
## Changes | ||
* Uppdated to Python 3 | ||
|
||
|
||
## Donate | ||
**Paypal**: orneo1212@gmail.com |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from setuptools import setup | ||
|
||
setup( | ||
name="Python Farm Game", | ||
version="0.5.2", | ||
description="Python farm game ", | ||
author="orneo1212", | ||
author_email="orneo1212@gmail.com", | ||
packages=["farmlib", "pygameui"], # same as name | ||
entry_points={ | ||
"console_scripts": [ | ||
"main=farmlib.main:main", | ||
], | ||
}, | ||
) |