mirror of
https://github.com/quantum5/punyverse.git
synced 2025-04-24 13:11:57 -04:00
Added Mercury and Venus.
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
This commit is contained in:
parent
9e8f2f38c0
commit
fe0363627a
BIN
punyverse/assets/textures/mercury.jpg
Normal file
BIN
punyverse/assets/textures/mercury.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 358 KiB |
Binary file not shown.
Before Width: | Height: | Size: 176 KiB After Width: | Height: | Size: 92 KiB |
|
@ -1,5 +1,6 @@
|
|||
@echo off
|
||||
cd %~dp0assets\textures
|
||||
call :convert mercury.jpg mercury_small.jpg 1024x512
|
||||
call :convert earth.jpg earth_medium.jpg 2048x1024
|
||||
call :convert earth.jpg earth_small.jpg 1024x512
|
||||
call :convert moon.jpg moon_medium.jpg 2048x1024
|
||||
|
|
|
@ -22,6 +22,24 @@
|
|||
"mass": 1.9891e+30,
|
||||
"rotation": 2164320
|
||||
},
|
||||
"mercury": {
|
||||
"texture": ["mercury.jpg", "mercury_small.jpg", [0.44, 0.43, 0.43]],
|
||||
"radius": 2439.7,
|
||||
"z": "0.466697 * AU",
|
||||
"pitch": -90,
|
||||
"yaw": 0.35,
|
||||
"division": 30,
|
||||
"rotation": 5067014
|
||||
},
|
||||
"venus": {
|
||||
"texture": ["venus.jpg", [0.655, 0.38, 0.1]],
|
||||
"radius": 6051.8,
|
||||
"z": "0.723327 * AU",
|
||||
"pitch": -90,
|
||||
"yaw": 177.36,
|
||||
"division": 30,
|
||||
"rotation": -20996798
|
||||
},
|
||||
"earth": {
|
||||
"texture": ["earth.jpg", "earth_medium.jpg", "earth_small.jpg", [0, 0.28, 1, 1]],
|
||||
"radius": 6378.1,
|
||||
|
|
|
@ -75,9 +75,10 @@ def shrink(file):
|
|||
print 'saved to:', os.path.basename(name)
|
||||
save(image, name)
|
||||
else:
|
||||
print
|
||||
print 'alrady there'
|
||||
|
||||
textures = [
|
||||
'mercury.jpg',
|
||||
'earth.jpg',
|
||||
'moon.jpg',
|
||||
'mars.jpg',
|
||||
|
@ -98,9 +99,9 @@ textures = [
|
|||
|
||||
def frozen():
|
||||
import imp
|
||||
return (hasattr(sys, "frozen") or # new py2exe
|
||||
hasattr(sys, "importers") # old py2exe
|
||||
or imp.is_frozen("__main__")) # tools/freeze
|
||||
return (hasattr(sys, 'frozen') or # new py2exe
|
||||
hasattr(sys, 'importers') # old py2exe
|
||||
or imp.is_frozen('__main__')) # tools/freeze
|
||||
|
||||
def get_main_dir():
|
||||
if frozen():
|
||||
|
|
Loading…
Reference in a new issue