Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from somePythonProgrammer/main
Adding cross-platform support + more efficient chunk generation
- Loading branch information
Showing
5 changed files
with
26 additions
and
4 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
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,7 +1,6 @@ | ||
import os | ||
import json | ||
import threading | ||
import sys | ||
|
||
class ListenerBase: | ||
def __init__(self, directory): | ||
|
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,23 @@ | ||
import sys | ||
import subprocess | ||
import pkg_resources | ||
|
||
# make sure pip is installed | ||
try: | ||
pkg_resources.require("pip") | ||
except pkg_resources.DistributionNotFound: | ||
print("pip is not installed. Please install pip.") | ||
sys.exit(1) | ||
|
||
required = {'glfw', 'pygame', 'opensimplex', 'psutil', 'pyopengl', 'pyopengl-accelerate', 'numpy', 'pillow'} | ||
installed = {pkg.key for pkg in pkg_resources.working_set} | ||
missing = required - installed | ||
|
||
if missing: | ||
subprocess.Popen([sys.executable, '-m', 'pip', 'install', *missing]).wait() | ||
|
||
# run git pull | ||
subprocess.Popen(['git', 'pull']).wait() | ||
|
||
# run the game | ||
subprocess.Popen(['python', '__main__.py']).wait() |
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,4 +1,6 @@ | ||
import subprocess | ||
import sys | ||
|
||
|
||
from terrain.block import * | ||
from core.renderer import * | ||
|